MCPcopy Create free account
hub / github.com/Niko1221/Strata / sealed_write

Function sealed_write

engine/src/core/expert_cache.cpp:88–93  ·  view source on GitHub ↗

STRATA_EXPERT_NIBBLE: a write into a sealed cache (see ExpertCache::seal). Says which call and stops: the slots hold 4-bit codes the GGUF bytes would overwrite, or a GGUF expert where a 4-bit one is expected - a wrong reply, not an error.

Source from the content-addressed store, hash-verified

86// STRATA_EXPERT_NIBBLE: a write into a sealed cache (see ExpertCache::seal). Says which call and stops: the slots hold
87// 4-bit codes the GGUF bytes would overwrite, or a GGUF expert where a 4-bit one is expected - a wrong reply, not an error.
88[[noreturn]] void sealed_write(const char* call, int32_t slot) {
89 std::fprintf(stderr, "strata: STRATA_EXPERT_NIBBLE: ExpertCache::%s(slot %d) after the cache was sealed - a GGUF "
90 "blob would be written into the 4-bit expert slots: stopping\n", call, (int) slot);
91 std::fflush(stderr);
92 std::abort();
93}
94} // namespace
95
96// See the header. NVIDIA's DGX Spark Porting Guide (section 5.5, "Memory reporting on UMA systems") recommends the same:

Callers 4

fill_slotMethod · 0.85
fill_slot_blockingMethod · 0.85
fill_slot_queuedMethod · 0.85

Calls 1

abortFunction · 0.50

Tested by

no test coverage detected