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

Method transient

engine/src/core/expert_source.cpp:3853–3861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3851}
3852
3853bool FileExpertSource::transient(int64_t layer, int64_t expert) const {
3854 // the io-prefetch staging of the experts.bin tier is the decode's: the prompt path keeps reading the mapping
3855 // (its own read-ahead hints), so this answers as it did without io prefetch
3856 if ((role_ptr_.empty() && direct_.empty()) || layer < 0 || expert < 0 || layer >= n_layers_ || expert >= n_expert_) return false;
3857 const size_t index = (size_t) layer * (size_t) n_expert_ + (size_t) expert;
3858 if (complement_ready_ && resident_blob(index) != nullptr)
3859 return false;
3860 return override_.empty() || override_[index] == nullptr;
3861}
3862
3863double FileExpertSource::cached_share(int64_t samples) const {
3864#if defined(__linux__)

Callers 6

initMethod · 0.45
prefill.cppFile · 0.45
lm_runMethod · 0.45
arenaFunction · 0.45
test_rotating_sourceFunction · 0.45
test_replace_residentFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by 3

arenaFunction · 0.36
test_rotating_sourceFunction · 0.36
test_replace_residentFunction · 0.36