Developer tools#Model inference

LookAtMyQuant squeezes Inkling-2-Mini to 5.38 GB

LookAtMyQuant compresses Thinking Machines' 26.4B Inkling-2-Mini to 5.38 GB at 1.65 bits per weight: quick on Apple Silicon, 8.5 GSM8K points down.

Project facts

GitHub Ecosystem
Repositorygithub.com/ShinMegamiBoson/lookatmyquant
License
MIT
Language
Python
Stars
303
Data checked
2026-11-22

Snapshot figures reflect the check date and may change over time.

GitHub repository card for ShinMegamiBoson/lookatmyquant: the repo name and a "12x lower KL than Q4_K_M at the same file size" tagline, the owner avatar, and contributor, issue, star and fork counts

If you want a 26B-class model on a 16GB MacBook, the usual advice is to pick a smaller model. LookAtMyQuant tries something else: it takes the text weights of Inkling-2-Mini, the 26.4B-parameter model Thinking Machines released under Apache 2.0 on 2026-11-20 (3.4B active, 1M-token context), and compresses them from 18.89GB to 5.38GB, about 1.65 bits per parameter, then ships an Apple Silicon MLX runtime to run the result. The author, GitHub user ShinMegamiBoson, published four sizes on November 21. The Hacker News thread “Inkling-2-Mini in 5.4 GB Memory” had 372 points and 94 comments by November 22, and the people who actually ran it were as divided as the people who read the benchmarks. The repository itself is MIT-licensed Python, created 2026-10-31, with 303 stars, 11 forks and one contributor as of 2026-11-22.

GitHub repository card for ShinMegamiBoson/lookatmyquant, showing the repo name and its "12x lower KL than Q4_K_M" tagline

Key points

  • Four sizes, and the parity claim belongs to the biggest one. The 5.38GB build scores 176/200 on GSM8K and 116/164 on HumanEval; the one that matches the original on all 368 items (349 correct) questions is 12.76GB, 2.4 times larger.
  • The method measures sensitivity instead of applying one format. It scores per-layer, per-expert-bucket damage, allocates trellis codes under a size budget, then recovers accuracy with full-MoE fine-tuning: 2,400 steps, 9.83M tokens.
  • The author’s speed numbers come from one machine. On an M5 Max he measured 75.3 tok/s serial and 124.4 tok/s with a 179MB drafter at 5.98GB of active memory; an M1 Max user reports the drafter path crashes outright.

Core features

LookAtMyQuant is a quantization compiler. Rather than picking one format and one bit width for the whole model, it measures what compressing each stored piece does to the output, then gives each piece the cheapest code that keeps total damage inside a size budget.

  • Sensitivity by expert bucket. Inkling-2-Mini is a sparse MoE: 24 layers, 8 of 128 experts per layer, with the middle 12 layers run three times, so every token passes through 48 layer applications. The card counts 3.4B active parameters; with the loop, about 5.4B are effectively active per token. The author sorts experts into [16, 16, 32, 64] usage buckets, measures KL sensitivity bucket by bucket, and decides who gets how many bits. That step is the line between this and “quantize everything to 4 bits”.
  • Two kinds of trellis code. ht2 and ht3 are hashed block-vector trellis codes that decode inside 4KB of SRAM; rtr1 and rtr4 run a trellis along a matrix row. The tail bucket of lm_head gets a tr2 floor. Decoding needs hand-written Metal kernels, which is why the released files only run on Apple Silicon today.
  • High-sensitivity experts stay exact. The 11.18GB and 12.76GB builds keep 69 and 109 of 192 expert buckets at native NVFP4 with 0.0 recorded error. That only works because Inkling-2-Mini was trained in NVFP4 and ships in it; the compiler is preserving precision the checkpoint already has rather than inventing it.
  • Fine-tuning closes the gap. The author calls the recipe SQYFR: 24.46B expert weights, 38.8M native steering parameters, lm_head and attention row scales trained for 2,400 steps on 9.83M fresh tokens, distilled against an online teacher with 48-visit router Bernoulli-KL, with three Hessian-weighted projection cycles and a 600-step cosine settle. This is what turns the 5.38GB build from “loads” into “usable”.
  • A separate runtime. runtime_mlx ships the lamq CLI and a Python API, with greedy decoding, temperature sampling and lossless speculative decoding: a drafter proposes seven tokens after the current one, the target checks all eight positions in one pass. The compiler side runs without Apple hardware; the README walks SmolLM2-360M through measure, allocate, and build-and-score, 2,312 measurements in about 50 minutes on an L40S.

Benchmarks

LookAtMyQuant’s benchmark table appears identically in the README and the Hugging Face model card. It was run at max_new_tokens = 1,536, greedy, reasoning_effort="none", on gsm8k test[:200], all 164 executable HumanEval problems, four vision VQA tests and text windows in 13 languages. Reproduced as published:

BuildText weightsbppKL (en/chat/code)13-language KLGSM8KHumanEval3-task mean
Original (labelled BF16 teacher)18.89GB5.800.00000.0000193/200 (96.5%)152/164 (92.7%)100.0%
12.76GB12.76GB3.920.00700.0268193/200 (96.5%)152/164 (92.7%)100.0%
11.18GB11.18GB3.430.01150.0400190/200 (95.0%)151/164 (92.1%)99.3%
8.87GB8.87GB2.720.02080.0571192/200 (96.0%)149/164 (90.9%)99.2%
5.38GB5.38GB1.650.08950.2871176/200 (88.0%)116/164 (70.7%)89.2%

Two corrections to how this is usually described. First, “matches BF16” holds only at 12.76GB, which matches on all 368 items (349 correct) and cuts text weight memory by 32.5%. The 5.38GB build that carries the headline is 17 GSM8K questions and 36 HumanEval problems short, with a 3-task mean of 89.2%, and its 13-language KL rises from zero to 0.2871, so multilingual quality clearly degrades. Second, the row labelled “BF16 teacher” is 18.89GB at 5.80 bits per parameter; 26.4B at 5.8 bits is about 19.1GB, which matches the official model card’s “about 20GB, mixed NVFP4 and MXFP8”. The baseline is the official low-precision checkpoint dequantized for evaluation, not a 16-bit model, and calling it BF16 invites the wrong comparison.

The speed figures are also one machine. On an M5 Max the 5.38GB build reaches 1,807 tok/s prefill at T=512, 75.3 tok/s serial, and 124.4 tok/s median drafted decode (142.9 on math, 126.5 on reasoning) at 5.98GB active memory; the 8.87GB build runs 63.5 tok/s serial and the 12.76GB build 60.5 tok/s. Smaller is faster serially because each step reads fewer weights. That is the real trade here: it saves memory bandwidth, not compute.

What critics say

The Hacker News thread on LookAtMyQuant was less convinced than the README. hugmynutus took the author’s own KL for the 5.4GB file, 0.0895, and set it against Unsloth’s UD-IQ1_S, which he puts at 0.0808 on English/chat/code and 0.124 across 13 languages against 0.287 here. He also argued the GSM8K and HumanEval gains sit inside the noise, and traced them to post-training the quantized model on sample inputs. The author’s notes explain part of it: the 5.38GB build mixes 15% of the GSM8K training set into calibration and fine-tuning, with no HumanEval in training, but the README also records HumanEval rising from 24/164 to 60/164 under the 384-token harness. The gain is real and it comes from fine-tuning; the question is whether it still counts as “capability preserved by quantization”.

Aurornis aimed at the repository rather than the file: small quantization repos with messy READMEs “almost never hold a real secret that the mainstream quantizations have missed”, KL is easy to benchmax, and “the headline claim of this repo (12X better) doesn’t even apply to Inkling-2-Mini”. That last point is correct. The 12x figure is Gemma 4 E2B against Q4_K_M, and the repository description still leads with it. woadwarrior01 asked a different question: “What’s the point in quantizing a QAT model? Just for social media karma?” The official blog says the weights deploy in the precision they were trained in, with no conversion loss, so this build compresses weights that were already compressed once, and its error profile is not the same as quantizing a BF16 model. liuliu added the methodology objection: these KL numbers rarely say whether the validation set overlaps the calibration set.

Two repository facts are checkable. On transparency, the README’s “What this repository leaves out” section says the dense weights behind the 5.38GB benchmarks are not published, and neither are the per-problem results or the script that turns them into the site’s numbers. On compatibility, issue #2, filed 2026-11-22, reports that the drafter path fails on an M1 Max with Thread group size (1024) > max (832); without the drafter the 8.87GB file runs at 19.2 tok/s decode on short prompts and 456 tok/s prefill at 8K, against 106 tok/s for the same size on an M5 Max, so under a fifth. The other two open issues ask for CUDA ports. Thirty-nine commits and one contributor is a one-person cadence.

Typical use cases

LookAtMyQuant ships four builds from 5.38GB to 12.76GB, and which one you want depends on memory and language needs.

  • A 16GB Mac. The official checkpoint is 20GB and the mlx-community 4-bit conversion is 17.33GB; neither fits a 16GB machine’s usable memory. The 5.38GB build runs in 5.98GB.
  • Anyone curious about looped transformers. Inkling-2-Mini runs its middle 12 layers three times, and Thinking Machines named monitorability as a reason to open the weights. Probing inference behavior on this build is far cheaper than renting GPUs.
  • Local agent prototypes. dofm on HN ran the hybrid Q8 build at medium reasoning effort on a PHP content exporter and found the tool calling good, with no system prompt needed. That kind of task does not stress multilingual ability or long context, which is exactly where the 5.38GB build is weakest.
  • Researchers who want the compiler, not the file. The SmolLM2-360M walkthrough needs no Apple hardware: measure, allocate, score, about 50 minutes of L40S time, which is a cheap way to see the pipeline before touching a 26B model.

Quick start

LookAtMyQuant’s runtime only targets Apple Silicon; install it and pull the model straight from Hugging Face:

pip install git+https://github.com/ShinMegamiBoson/lookatmyquant.git

lamq generate shinmegamiboson/Inkling-2-Mini-LookAtMyQuant-5.4GB \
    -p "What is 17 times 23? Show the steps?" --stats

For more speed, add the 179MB drafter:

lamq generate shinmegamiboson/Inkling-2-Mini-LookAtMyQuant-5.4GB \
    --drafter shinmegamiboson/Inkling-2-Mini-LookAtMyQuant-drafter \
    -p "Write a Python function that merges overlapping intervals." --stats

The first run downloads 5.38GB of weights. --stats prints prefill and decode speed; compare it with the M5 Max numbers to see where your machine lands. On M1, skip --drafter until issue #2 is fixed. For llama.cpp or CUDA there is no published file yet: gguf_compiler.py is the compiler side, not a ready checkpoint.

Summary

LookAtMyQuant fits two kinds of reader: someone with 16GB of memory who genuinely wants a 26B-class multimodal model locally, and someone who wants to study sensitivity-driven bit allocation and is willing to read the code. It does not fit anyone treating 5.38GB as a free lunch. The trade is volume for multilingual and coding ability, and HumanEval falling from 92.7% to 70.7% is not a rounding error. If you need quality close to the original, budget for 8.87GB or 12.76GB, and then it competes with Unsloth’s GGUF on the same footing rather than “half the size and stronger”.

The license is MIT, the primary language is Python, the repo was created 2026-10-31 and had 303 stars, 11 forks and one contributor as of 2026-11-22, with the last push on 2026-11-21. Three caveats first: the runtime ships only Metal kernels for Apple Silicon and the M1 drafter bug is unfixed; the dense weights and per-problem results behind the benchmarks are not published, so nobody can fully re-check them; and every speed and quality number comes from the author’s own machine and his own harness. For the official model from the same family, read our Inkling 2 Small entry; if your constraint is VRAM rather than RAM, airllm takes the layer-by-layer route instead.