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

Follow-ups from the issue triage: probe visible in CI, doc cross-reference, three Azure rows

JustVuggb729cc14e14f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index bfac5cda..3ce29951 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -454,6 +454,19 @@ jobs:
python3 tools/make_edge_tiny_tokenizer.py --vocab-size 320 qwen36_tiny_c
make qwen36 >/dev/null
COLI_QWEN36_FIXTURE=qwen36_tiny_c python3 -m unittest -v tests.test_qwen36_dashboard
+ - name: "The expert format probe reads int8 as int8 and int4 as int4 (#1331)"
+ run: |
+ cd c
+ # #1331 was the CUDA tier receiving fmt=4 for an int8 container: budget
+ # reserved, zero promotions. The probe is decided from the on-disk
+ # size of the first expert and printed once; pin it on both formats
+ # without a GPU. The int4 run is not held to token-exactness here.
+ SNAP=qwen36_tiny_c ./qwen36 1 8 qwen36_tiny/ref_full.json 2> probe8.log >/dev/null || true
+ grep -q 'expert format on disk: int8' probe8.log || { echo "FAIL: int8 container probed as"; grep 'expert format' probe8.log; exit 1; }
+ python3 tools/convert_qwen36.py --model qwen36_tiny --out qwen36_tiny_c4 --ebits 4 >/dev/null
+ SNAP=qwen36_tiny_c4 ./qwen36 1 4 qwen36_tiny/ref_full.json 2> probe4.log >/dev/null || true
+ grep -q 'expert format on disk: int4' probe4.log || { echo "FAIL: int4 container probed as"; grep 'expert format' probe4.log; exit 1; }
+ echo "probe: int8 -> fmt=1, int4 -> fmt=4"
qwen38-tiny-check:
name: Qwen3.8 tiny oracle (GDN + QSA + PLE + MoE)
diff --git a/c/qwen36.c b/c/qwen36.c
index 3e41d399..c439909b 100644
--- a/c/qwen36.c
+++ b/c/qwen36.c
@@ -2929,6 +2929,10 @@ int main(int argc, char **argv) {
int64_t want = 2*(int64_t)m.c.inter*m.c.hidden + (int64_t)m.c.hidden*m.c.inter;
if (pt && pt->nbytes == want) expert_is_int4 = 0; /* int8: un byte per elemento */
}
+ /* Una riga, sempre: e' l'unico modo di verificare il probe dall'esterno
+ * (CI sul container tiny int8, #1331) senza una scheda. */
+ fprintf(stderr, "[qwen36] expert format on disk: %s\n",
+ expert_is_int4 ? "int4 packed (tier fmt=4)" : "int8 (tier fmt=1)");
/* Offer the dense trunk to the placer before the tier decides its budget:
* sizes only, from the same dense-i8 entries the uploads below will use.
* No entry (dense-i8 off) means nothing to offer, and the CPU path stands. */
diff --git a/docs/benchmarks.md b/docs/benchmarks.md
index 0a282034..bdceb83b 100644
--- a/docs/benchmarks.md
+++ b/docs/benchmarks.md
@@ -144,6 +144,9 @@ Real numbers from real machines, stock build (`setup.sh`, gcc 13), greedy decodi
| 〃 second drive: 200 GB LV on a Crucial P310, 57 interleaved expert shards (139 GB, ~40%) symlinked — **file-level split, not block striping** | 990 Pro 6.44 + P310-LV 4.40 GB/s O_DIRECT, independent controllers | `MTP=0`, `coli serve` mux | N=1 **0.324 (+5.5%)** · N=2 **0.426 (+3.1%)** — see the note below on why this is so much smaller than #1249 |
| 〃 | 〃 | `MTP=0 REPIN=1`, six consecutive N=2 rounds | **0.461 aggregate** · 0.404 → 0.405 → **0.456** → 0.458 → 0.433 → **0.461**: pins converge in ~3 rounds (~300 tokens) and hold |
| Apple M4 Pro (8P+4E, 24 GB unified) · macOS 15.6 · libomp, 8 physical-core threads · **OLMoE int8**, fully resident (v1.9.0) | model in page cache; no disk in the loop | 226-token teacher-forced eval (`PPL=1`), `cap` 32 vs 64, **paired** (alternating within one session), 8 pairs | median **19.1 tok/s at cap 32** vs **16.3 at cap 64** · cap 32 wins **7 of 8 pairs** · hit rate 74.1% vs 96.7% — see the note |
+| AMD EPYC 9V45 · Azure D128ads v7 (64 cores / 128 threads, 2 NUMA) · Ubuntu 24.04 · 504 GB · 4x NVMe RAID0 ([#1384](https://github.com/JustVugg/colibri/issues/1384)) | 17.9 GB/s O_DIRECT, flat from 8 to 64 threads | int4 gs64 + int8 MTP · cap 16 · CPU only · v1.10.2 | **2.83 tok/s** rotating median · hit 97% · cold TTFT 13 s; warmed (cap 256, `COLI_NUMA=1`, 100% hit, 512-token runs) **6.91 tok/s** · expert matmul 70 ms/tok + attention 54 ms/tok |
+| AMD EPYC 9V45 · Azure E64ads v7 (32 cores / 64 threads) · Ubuntu 24.04 · 504 GB · 4x NVMe RAID0 ([#1379](https://github.com/JustVugg/colibri/issues/1379)) | 9.0 GB/s O_DIRECT | int4 gs64 + int8 MTP · cap 16 · CPU only · v1.10.2 | **2.34 tok/s** rotating median · hit 97% · CPU-bound (matmul 4.8 s + attention 4.4 s per 32-token request) |
+| Azure E64pds v6 **Arm64** (32 cores) · Ubuntu 24.04 · 504 GB · 4x NVMe RAID0 ([#1380](https://github.com/JustVugg/colibri/issues/1380)) | 2.5 GB/s O_DIRECT at 8 threads, 10.2 GB/s at 64 | int4 gs64 + int8 MTP · cap 16 · CPU only · v1.10.2 | **1.23 tok/s** rotating median · hit 97% · matmul half 2.5x the x86 sibling at equal threads (i8mm status pending) |
### Two datapoints that are not rows
diff --git a/docs/int4-rans256-g0.md b/docs/int4-rans256-g0.md
index e8c85b4d..b61dcb7d 100644
--- a/docs/int4-rans256-g0.md
+++ b/docs/int4-rans256-g0.md
@@ -165,7 +165,13 @@ For the existing formats the engine can infer identity from byte arithmetic
**That inference is structurally impossible here**: entropy-coded size is
data-dependent — there is no `expected_bytes(O, I)` to compare against. The
stamp is therefore the **only** signal that a `U8` tensor is entropy-coded
-at all. Data dependence prevents **identity inference**, not extent planning:
+at all. This is a statement about *identity*, not about extent: the
+physical length of every record is still fully determined by its stored
+framing (header, stream offsets, payload, the two `round16()` pads; see the
+validity rules above, "the record's total length equals the derived framing
+exactly"), and is known before decode. Only the payload's content length is
+data-dependent, so page-aligned, fixed-size I/O planning over records remains
+valid (#1273). Data dependence prevents **identity inference**, not extent planning:
the stored framing determines the record's complete physical length before
decode, so page-aligned reads (including 4 KiB-padded `O_DIRECT` extents)
remain possible. The stamp is still mandatory because the format identity,