Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

olmoe, glm53, qwen36: resend the expert grid after every turn

JustVugg72cf604e7f56
diff --git a/c/glm53.c b/c/glm53.c
index 64388463..6595443d 100644
--- a/c/glm53.c
+++ b/c/glm53.c
@@ -3256,6 +3256,14 @@ static void serve_loop(GModel *m, Tok *tokenizer) {
int gateway_gone = serve_one(m, tokenizer, &q) < 0;
free(q.payload);
if (gateway_gone) break;
+ /* La griglia va rimandata DOPO ogni turno, non solo dopo READY: al
+ * boot la cache degli esperti e vuota, e quella fotografia a freddo
+ * restava l'unica che il cruscotto avesse mai visto -- tutto grigio,
+ * RAM 0, tutto su disco, per sempre. Le HITS erano gia' per turno,
+ * ed e' per questo che il lampeggio funzionava e il colore no.
+ * inkling.c, kimi_k3.c, qwen38.c, deepseek_v41.c e colibri.c fanno
+ * gia' cosi'. */
+ emap_emit(m);
} else if (!strcmp(verb, "IMAGE")) {
/* annunciata: nessuna risposta, la si usa al SUBMIT che segue */
} else if (!strcmp(verb, "BAD_FRAME")) {
diff --git a/c/olmoe.c b/c/olmoe.c
index 0270f0de..6d5098a3 100644
--- a/c/olmoe.c
+++ b/c/olmoe.c
@@ -1648,6 +1648,14 @@ static void serve_loop(Model *m, Tok *T, int ctx_cap) {
int fatal = serve_one(m, T, &q, ctx_cap);
free(q.payload);
if (fatal < 0) return;
+ /* Resend the grid after EVERY turn, not only after READY: at boot the
+ * expert cache is empty by definition, and that cold snapshot stayed
+ * the only one the dashboard ever saw -- all grey, RAM 0, everything
+ * on disk, forever. HITS was already per turn, which is why the white
+ * "routed now" flash worked while the residency colour never moved.
+ * inkling.c, kimi_k3.c, qwen38.c, deepseek_v41.c and colibri.c
+ * already do this. */
+ serve_tiers_emap(m);
}
}
diff --git a/c/qwen36.c b/c/qwen36.c
index 3a4eb071..8caa9532 100644
--- a/c/qwen36.c
+++ b/c/qwen36.c
@@ -2980,7 +2980,14 @@ static void serve_loop(Model *m){
ServeReq q={0}; int r;
do r=serve_read_req(&q); while(r==0);
if(r<0) return;
- if(r==2){ serve_one(m,&q); free(q.payload); }
+ /* Resend the grid after EVERY turn, not only after READY: at boot the
+ * expert cache is empty by definition, and that cold snapshot stayed
+ * the only one the dashboard ever saw -- all grey, RAM 0, everything
+ * on disk, forever. HITS was already per turn, which is why the white
+ * "routed now" flash worked while the residency colour never moved.
+ * inkling.c, kimi_k3.c, qwen38.c, deepseek_v41.c and colibri.c
+ * already do this. */
+ if(r==2){ serve_one(m,&q); free(q.payload); emap_emit(m); }
}
}