Inkling-2-Mini-ML-Knowledge-SWE-GGUF
upgrade for a compact MoE model for code and ML
3 min readupdated
Author Tdamre has released two fine-tuned GGUF builds based on the quantized Inkling-2-Mini version from Thinking Machines and Unsloth (featuring a looped MoE architecture, mixture of experts). Instead of full retraining, targeted low-rank weight adjustments were applied to the output projection and the last expert block to boost programming skills, Triton GPU kernel work, and the debugging of numerical errors in ML. Two standalone 17.63 GB files in UD-Q4_K_XL quantization are available: the versatile Cumulative version (recommended for general tasks and bug fixing) and the Expert version for generating executable Python code and Triton kernels. The release will be useful for developers who run local LLMs via llama.cpp and are looking for a compact model for coding and machine learning tasks.
Key features
- Two variants for different tasks: the
Cumulativeversion handles fixing historical bugs in repositories better (20/82 versus 17/82 for Expert), whileExpertis stronger in code and GPU kernel synthesis. - Boost on Triton and Python: the Expert build solved 4/10 new tasks on writing Triton kernels with validation on an RTX 4090 (compared to 0/10 for Cumulative) and improved the result on the MBPP subset from 91/128 to 94/128.
- Debugging numerical failures: after the weight adjustments, the model began finding and fixing 7/8 recent numerical incidents in ML compared to 3/8 for the original quantized model.
- Long context support: both builds successfully passed data retrieval verification at inputs of around 131k tokens when enabling the Q5_0 KV cache.
What you can do
- Writing and optimizing GPU kernels: use the
Expertversion to generate and debug Triton kernels and Python tasks with computational correctness checks. - Local search and bug fixing: connect the
Cumulativebuild to an agent like mini-SWE-agent or a local chat for repository analysis, editing multiple files, and writing shell pipelines. - Analyzing long logs and source code: run the model with a context of up to 131,072 tokens to find needed snippets in large codebases.
Example
hf download Tdamre/Inkling-2-Mini-ML-Knowledge-SWE-GGUF Inkling-2-Mini-UD-Q4_K_XL-ML-Knowledge-SWE-ZHA.gguf --local-dir .
llama-server -m Inkling-2-Mini-UD-Q4_K_XL-ML-Knowledge-SWE-ZHA.gguf --host 127.0.0.1 -c 4096 -np 1 --jinjaRead more
DetailsBenchmarks: MBPP — 94/128 (Expert) and 90/128 (Cumulative) versus 91/128 for the base; Triton kernels (3 seeds) — 12/30 for Expert; short Python/Git/shell tasks — 15/18 (Expert) and 13/18 (Cumulative).
Hardware and running: each file weighs 17.63 GB; working with a 130,944-token context on an RTX 4090 required offloading 6 expert layers to the CPU (
-ncmoe 6) and enabling the Q5_0 cache.Requirements and limitations: requires an Unsloth
llama.cpp build with looped MoE format support; the adjustments did not provide a boost in general encyclopedic knowledge (TriviaQA, AA-Omniscience).









Comments