Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
sycl: three shutdown and safety fixes from the Arc Pro B65 report (PR #955, patches 3, 5 and 6)
Niko122155c317873042
diff --git a/sycl/src/core/conversation_snapshot_test.cpp b/sycl/src/core/conversation_snapshot_test.cppindex c42233bb2..ba5bdbc5e 100644--- a/sycl/src/core/conversation_snapshot_test.cpp+++ b/sycl/src/core/conversation_snapshot_test.cpp@@ -122,7 +122,7 @@ struct Fixture {~Fixture() {for (void *p : device)DPCT_CHECK_ERROR(sycl::free(p, dpct::get_in_order_queue()));- for (void *p : host) DPCT_CHECK_ERROR(free(p));+ for (void *p : host) DPCT_CHECK_ERROR(sycl::free(p, dpct::get_in_order_queue()));}};bool equal(const ConversationKv& a,const ConversationKv& b) {diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cppindex 1b050707c..5372106f9 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<int64_t, int64_t>& 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) {@@ -7361,7 +7363,15 @@ int main(int argc, char **argv) try {save_profile("exit"); // #477: QUIT, or the server closed stdin// SYCL port: the requests are done and their output written; leave without unwinding the GPU objects (the OS// reclaims them). Their destructors ran against a runtime already shutting down and aborted (exit 139).- try { dpct::get_current_device().queues_wait_and_throw(); } catch (...) {}+ try {+ dpct::get_current_device().queues_wait_and_throw();+ // Release the direct-access USM host mirror before process teardown.+ gguf_src.close();+ } catch (const std::exception& e) {+ std::fprintf(stderr, "strata shutdown: mirror release failed: %s\n", e.what());+ std::fflush(stderr);+ std::_Exit(1);+ }std::fflush(stdout);std::fflush(stderr);std::_Exit(0);