Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
Merge origin/dev into fix/v4-usage-route-trace
Mario Gutierrezefce7a922afc
diff --cc c/deepseek_v4.cindex 573d16ba,9d552d11..0805ab5d--- a/c/deepseek_v4.c+++ b/c/deepseek_v4.c@@@ -6054,7 -6159,13 +6113,14 @@@ static int lookup_hot(ColiExpertStore *pthread_mutex_lock(&state->mutex);state->stats.requests++;policy->usage[(size_t)key.layer * state->experts_per_layer + key.expert]++;+ if (state->ehit) {+ size_t expert_index =+ (size_t)key.layer * state->experts_per_layer + key.expert;+ state->ehit[expert_index] = 1;+ if (state->eheat && state->eheat[expert_index] < 63)+ state->eheat[expert_index]++;+ }+ rt_count(key.layer, &key.expert, 1); /* selection history, shared format (#700) */uint64_t layer_requests = ++policy->layer_requests[key.layer];if (policy->repin_interval &&layer_requests % policy->repin_interval == 0)