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++
Merge f-141-mgpu: no-P2P path (opt-in), #794, #793, peer knobs
Niko12214aca10c5a0cf
diff --cc src/prefill/prefill.cppindex 48e7715f8,32a2d3271..465e6717d--- a/src/prefill/prefill.cpp+++ b/src/prefill/prefill.cpp@@@ -3538,20 -3539,17 +3710,25 @@@ bool Prefill::run_impl(const int64_t* tcudaMemcpyHostToDevice, m.cs);stats_.experts_cpu += n_cpu;}+ // no reading from a layer the share could not change (nothing taken) or with one-time costs+ if (cpu_set >= 0 && n_stream > 0 && (!cpu_arm || n_cpu > 0) && !cpu_cold) {+ cudaEventRecord(m.cpu_wall[2 * cpu_set + 1], m.cs);+ m.pend_wall = cpu_arm ? 2 : 1;+ m.pend_set = cpu_set;+ m.pend_l = (int) l;+ m.pend_wall_n = n_stream;+ }if (peer_now) { // multi-GPU: the peer's rows are in Dm (or, without P2P, in host memory)cudaStreamWaitEvent(m.cs, m.pp->ev_done, 0);- if (!m.pp->p2p)+ if (!m.pp->p2p && !m.pp->sums)copy_f32_wide(m.Dm + (size_t) m.pp->back_at * N, m.pp->host_rows, m.pp->back_rows * N, m.cs);}- moe_combine(m.Dm, m.slot_dev, m.w, m.shared, m.sg, m.bo, T, m.cs);+ if (peer_now && m.pp->sums && m.pp->f16)+ moe_combine_peer16(m.Dm, m.slot_dev, m.w, m.shared, m.sg, m.pp->host_sum16, m.pp->back_at, m.bo, T, m.cs);+ else if (peer_now && m.pp->sums)+ moe_combine_peer(m.Dm, m.slot_dev, m.w, m.shared, m.sg, m.pp->host_sum, m.pp->back_at, m.bo, T, m.cs);+ else+ moe_combine(m.Dm, m.slot_dev, m.w, m.shared, m.sg, m.bo, T, m.cs);// debug: STRATA_DBG_NAN=1 reports the first layer of a chunk whose MoE produced non-finite valuesif (static const bool dbg = std::getenv("STRATA_DBG_NAN") != nullptr; dbg) {cudaStreamSynchronize(m.cs);