Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
Merge pull request #1392 from JustVugg/chore/issue-followups
Vincenzo Fornaro9a877497e0fe
diff --cc .github/workflows/ci.ymlindex bdea28e4,3ce29951..4f6ddc20--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@@ -454,40 -454,20 +454,53 @@@ jobspython3 tools/make_edge_tiny_tokenizer.py --vocab-size 320 qwen36_tiny_cmake qwen36 >/dev/nullCOLI_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"+ olmoe-tiny-check:+ name: OLMoE tiny oracle (token-exact + dashboard HITS)+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-python@v5+ with:+ python-version: '3.12'+ cache: pip+ cache-dependency-path: c/tools/oracle-requirements.txt+ - name: Install torch (CPU) + transformers+ run: pip install -r c/tools/oracle-requirements.txt+ - name: Tiny OLMoE checkpoint, converted+ run: |+ cd c+ # 4 layers x 8 experts at toy dimensions, greedy reference from the+ # HF model in ref_olmoe.json. The converter is the real one.+ python3 tools/make_olmoe_tiny.py --output olmoe_tiny+ python3 tools/convert_olmoe_merged.py --model olmoe_tiny --out olmoe_tiny_c+ # weights only: serve mode needs a tokenizer to encode the prompt+ python3 tools/make_edge_tiny_tokenizer.py --vocab-size 128 olmoe_tiny_c+ - name: Token-exact against the reference+ run: |+ cd c+ make olmoe+ SNAP=olmoe_tiny_c ./olmoe 8 8 olmoe_tiny/ref_olmoe.json | tee oracle.log+ # the engine prints the score and exits 0 either way: the gate is here+ grep -qE 'Matching tokens: ([0-9]+)/\1$' oracle.log+ - name: "Brain tab: HITS after every turn, on the grid EMAP declared"+ run: |+ cd c+ OLMOE_TINY=olmoe_tiny_c python3 -m unittest -v tests.test_olmoe_dashboard_hits+qwen38-tiny-check:name: Qwen3.8 tiny oracle (GDN + QSA + PLE + MoE)runs-on: ubuntu-latest