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++
prefill: the resident lookup in the streamed walk indexes by the model's expert count (#531 follow-up)
Niko122169f4d948019d
diff --git a/src/prefill/prefill.cpp b/src/prefill/prefill.cppindex 03529cf1b..0c77ad260 100644--- a/src/prefill/prefill.cpp+++ b/src/prefill/prefill.cpp@@ -2521,8 +2521,8 @@ bool Prefill::run(const int64_t* tokens, int64_t n, int64_t pos0, std::string& econsumed = ++k;if (!group_gather || gg_nslots == 0) give_back(consumed); // its group was gathered} else {- const bool r0 = m.host_res && m.cache && m.host_res[(size_t) l * NE + e] >= 0;- const uint8_t* bp = r0 ? m.cache->device_slot(m.host_res[(size_t) l * NE + e])+ const bool r0 = m.host_res && m.cache && m.host_res[(size_t) l * m.g->n_expert + e] >= 0;+ const uint8_t* bp = r0 ? m.cache->device_slot(m.host_res[(size_t) l * m.g->n_expert + e]): (m.pp ? m.pp->peer->slot_ptr(l, e) : nullptr); // over the cap: P2Pif (bp == nullptr) { err = "prefill: an expert is neither resident, streamed nor on the peer"; return false; }++stats_.experts_resident;