diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cpp index 1b05070..dade388 100644 --- a/sycl/src/program/generate.cpp +++ b/sycl/src/program/generate.cpp @@ -3829,10 +3829,12 @@ int main(int argc, char **argv) try { } unmirrored_misses = (int64_t) miss.size() - (int64_t) (gguf_src.mirrored_bytes() ? std::count_if(miss.begin(), miss.end(), [&](const std::pair& pr) { return gguf_src.pinned(pr.first, pr.second); }) : 0); - if (unmirrored_misses > 0 && std::getenv("STRATA_VERIFY_NO_HOST") != nullptr) - std::fprintf(stderr, "strata generate: WARNING: %lld experts are neither in VRAM nor mirrored; with STRATA_VERIFY_NO_HOST " - "the device plan cannot run them and their layers' windows fall back slowly - raise " + if (unmirrored_misses > 0 && std::getenv("STRATA_VERIFY_NO_HOST") != nullptr) { + std::fprintf(stderr, "strata generate: REFUSED: %lld experts are neither in VRAM nor mirrored; with STRATA_VERIFY_NO_HOST " + "the device plan cannot run them and generation would lack a safe host fallback - raise " "STRATA_MIRROR_MIB or the free RAM, or lower --max-context\n", (long long) unmirrored_misses); + return 2; + } } for (auto& stp : stages) {