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

Method predict

engine/src/core/expert_source.cpp:7307–7311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7305}
7306
7307void ForesightSwap::predict(ExpertSource* src, int64_t layer, int32_t expert) {
7308 if (layer < 0 || layer >= n_layers || expert < 0 || expert >= n_expert) return;
7309 std::lock_guard<std::mutex> smu_lk(smu_);
7310 request_locked(src, layer, expert, true);
7311}
7312
7313void ForesightSwap::request_locked(ExpertSource* src, int64_t layer, int32_t expert, bool predicted_copy) {
7314 if (failed.load(std::memory_order_relaxed)) return;

Callers 2

runMethod · 0.80
test_foresight_exchangeFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_foresight_exchangeFunction · 0.64