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++

PCIe probe: below 4 GB/s (x1 links) the PCIe share is 0 - every miss goes to the CPU pool

Niko12217dbe2bf85be7
diff --git a/src/program/generate.cpp b/src/program/generate.cpp
index 7de68db88..ad78ace37 100644
--- a/src/program/generate.cpp
+++ b/src/program/generate.cpp
@@ -1166,7 +1166,9 @@ int main(int argc, char** argv) {
if (!native_pack) {
o.pcie_frac = base;
} else if (bw > 0.0) {
- o.pcie_frac = bw >= 20.0 ? base : std::min(base, std::max(0.05, base * (bw / 26.0)));
+ // below ~4 GB/s (an x1 link: ~0.9 GB/s) a missed expert's 1.4 MB takes longer to cross than the CPU
+ // pool takes to compute it, so none of them go over the link
+ o.pcie_frac = bw >= 20.0 ? base : bw < 4.0 ? 0.0 : std::min(base, std::max(0.05, base * (bw / 26.0)));
std::fprintf(stderr, "strata generate: PCIe probe: %.1f GB/s host->device -> pcie_frac %.2f (default %.2f)\n",
bw, o.pcie_frac, base);
} else {