Merge f-027-gh-eng-k1 (#3867 #3751 #3453 #3943 #3820 #3752 #3455: Pascal and sm_89 opt-in kernel ports)

# Conflicts:
#	src/core/expert_cache.cpp
#	src/core/verify.cpp
This commit is contained in:
Niko1221 committed 2026-10-26 21:03:12 +01:00
commit 551f1cdc30
38 files changed
+8381 -82

No files matched your search

+9
View File
@@ -1,5 +1,6 @@
// src/core/expert_source.cpp - the adapter. See the header for the three clauses of the contract.
#include "strata/core/expert_source.hpp"
#include "strata/core/expert_nibble.hpp"
#include "strata/core/foresight_swap.hpp"
#include "strata/core/on_device.hpp"
#include "strata/platform/aux_cpus.hpp"
@@ -5248,6 +5249,14 @@ void expert_hit_run(void* user, void* stream, HitPhase phase, const int32_t* ids
d.hit_pending = false;
if (!d.hits_ready() || ids == nullptr || k <= 0) return;
if ((int64_t) d.is_hit.size() < k) d.is_hit.resize((size_t) k);
// STRATA_EXPERT_NIBBLE=1: this split computes a resident expert with the GGUF-block kernels and admits + fills
// a missed one with its GGUF blob - neither may meet a layer whose slots hold 4-bit codes (a native pack's
// experts run in the verify windows, so this is the backstop, never the path)
#if STRATA_EXPERT_NIBBLE_BUILT // compiled out of every other build: nothing is added to the hit split there
if (strata::core::nibble::layer(d.layers).on)
strata::core::nibble::fatal(d.layers, "the expert source's hit split (expert_hit_run)",
"it computes resident experts as GGUF blocks and fills slots with GGUF blobs");
#endif
// ================================ THE DECISION, ONCE, ON THIS LAYER'S IDS ================================
//