Run frontier MoE models on hardware you already own β pure C, zero deps, experts streamed from disk. Tiny engine, immense model. π¦
C
docs(qwen36): user-facing page β prebuilt containers as the easy path
kreuzzelg24d3c89e5520
diff --git a/docs/qwen36.md b/docs/qwen36.mdnew file mode 100644index 00000000..134f59d2--- /dev/null+++ b/docs/qwen36.md@@ -0,0 +1,62 @@+# Qwen3.6-35B-A3B on colibri++`c/qwen36.c` runs [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B)+(35B total / ~3B active, Apache 2.0) β a hybrid architecture: 25% Gated+Attention layers, 75% Gated DeltaNet (linear attention) layers, each followed+by a streamed MoE block (256 experts, top-8 + 1 shared). Dense weights stay+resident; routed experts stream from the container through an LRU + pinned+cache. Development notes live in `docs/qwen36-phase01.md` /+`qwen36-phase02.md`.++Architecture-identical checkpoints (same config geometry, e.g.+KAT-Coder-V2.5-Dev) run on this engine unchanged.++## Quickstart++Pre-converted containers (int4 experts, self-contained, ~20 GB):++```sh+# group-scaled int4 (gs64) β recommended, see "Which container" below+hf download Kreuzzelg/qwen36-35b-a3b-colibri-i4-gs64 --local-dir ~/Models/qwen36_i4_gs64++# per-row int4+hf download Kreuzzelg/qwen36-35b-a3b-colibri-i4 --local-dir ~/Models/qwen36_i4+```++or convert the original bf16 checkpoint yourself (~70 GB download):++```sh+python3 c/tools/convert_qwen36.py --repo Qwen/Qwen3.6-35B-A3B --out ~/Models/qwen36_i4_gs64 --gs 64+```++Build and chat:++```sh+make -C c qwen36+COLI_MODEL=~/Models/qwen36_i4_gs64 ./c/coli chat+```++`coli` reads the model's `config.json` (`model_type` contains `qwen`), picks+this engine, and drives it over the serve protocol β `coli web` and+`coli serve` (OpenAI-compatible API) work the same way.++Direct invocation without the gateway:++```sh+SNAP=~/Models/qwen36_i4_gs64 TOK=~/Models/qwen36_i4_gs64/tokenizer.json \+N_NEW=200 ./c/qwen36 256 4 prompt.txt+```++Requirements: ~30 GB RAM for comfortable expert caching, NVMe storage for the+container. CPU-only in this build; the CUDA VRAM expert tier is a separate PR+(`docs/qwen36-cuda-tier.md`).++## Which container?++The gs64 container carries one scale per 64-weight group instead of one per+row. On GLM, per-row int4 was the root cause of think-mode loops and+never-terminating generations (#455), and group scales fixed them in+controlled A/Bs β with `moe_intermediate_size=512`, Qwen's rows are short, so+per-row quantization error concentrates the same way. The gs64 container costs+~1.7 GB more on disk and a few percent on cold-start; warm decode speed is the+same or slightly better.