--- title: "GGUF models" description: "Run a GGUF you already have, read in place: no conversion, no second quantization." --- # GGUF models colibri runs the GGUF files people already have on disk. The ggml blocks are computed as the file holds them, from IQ1_S to Q8_0 and MXFP4: nothing is converted or quantized a second time. ```bash ./coli import ~/models/GLM-5.3-UD-IQ1_S-00001-of-00006.gguf # first part of a split model ./coli chat --model ~/models/GLM-5.3-UD-IQ1_S.colibri # or coli serve / coli web ``` `coli import` writes a model directory next to the GGUF, named after it, or wherever `--out` says. The directory holds `config.json`, the tokenizer, the chat template and `gguf.json`, which points at the file. From there `coli chat`, `coli serve`, `coli web`, `coli plan` and `coli doctor` treat it like any other model. ## Supported architectures | GGUF architecture (`general.architecture`) | Models | Engine | |---|---|---| | `qwen35moe` | Qwen3.5 / Qwen3.6 MoE | qwen36 | | `qwen35` | Qwen3.5 / Qwen3.8 dense | qwen36 | | `qwen3moe` | Qwen3 MoE, Qwen3-Coder | qwen36 | | `qwen3` | Qwen3 dense | qwen36 | | `flint` | Flint (RecursiveSI/flint; [qwen36.md](qwen36.md#flint)) | qwen36 | | `muse-spark` | Muse Spark Open, text ([qwen36.md](qwen36.md#muse-spark-open)) | qwen36 | | `lfm3` | LFM3-VL, text, and pictures with the `mmproj-*.gguf` next to it ([qwen36.md](qwen36.md#lfm3-vl)) | qwen36 | | `qwen4exp` | Qwen3.8-Flash-Next (and its MTP head) | qwen38 | | `deepseek4` | DeepSeek V4 Flash | deepseek_v4 | | `deepseek41` | DeepSeek V4.1 Flash (files with e4m3 engram rows, and the published K-quant and IQ files; `dflash`, its DSpark head, with `--mtp`) | deepseek_v41 | | `inkling` | Inkling | inkling | | `inkling2` | Inkling-2-Small and unsloth's Inkling-2-Mini files, text, and pictures with the `mmproj-*.gguf` next to it ([inkling.md](inkling.md#inkling-2-small)) | inkling | | `inkling2_loop` | Inkling-2-Mini in mainline llama.cpp's layout (unsloth's `Mainline_Support` files, [inkling.md](inkling.md#inkling-2-mini)) | inkling | | `glm5-next` | GLM-5.3-Flash | glm53 | | `glm-dsa` | GLM-5.2, GLM-5.3 | colibri | | `mistral-large4` | Mistral-Large-4 ([mistral-large4.md](mistral-large4.md)) | colibri | | `mimo2` | MiMo-V2.6 | mimo | | `olmoe` | OLMoE | olmoe | | `kimi-k3` | Kimi K3 | kimi_k3 | | none (recognised by its tensors) | Qwen-Image-2.1 and Qwen-Image-2.1-Turbo, unsloth's transformer GGUFs, with `qwen3vl` (Qwen3-VL-8B-Instruct) as the text encoder ([qwen-image.md](qwen-image.md#gguf-unsloth)) | qwenimage | A GGUF of another architecture is refused by `coli import` with the list above. ## Two modes - **`--mode link`** (the default): the engine reads the GGUF where it is. Nothing is copied. - **`--mode copy`**: also writes `model.colibri.gguf`, with every dense tensor byte for byte and each layer's routed experts re-laid out one expert per 4 KiB-aligned slot (gate, up and down contiguous), so that an expert is one aligned read. It works for every architecture with routed experts but `qwen4exp`, whose engine reads in place only. Both are lossless: the same blocks, the same tokens. ## What the engines do with the blocks - **The CPU interleaves rows by 16.** Matrices whose type has the form (Q4_K, Q5_K, Q6_K, Q3_K, IQ4_XS, Q8_0, Q4_0, IQ4_NL) are held with their rows interleaved by 16, which speeds up prompts and speculative verification. Experts are packed when they are read, dense matrices once at load. Each engine's switch keeps the file's rows, as `GQ_EXACT=1` does: | Engine | Switch | |---|---| | qwen36 | `Q36_ILV16=0` (also our container's int4 trunk, `COLI_DENSE_BITS=4`) | | qwen38 | `Q38_ILV16=0` | | deepseek_v4 | `COLI_V4_ROWS16=0` | | deepseek_v41 | `V41_ILV16=0` | | inkling | `INK_ILV16=0` | | glm53 | `G53_ILV16=0` | | colibri | `GLM_ILV16=0` | | olmoe | `OLM_ILV16=0` (dense matrices; its experts keep the file's rows) | - **qwen36 holds a dense IQ3_S matrix as codes.** IQ3_S packs four values into a 9-bit grid index and the signs into bits of their own; the CPU looked up the grid for every four values, and read those matrices at a third of the RAM's speed (Qwen3.8-27B UD-Q3_K_XL: 27% of its bytes, about half of a token's time on the CPU). qwen36 holds them as one 4-bit code a value (sign and level) in IQ4_XS's interleaved layout and reads them with its kernels, a quarter more bytes: on a Ryzen 7 PRO 8700GE's CPU, six threads, a 2560 x 2560 matrix 0.128 -> 0.059 ms, and Qwen3.8-27B UD-Q3_K_XL's decode 2.35 -> 2.82 tok/s with the release's x86-64-v3 build (2.38 -> 3.04 built native), 12.3 -> 13.1 GB of RSS; an i5-13500, whose six P-cores read the file's rows near their RAM's speed already, 2.4 -> 2.5. A matrix takes its codes at its first product on the CPU, so the matrices a device holds keep the file's rows; once for the model, the engine checks that the RAM free then holds every dense IQ3_S matrix's quarter more and 2 GB, and says what it did. `Q36_IQ3S_CODES=0` (or `Q36_ILV16=0`) keeps the file's rows. Experts keep the file's rows (their RAM slots would hold fewer). - **qwen36 holds the other grid types' matrices in larger forms too.** IQ3_XXS as codes like IQ3_S (1.4x its bytes); IQ2_XXS, IQ2_XS, IQ2_S, IQ1_S and IQ1_M as planes: two bits of level a value (the grid's bytes 8, 25 and 43, or IQ1's -1, 0 and 1) and a sign bit, or IQ1's delta a group, 16 rows interleaved (1.3 to 1.6x). Their kernels look no grid up. The engine takes them type by type, those that save the most decode time per byte they add first (IQ1_M, IQ1_S, IQ3_S, IQ2_S, IQ2_XS, IQ3_XXS, IQ2_XXS), while the RAM free then holds what they add and 2 GB, and says which it took; `Q36_CODES_GB=` caps what they may add. On a Ryzen 7 PRO 8700GE's CPU, 8 threads, built native: Qwen3.8-27B UD-IQ2_XXS 368 -> 187 ms a token of decode with all of them (7.2 -> 10.5 GB of RSS; with 0.8 GB more, IQ1_S and IQ3_S alone, 244), UD-Q3_K_XL 295 -> 247; the teacher-forced NLL of 400 tokens within 0.4% of the file's rows'. A MoE's experts take them when every expert fits in RAM with them (the cache automatic or as large as the experts' count): Qwen3.6-35B-A3B UD-IQ2_XXS 52 -> 47 ms a token over 256. - **Q2_K and MXFP4 have row-interleaved forms of the file's size**, like the K-quants', so every engine holds them so for the CPU, experts too (`*_ILV16=0` keeps the file's rows). - **The Vulkan expert tier** (`COLI_VULKAN=1`) takes a GGUF's experts as the file has them. Each layer keeps its own types, since published files mix them. The layers of the types most layers have keep their experts at their own size on the device and in the host pool, and the other layers' experts sit in rooms of their own types' sizes, one class of rooms for each size ([vulkan.md](vulkan.md#the-routed-expert-tier-vk_tierc): 25-31% more experts held, GLM-5.3 Flash UD-IQ2_XXS from 2.50-3.14 to 2.92-3.40 tok/s of decode, Inkling-Small from 7.87-8.11 to 10.92-11.53). - **MXFP4 experts** (DeepSeek V4 and V4.1, MiMo) are laid out as their checkpoints' FP4, so they run on those engines' own kernels and device forms. - **MiMo's other types.** A MiMo GGUF of K-quants or IQ types (ggml-org's MiMo-V2.6-Flash Q2_K_S, 106 GB) keeps its blocks: the trunk on the CPU's integer kernels and on the Vulkan chain's block formats, the experts each layer its types, on the CPU and in the Vulkan tier. On an RTX PRO 4000 with 62 GB of RAM: 7.8 tok/s of decode and 8.2 of prompt, the CPU's greedy text. The engine used to refuse every type but MXFP4 experts and a BF16 trunk. - **OLMoE's experts keep the file's rows**: they fit in RAM, and interleaving one at its read cost more than the 16-row kernels gave back on its matrices. llama.cpp's `olmoe` files carry no `norm_topk_prob`; the import writes false, as the official checkpoints have it and as llama.cpp computes them. - **DeepSeek V4.1's engram tables** are read a row at a time, as from the checkpoint: a `deepseek41` file holds each row's e4m3 values and their scales together. The published K-quant and IQ files keep every table in one tensor of a ggml type (`per_layer_token_embd`), read the same way: unsloth's UD-IQ1_S and UD-IQ1_M ship it as IQ4_NL (a row of 256 values in 144 bytes), UD-IQ2_XXS and UD-Q2_K_XL as Q5_K, UD-IQ3_XXS as Q6_K, and UD-IQ3_S, UD-Q3_K_XL, UD-Q4_K_XL and UD-Q8_K_XL as ggml type 43, MXFP8 (blocks of 32: an E8M0 exponent, then 32 E4M3 values; 264 bytes a row, the checkpoint's own encoding, so its rows are the checkpoint's bits). Their `engram/` folder's tables swap in for one another, any of the four. Qwen3.8-Flash-Next's n-gram table (its PLE, 160 values a row) comes as IQ4_NL, Q8_0, Q5_1 or BF16, every one read the same way. They carry the config as keys rather than the checkpoint's `config.json`: the importer writes it from them, and the engram's sidecar (`dsv41_engram.json`) from the `ple` keys, whose primes, hash multipliers and offsets are the ones `tools/prepare_dsv41.py` derives from the checkpoint. Their `engram_gate` is the engram's two norm weights multiplied, which is all the gate reads of them. - **DeepSeek V4.1's DSpark head** ships as a GGUF of its own (arch `dflash`, `dspark-*.gguf`: three stages under V4.1's layer names, MXFP4 experts, Q8_0 or BF16 projections, and the head's `fc`, norms, confidence and Markov tensors). `--mtp dspark-....gguf` links it: the importer checks it against the model's `dspark` keys and names it in `gguf.json`, the engine reads its stages as `mtp..*`, their MXFP4 experts as the checkpoint's FP4 in slots of their own, and the planner prices them as the checkpoint's. A head next to the model is only named, because its drafts measured slower: UD-IQ1_S with the Q8_0 head on an RTX PRO 4000 (24 GB) with 62 GB of RAM, the Vulkan chain, a 163-token prompt and 128 tokens, accepted 22-33% of its drafts, and decode went from 5.01-5.29 tok/s without the head to 4.29-4.64 with it (1.72-1.89 with `V41_DSPARK_MINACC=0`). The head was trained on the full model, and a 1-bit one agrees with it less; the verify rows also bring more of the experts the RAM cannot hold. The greedy text is the same bytes with and without it. - **Kimi K3** (`kimi-k3`). The importer writes the checkpoint's config from the keys: a layer whose `head_count_kv` is 0 is a KDA layer, the others MLA. The engine takes the file's tensors as their checkpoint counterparts: - `attn_res_score`, `ffn_res_score` and `output_res_score` are the AttnRes norm and projection already multiplied, which is all the engine reads of them. - `ssm_a` holds -exp(A_log): the engine's decay rate A = exp(A_log) is its negative. - MLA's `attn_k_b` (transposed) and `attn_v_b` are put back into `kv_b_proj`. - The routed experts sit in the latent (`ffn_routed_down` and `ffn_routed_up` are the latent projections) and keep the file's blocks on the CPU and in the Vulkan tier. A GGUF's `lm_head` stays on the host. - unsloth's UD-IQ1_S (594 GB: F32, Q6_K, Q8_0, IQ2_XXS and IQ1_S) runs. On an RTX PRO 4000 (24 GB) with 62 GB of RAM, a 181-token prompt and 128 tokens: the CPU 0.4-0.5 tok/s of prompt and 0.18-0.22 of decode, Vulkan 1.0 and 0.28. The chain holds 45 of the 93 layers (21.3 GiB) and the tier 106 experts on the card and 2839 in the host pool; most experts still come from the disk. UD-TQ1_0 and UD-Q1_0 use ggml types 65 and 66, which colibri does not know: `coli import` refuses them ("unsupported ggml type 65"). - The experts' shards are read without the kernel's readahead (`POSIX_FADV_RANDOM`), three slices an expert. With it, on a two-NVMe md array whose readahead is 2 MiB, decode read 17.3 GB a token for 6.7 GB of experts. Without it the read is 5.8 GB, and a 96-token answer on Vulkan decodes at 0.349 tok/s against 0.269, its 31-token prompt in 46.5 s against 54-57 s. - **A GGUF's experts read without the kernel's readahead.** A layer's experts sit in three tensors, so an expert is three slices read apart through the page cache, and the readahead read past each one. The files that hold them take `POSIX_FADV_RANDOM` on every drive, the mirrors too (`st_no_readahead` in `c/st.h`): colibri (GLM-5.2), glm53, mimo and kimi_k3. The engines that read their experts with `O_DIRECT` (deepseek_v4, deepseek_v41) never had it. GLM-5.2 UD-IQ1_S (202 GB) on Vulkan, an RTX PRO 4000 with 62 GB of RAM and a two-NVMe md array whose readahead is 2 MiB, a 96-token answer, two runs without readahead and three with it, alternated: 2.3-3.6 GB read a decoded token against 4.7-6.6 with the same number of experts loaded, 0.633-0.658 tok/s against 0.567-0.602, and 41 GB read for the prompt against 64-67. - **GLM's MLA**: `k_b` / `v_b` (llama.cpp splits `kv_b_proj`) stay the file's blocks on the CPU; the Vulkan chain (glm53 and colibri) takes them as floats, since its MLA core reads them a head at a time. - **The Vulkan dense chain** (qwen36, qwen38, glm53, colibri, deepseek_v4, deepseek_v41, olmoe, inkling, mimo and kimi_k3) takes a GGUF's dense matrices as the file has them too. Q8_0, Q4_K, Q5_K, Q6_K, IQ2_XXS, IQ2_S, IQ3_S, IQ4_NL and IQ4_XS run on a GEMV with one decoder per type (`shaders/chain_gemv_bd.comp`), and the other types on the general block decoder. V4.1's grouped output projection (`wo_a`) goes up as its eight output groups' matrices in the file's blocks, a GEMM a group (`COLI_VK_V41_WOA=0`: the per-head reader, as int8 from Q8_0 and as floats from the other types). The routed experts run inside the same frame when the tier holds every expert of a layer. A decode step or a verify of up to 16 rows runs there; a prompt's longer chunks go through the CPU and the expert tier. - **The Metal graph** (qwen36 in a `METAL=1` build, `qwen35moe` files) computes a GGUF's dense matrices and routed experts on the GPU as the file has them: Q8_0, Q4_K, Q5_K, Q6_K, IQ4_NL and IQ4_XS, one decoder per type, the dense matrices seen in place in the file's mapping, a dense matrix of floats (the router) as the CPU engine holds it. A file with a matrix of another type (UD-IQ4_XS and UD-IQ4_NL keep their experts' gate and up in IQ3_S) runs on the CPU engine, with a line. In that build `GQ_EXACT=1` alone leaves the graph on (its exact mode is `QWEN36_METAL_EXACT=1`): `COLI_METAL=0 GQ_EXACT=1` runs the CPU engine's exact path. See [qwen36-metal.md](qwen36-metal.md#gguf). - **The CUDA backend takes a GGUF's blocks too** (`cuda_bd.cuh`): every ggml block type of 32 weights or more, each row as the file has it. A decode step and a speculative verify (up to 8 rows, sharing each weight load, each row with a decode step's bits) run in the CPU's integer form on Q8_0, Q2_K to Q6_K, IQ1_S, IQ1_M, IQ2_XXS, IQ2_XS, IQ2_S, IQ3_XXS, IQ3_S, IQ4_NL, IQ4_XS and Q2_0 (the CPU's codes, scales and integer sums: the two differ only in the order of the float sums), the other types in floats. A prompt chunk goes through the f16 tensor-core tiles (`COLI_CUDA_BD_TILES`). - **F16 and BF16 matrices are block formats on both devices** (fmt 101 and 130: blocks of 32 values, 64 bytes, no scale; `blockdec_host.h`), so they take the same GEMVs and tiled GEMMs as the quantized types: the Vulkan chain's per-type GEMV and its 64 and 128 tiles on the matrix units, the CUDA float GEMV and the f16 tensor-core tiles (`hcm_dense_k`; BF16 converted to f16 there, held to +-65504). qwen36 keeps such a matrix in f32 for the CPU and gives the devices the file's 16 bits back from it (exact). Before, Vulkan read them as f32 rows outside the tiled GEMMs and CUDA kept them on the CPU. Qwen3-0.6B (ggml-org's F16 and BF16 GGUFs) on an RTX PRO 4000, a 470-token prompt and 128 decoded tokens: CUDA 137 -> 15,921 tok/s of prompt and 17.6 -> 221 of decode (F16), 139 -> 15,578 and 17.7 -> 221 (BF16); Vulkan 925 -> 11,601 and 37.2 -> 204 (F16), 977 -> 11,654 and 37.8 -> 205 (BF16). The greedy text is the CPU's on every backend. - **qwen36's CUDA chain runs a GGUF whole on the card**: its experts in the CUDA tier as the file has them (gate/up and down types by layer, one arena a device: `QT_GGUF_ARENA`), computed in the chain's frame (without the chain, through the tier's expert groups, the misses on the CPU), and its dense matrices, lm_head and DeltaNet projections as their blocks. Qwen3.6-35B-A3B on an RTX PRO 4000 (24 GB), every expert on the card: | | CUDA chain | Vulkan chain | |---|---|---| | UD-IQ2_XXS: decode, prefill of 467 tokens | 118 tok/s, 1356 tok/s | 100 tok/s, 1600 tok/s | | UD-IQ2_XXS: a code edit of 400 tokens (prompt lookup) | 2.38 s | 3.3 s | | UD-Q4_K_M: decode, prefill | 96 tok/s, 1388 tok/s | 75 tok/s, 1450 tok/s | | UD-Q4_K_M: the code edit | 2.67 s | 3.1-3.7 s | The greedy text is the CPU's (the same integers). Before, a CUDA run of a GGUF computed every routed expert on the CPU (UD-IQ2_XXS: 13.7 tok/s of decode). - **qwen38's CUDA chain runs a GGUF too**: the trunk and the experts on the CUDA tier as the file has them (warm from the history), the experts the card leaves in a host pool of page-locked RAM the card reads over the bus (`COLI_CUDA_CHAIN_POOL`: a decode step's staged on the card first, a prompt chunk's layer copied over DMA while the layers before it run), routed and computed in the chain's frame with no host step. Qwen3.8-Flash-Next IQ2_XS (68 GB) on an RTX PRO 4000 (24 GB): prompt 209-213 tok/s, decode 49.6-50.8 (before: 19-21 and 11.6; the Vulkan chain 194-197 and 44-51); a prompt of one chunk computes its pooled experts on the CPU where that is measured faster than their copy (`COLI_CUDA_CHAIN_POOL_CPU_ROWS`), 452 tokens 213-215 -> 480-491 tok/s (the Vulkan chain 206 -> 471-477). The greedy text is the CPU's and the Vulkan chain's. A CUDA run of such a GGUF stays on CUDA in a build with both backends. - **colibri (GLM-5.2, Mistral-Large-4) runs a GGUF on CUDA too**: the routed experts on the shared tier over the CUDA backend as the file has them, the resident dense matrices on the card as far as half its free memory goes (`COLI_CUDA_DENSE_GB` sets it), the attention on the CPU. Mistral-Large-4 UD-IQ1_S on an RTX PRO 4000: 888 experts on the card where the Vulkan tier beside the dense chain holds 156, a 240-token prompt in 66-82 s and then 1.34-1.36 tok/s of decode, against the Vulkan chain's 36.5-36.9 s and 1.16-1.17 (alternated, the same build): faster decode, a slower prompt, whose dense part (17 GiB, past half of the card) the CPU reads. A build without Vulkan (`make CUDA=1`) takes the same path. - **The other engines' dense matrices stay on the CPU** on CUDA, and their CUDA tiers take no ggml block types yet. - **A GGUF those engines' CUDA path does not take runs on Vulkan on an NVIDIA card** (qwen38 for a file whose expert types the CUDA chain's frame lacks, colibri for GLM-5.2 and Mistral-Large-4, whose Vulkan chain takes the attention and so reads a prompt faster than its CUDA path (`COLI_VULKAN=0` runs it there, see above), deepseek_v4, whose CUDA tier mirrors native FP4 experts only, and qwen36 for a file whose expert types the CUDA chain's frame lacks). A CUDA run of such a GGUF computed every routed expert on the CPU (Qwen3.8 IQ2_S/Q2_0 on an RTX PRO 4000: 28 tok/s of prompt, 9 of decode). A build with both backends switches such a run to Vulkan on the same card when CUDA was asked for and `COLI_VULKAN` was not set (114-118 and 46-49 tok/s); `COLI_VULKAN=0` keeps CUDA. `coli setup` builds these engines' CUDA engine with Vulkan too where the Vulkan toolchain is there (on Linux; the Windows CUDA package has both). ## Prism ML's ternary files (`prism.hadamard`) Prism ML's Ternary Bonsai models (Apache-2.0, built from Qwen3.8) store every weight as -1, 0 or +1 with one scale per 128. Their `Q2_0` files run on the qwen36 engine: [Ternary-Bonsai-2.5-27B](https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF) (7.67 GB, or 7.91 GB with its MTP head), [2-27B](https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf), [2-9B](https://huggingface.co/prism-ml/Ternary-Bonsai-2-9B-gguf) and [2-4B](https://huggingface.co/prism-ml/Ternary-Bonsai-2-4B-gguf): ```bash ./coli import --out ~/models/bonsai-27b ~/models/Ternary-Bonsai-2-27B-Q2_0.gguf ./coli chat --model ~/models/bonsai-27b ``` The weights are stored in a rotated basis, and the file says so in `prism.hadamard.*`. Every matrix it names reads its input as H (D x): D is the file's sign vector for that input width, H a normalized Walsh-Hadamard transform on each block of 1024. The embedding's rows come back with D (H z). With `gdn_v_grouped`, the input of the DeltaNet output projection goes from llama.cpp's tiled value-head order to the grouped one first. The small models' version 2 ties the head to the rotated embedding, so the head reads its input rotated too. The engine applies all of this (`[gguf] prism.hadamard: 401 matrices in a rotated basis ...`). It refuses a file whose rotation it does not implement, and a file whose named matrices it did not all read through it: without the rotation the model gives noise. Measured on a Ryzen 7 PRO 8700GE (8 cores, 16 threads, DDR5), three short answers, greedy: | file | size | decode, tok/s | |---|---|---| | Ternary-Bonsai-2-27B `Q2_0` | 7.63 GB | 6.8-7.4 | | Ternary-Bonsai-2.5-27B `Q2_0-mtp`, no drafts | 7.91 GB | 6.8-7.5 | | the same, `Q36_MTP=1 Q36_MTP_DRAFTS=3` (its MTP head, 62 to 99 % of drafts taken) | 7.91 GB | 9.2-14.8 | | Qwen3.8-27B `UD-IQ2_XXS` (unsloth) | 7.27 GB | 5.3-5.8 | | Qwen3.8-27B `UD-Q4_K_XL` (unsloth) | 17.6 GB | 2.9-3.6 | | Ternary-Bonsai-2-9B `Q2_0` | 2.56 GB | 21.6-23.3 | | Ternary-Bonsai-2-4B `Q2_0` (version 2, the head tied) | 1.21 GB | 34.8-39.2 | The MTP head of the `-mtp` file is an ordinary one (Q4_0, not rotated): `Q36_MTP=1` drafts with it as with unsloth's 27B, the same text as without. The rotation costs about 1.5 ms of a token's 64 layers on the CPU. **CUDA** rotates too: the chain runs a `hadamard` op before each rotated matrix (the CPU's sums in the same order, so the same bits), and a product the tier runs outside the chain gets its rows rotated on the host. Ternary-Bonsai-2-27B on an RTX PRO 4000 (24 GB), the same three answers: | path | decode, tok/s | |---|---| | the CUDA chain | 29.8-41.2 | | the per-matrix tier (`COLI_CUDA_CHAIN=0`) | 5.9-6.2 | | Ternary-Bonsai-2.5-27B `Q2_0-mtp` on the CUDA chain, no drafts | 29.8-41.5 | | the same, `Q36_MTP=1` (its MTP head on the card, one draft) | 37.9-60.4 | | the same, `Q36_MTP=1 Q36_MTP_DRAFTS=3` | 44.3-74.7 | | Qwen3.8-27B `UD-Q4_K_XL` on the CUDA chain, for comparison | 19.7-20.9 | The texts are the CPU's, with drafts or without. The MTP head on the card rotates the row its head (the trunk's rotated lm_head) reads; its own layer is not rotated. A CUDA module from before the op keeps the chain off for these files (the per-matrix path, said in the log), and the separate DeltaNet step on the card stays off for them. **Vulkan** rotates the same way on its chain (`chain_hadamard.comp`, blocks up to 4096); a dense model's MTP head runs on the CPU beside the Vulkan chain, as for unsloth's 27B. On the same RTX PRO 4000 with Vulkan: | file | decode, tok/s | |---|---| | Ternary-Bonsai-2-27B | 17.8-21.4 | | Ternary-Bonsai-2.5-27B `Q2_0-mtp`, no drafts | 17.9-21.6 | | the same, `Q36_MTP=1 Q36_MTP_DRAFTS=3` (the head on the CPU) | 11.6-13.6 | | Qwen3.8-27B `UD-Q4_K_XL` (unsloth) | 13.6-15.6 | With its head on the CPU the MTP head slows a Vulkan decode down: leave it off there. **Metal** does not rotate yet: with `COLI_METAL=1` the engine says so and keeps the CPU. The two small ones on the same card through `coli serve`, four answers of 256 tokens and a 2670-token document (its prompt tokens over the time to the first token); a prompt's dense `Q2_0` matrices go through the CUDA backend's tensor-core tiles (they took only routed experts before, the 9B's prompt 1196 tok/s and the 4B's 2150): | file | CUDA, decode | CUDA, prompt | Vulkan, decode | Vulkan, prompt | |---|---|---|---|---| | Ternary-Bonsai-2-9B `Q2_0` | 100.9-105.2 | 2704 | 56.8-60.5 | 1665 | | Ternary-Bonsai-2-4B `Q2_0` | 175.7-183.0 | 4114 | 109.2-110.6 | 2502 | On the CPU of machine A the same document's prompt reads at 88 and 143 tok/s. `coli setup` offers `bonsai-27b` (the 2.5-27B with its MTP head) among its choices: on a machine where it fits the card or the RAM it is often the one chosen. `bonsai-9b` and `bonsai-4b` are listed and installed by name (`coli setup --model bonsai-4b`) but never chosen on their own: the choice weighs speed, and a 4B would come before far more capable models on an 8 GB laptop. The `PTQ1_0` and `PQ2_0` files use types of Prism ML's own runtime and are refused. ## Ollama's files The blobs Ollama pulls for Qwen3.5 / Qwen3.6 (`qwen3.6:35b`: 23.9 GB, Q4_K_M, under `/usr/share/ollama/.ollama/models/blobs/sha256-...` on Linux) come from Ollama's own converter, not llama.cpp's, and differ in three places `coli import` and the qwen36 engine know: `attention.head_count_kv` is an array per layer (0 on the DeltaNet layers), whose maximum is the config's; the DeltaNet's dt bias is `blk.N.ssm_dt` (llama.cpp's `ssm_dt.bias`, the same values); and the MTP head (`mtp.*`) and the vision tower (`v.*`, `mm.*`) sit in the model's file, which the engine leaves unread. `ssm.v_head_reordered` and `rope.mrope_interleaved` carry no change of layout. A symlink with a `.gguf` suffix on the blob serves as the import's file: ```bash ln -s /usr/share/ollama/.ollama/models/blobs/sha256- ~/models/qwen3.6-35b-ollama.gguf ./coli import --out ~/models/qwen3.6-35b-ollama ~/models/qwen3.6-35b-ollama.gguf ``` Qwen3.6-35B-A3B from that blob on an RTX 3070 (8 GB) with the CUDA chain, 2619 experts on the card: 73-78 tok/s of decode where Ollama 0.40.3 decodes the same file at 38 on the same card. ## Checking a GGUF before downloading it `tools/gguf_header.py` fetches only the header of a model on the Hugging Face Hub (a few MB). With `GGUF_CHECK=1` the importer writes the model directory from that header alone, so you see the config it would get. The qwen36, deepseek_v4 and deepseek_v41 engines then check the folder against every tensor they would load, without reading one: ```bash python3 tools/gguf_header.py unsloth/Qwen3.6-35B-A3B-GGUF Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf /tmp/hdr GGUF_CHECK=1 python3 tools/gguf_import.py /tmp/hdr/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf /tmp/hdr/imp GGUF_CHECK=1 SNAP=/tmp/hdr/imp ./qwen36 ``` In a `METAL=1` build qwen36 also says on stderr whether its Metal graph would run the model, or why not ([qwen36-metal.md](qwen36-metal.md#gguf)).