Master switches DS4_DEFAULTS=026 (DeepSeek) and STRATA_DEFAULTS=026 (Qwen): every default changed since v0.2.6 gives v0.2.6's behaviour; explicit per-feature variables and flags still win; every rule is a pure function with a v026 argument and a test

This commit is contained in:
Niko1221 committed 2026-10-26 19:13:25 +01:00
1 parent 407f659763
commit a3ab37fc03
17 files changed
+358 -53

No files matched your search

+3 -3
View File
@@ -30,6 +30,7 @@
#include "strata/core/session_save_reclaim.hpp"
#include "strata/core/conversation_memory.hpp"
#include "strata/core/ple_residency.hpp"
#include "strata/core/defaults_026.hpp"
#include "strata/core/coupled_draft.hpp"
#include "strata/core/expert_source.hpp"
#include "strata/core/foresight_swap.hpp"
@@ -3585,8 +3586,7 @@ int main(int argc, char** argv) {
const bool pf_old = pfd != nullptr && std::strcmp(pfd, "old") == 0;
// 0.2.7: gfx12 native packs start at 0.15 (see pcie_share_gfx12_default above); other cards and
// STRATA_PCIE_FRAC_DEFAULT=old keep the x16 share measured for them.
const double base = nvfp4_pack ? 0.25
: native_pack ? (pcie_share_gfx12_default() && !pf_old ? 0.15 : 0.55) : 0.2;
const double base = strata::pcie_start_frac(nvfp4_pack, native_pack, pcie_share_gfx12_default(), pf_old, strata::qwen_defaults_026());
std::string bursts;
#if !defined(STRATA_USE_HIP) && defined(_WIN32)
// Windows: opt-in (STRATA_PCIE_AUTO_CANON=1); an RTX 5070 decoded a short Q2_0 answer 3% slower with it, code 2.5% faster
@@ -4095,7 +4095,7 @@ int main(int argc, char** argv) {
if (pio.mode == strata::kernels::PleIo::Direct && !o.ple_io_explicit) {
const strata::kernels::PleIoOptions direct_pio = pio;
const char* auto_ram = std::getenv("STRATA_PLE_AUTO_RAM");
const bool allowed = auto_ram == nullptr || std::atoi(auto_ram) != 0;
const bool allowed = strata::core::ple_auto_ram_allowed(auto_ram, strata::qwen_defaults_026());
const uint64_t need = ple_table.table_bytes();
const auto available = strata::core::available_host_bytes();
uint64_t experts_ram = 0; // every routed expert's blob, the arena the engine copies into RAM at start