Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
tests: the guards that #1830 and #1828 tripped
JustVuggd8c3af81f1ff
diff --git a/c/Makefile b/c/Makefileindex 468f3504..c7c43546 100644--- a/c/Makefile+++ b/c/Makefile@@ -1011,9 +1011,12 @@ gemm-test: tests/test_gemm_largebatch.mm backend_metal.mm backend_metal.h affine# the tiny hybrid stack. Needs QWEN36_QPACK_FIXTURE=<dir> pointing at a real# swiftlet-repack output of tiny-model-q4; without it the binary skips with a# distinct marker instead of pretending to pass.-qwen36-metal-test: tests/test_qwen36_qpack_metal.c qwen36.c qwen36_qpack.c qwen36_qpack.h qpack.c qpack.h affine_quant.h qwen36_tier.h st.h json.h compat.h backend_metal.o- $(CC) $(CFLAGS) -DCOLI_METAL -DQWEN36_QPACK tests/test_qwen36_qpack_metal.c qwen36_qpack.c qpack.c backend_metal.o -o qwen36_qpack_metal_test -framework Metal -framework Foundation -lc++ $(LDFLAGS)+# The binary has a rule of its own, named after it, so VK=1 can list $(VK_OBJ) as+# a prerequisite of the link that needs it (qwen36.c calls the backend).+qwen36-metal-test: qwen36_qpack_metal_test./qwen36_qpack_metal_test+qwen36_qpack_metal_test: tests/test_qwen36_qpack_metal.c qwen36.c qwen36_qpack.c qwen36_qpack.h qpack.c qpack.h affine_quant.h qwen36_tier.h st.h json.h compat.h backend_metal.o $(VK_OBJ)+ $(CC) $(CFLAGS) -DCOLI_METAL -DQWEN36_QPACK tests/test_qwen36_qpack_metal.c qwen36_qpack.c qpack.c backend_metal.o $(VK_OBJ) -o qwen36_qpack_metal_test -framework Metal -framework Foundation -lc++ $(LDFLAGS)# fmt=6 (E8/IQ3) encoder for tools/convert_fp8_to_int4.py. OPTIONAL: iq3_pack.py# falls back to its numpy path when the library is absent, producing the samediff --git a/c/tests/test_registry_engine_agreement.py b/c/tests/test_registry_engine_agreement.pyindex 661be0f8..ea775675 100644--- a/c/tests/test_registry_engine_agreement.py+++ b/c/tests/test_registry_engine_agreement.py@@ -33,8 +33,13 @@ sys.path.insert(0, str(ROOT))import family_registry as fr # noqa: E402-BACKEND_OBJECTS = ("CUDA_OBJ", "METAL_OBJ", "VK_OBJ", "VK_SPV", "INK_CUDA_OBJ",- "QWEN36_TIER_OBJ")+# VK_OBJ/VK_SPV are not on the list: since #1830 every engine links the Vulkan+# backend in a VK=1 build, and in the engines that link nothing else it only puts+# the resident matrices on the device, opt-in (COLI_VULKAN=1), with no VRAM tier+# for the planner to size and no GPU for it to select. What the flag promises is+# exactly that tier and that selection, so a Vulkan-only engine stays CPU-only to+# the planner.+BACKEND_OBJECTS = ("CUDA_OBJ", "METAL_OBJ", "INK_CUDA_OBJ", "QWEN36_TIER_OBJ")def engine_rule(artifact: str) -> str:diff --git a/c/tools/convert_fp8_to_int4.py b/c/tools/convert_fp8_to_int4.pyindex 3cb12b91..cedfc120 100644--- a/c/tools/convert_fp8_to_int4.py+++ b/c/tools/convert_fp8_to_int4.py@@ -58,6 +58,7 @@ OTHER_FAMILY_PATHS = {"qwen3_5_moe_text":"Qwen3.6: use tools/convert_qwen36.py","qwen3_5": "Qwen3.8-27B (dense): use tools/convert_qwen36.py, see docs/qwen36.md","qwen3_5_text": "Qwen3.8-27B (dense): use tools/convert_qwen36.py, see docs/qwen36.md",+ "qwen3_moe": "Qwen3-Coder-30B-A3B: use tools/convert_qwen36.py, see docs/qwen36.md","inkling_mm_model":"Inkling: use tools/convert_inkling_int4.py","inkling": "Inkling: use tools/convert_inkling_int4.py","olmoe": "OLMoE: use tools/convert_olmoe.py",