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++
generate: review fixes for the admission switches
havok2-htwoa923889bd2b1
diff --git a/src/program/generate.cpp b/src/program/generate.cppindex 45698d904..839fc861f 100644--- a/src/program/generate.cpp+++ b/src/program/generate.cpp@@ -1683,14 +1683,13 @@ public:private:static void spread_current_thread() {#if defined(__linux__)- if (strata::aux_cpus::enabled()) {- strata::aux_cpus::pin_current_thread();- return;- }+ // wide first: the mask the aux placement keeps as this thread's own is the one restore() puts back (a request+ // with aux_cpus=0), and the host's one CPU must not be itcpu_set_t all;CPU_ZERO(&all);for (int c = 0; c < CPU_SETSIZE; ++c) CPU_SET(c, &all);(void) sched_setaffinity(0, sizeof all, &all); // the kernel keeps the CPUs the process may use+ strata::aux_cpus::pin_current_thread(); // (a no-op while the feature is off)#endif}void loop(size_t k) {@@ -11382,7 +11381,10 @@ int main(int argc, char** argv) {for (int b = 0; b < (int) bs.size(); ++b) {const BSlot& sl = bs[(size_t) b];const bool idle_source = !sl.active && sl.cached;- if (sl.cvec != want_cvec || !(idle_source || (sl.active && slot_ckpt_move_env()))) continue;+ // (an active slot only where the drafter's rows come along or are not drafted from: the copy+ // takes the main layers' cells, so the main drafter would keep another conversation's below it)+ const bool active_source = sl.active && slot_ckpt_move_env() && (!use_mtp || batch_mtp || admit_slot >= 0);+ if (sl.cvec != want_cvec || !(idle_source || active_source)) continue;if (idle_source && (int64_t) sl.ids.size() > std::max(resume, slot_tokens) && starts_with(sl.ids, {})) {slot_source = b;slot_tokens = (int64_t) sl.ids.size();@@ -13265,7 +13267,7 @@ int main(int argc, char** argv) {const Clock::time_point tw3 = Clock::now();auto msd = [](Clock::time_point a0, Clock::time_point b0) { return std::chrono::duration<double, std::milli>(b0 - a0).count(); };dt_run += msd(tw0, tw1); dt_commit += msd(tw1, tw2); dt_draft += msd(tw2, tw3);- ++dec_windows; dec_T += T;+ ++dec_windows; dec_T += merged ? 1 : T; // a merged window's prompt rows are not decode rows}pcie_auto_step(req_pcie_frac); // the default share, refined from the CPU pool's speed (PcieAuto); a request's own share is left aloneif (adapt_thr.joinable()) {