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