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-143-q2pcie: measured PCIe share for the canonical Q2_0 pack on CUDA (conflict with the gfx12 PcieAuto default resolved: one pf_old, canonical pack CUDA only)
Niko12217c3fc48e86f2
diff --cc src/program/generate.cppindex e2ce23097,4948673f4..89abd7e74--- a/src/program/generate.cpp+++ b/src/program/generate.cpp@@@ -2725,16 -2672,33 +2725,32 @@@ int main(int argc, char** argv)if (o.pcie_frac < 0.0) {const double base = native_pack ? 0.55 : 0.2;std::string bursts;- const double bw = native_pack ? probe_pcie_h2d_gbps(&bursts) : -1.0;- if (!native_pack) {-#if !defined(STRATA_USE_HIP)+ const char* pfd = std::getenv("STRATA_PCIE_FRAC_DEFAULT");+ const bool pf_old = pfd != nullptr && std::strcmp(pfd, "old") == 0;++#if !defined(STRATA_USE_HIP)++ const bool pf_old_canon = pf_old;+ #else- const bool pf_old = true;++ const bool pf_old_canon = true; // the canonical pack's PcieAuto is CUDA only+ #endif+ // the canonical pack keeps its 0.2 as the START value, but is probed too (CUDA, unless+ // STRATA_PCIE_FRAC_DEFAULT=old) so that PcieAuto can refine the share from the CPU pool's speed- const double bw = (native_pack || !pf_old) ? probe_pcie_h2d_gbps(&bursts) : -1.0;++ const double bw = (native_pack || !pf_old_canon) ? probe_pcie_h2d_gbps(&bursts) : -1.0;+ if (!native_pack && !(bw > 0.0)) {+ o.pcie_frac = base;+ } else if (!native_pack) {o.pcie_frac = base;+ std::fprintf(stderr, "strata generate: PCIe probe: %.1f GB/s host->device (best of %s); the canonical pack "+ "starts at pcie_frac %.2f and refines it from the CPU pool's speed\n", bw, bursts.c_str(), base);+ #if !defined(STRATA_USE_HIP)+ o.pcie_frac_auto = o.layer_split.empty();+ o.pcie_probe_gbps = bw;+ #endif} else if (bw > 0.0) {o.pcie_frac = pcie_frac_for_gbps(bw, base);std::fprintf(stderr, "strata generate: PCIe probe: %.1f GB/s host->device (best of %s) -> pcie_frac %.2f ""(default %.2f)\n", bw, bursts.c_str(), o.pcie_frac, base);- const char* pfd = std::getenv("STRATA_PCIE_FRAC_DEFAULT");- o.pcie_frac_auto = o.layer_split.empty() && decode_defaults_arch_ok() && !(pfd != nullptr && std::strcmp(pfd, "old") == 0);-#if !defined(STRATA_USE_HIP)- o.pcie_frac_auto = o.layer_split.empty() && !pf_old;++ o.pcie_frac_auto = o.layer_split.empty() && decode_defaults_arch_ok() && !pf_old;o.pcie_probe_gbps = bw;-#endif} else {o.pcie_frac = base;std::fprintf(stderr, "strata generate: PCIe probe failed -> pcie_frac default %.2f\n", base);