Skip to content

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 commit 'cf1b0edf' into f-mac-rel

Niko12210aef10aeae4d
diff --cc src/prefill/prefill.cpp
index c76396f07,876146594..8c0bcb3aa
--- a/src/prefill/prefill.cpp
+++ b/src/prefill/prefill.cpp
@@@ -1070,14 -1062,8 +1072,14 @@@ uint64_t moe_set_bytes(size_t T, int64_
bool Prefill::init(const core::WeightTable& wt, const core::ModelGeometry& g, core::SessionState& ss,
core::ExpertSource* src, const core::ExpertCache* cache, const int32_t* host_res, int64_t chunk,
- void* stream, std::string& err, void* borrow, uint64_t borrow_bytes) {
+ void* stream, std::string& err, void* borrow, uint64_t borrow_bytes, bool borrow_spill) {
Impl& m = *impl_;
+#if defined(STRATA_GPU_METAL)
+ (void) wt; (void) src; (void) cache; (void) host_res; (void) stream; (void) borrow;
+ (void) borrow_bytes;
+ m.T = chunk > 0 ? chunk : 1;
+ return strata::metal_engine::window_ensure(g, ss, ss.qsa_states[ss.qsa_primary()].max_cells, err);
+#endif
m.wt = &wt; m.g = &g; m.ss = &ss; m.src = src; m.cache = cache; m.host_res = host_res;
m.T = chunk; m.cs = (cudaStream_t) stream; m.stats = &stats_;
if (g.n_embd != N || g.hc != HC || g.hc_lr != LR || g.n_expert < 1 || ss.k != K) {