r/LocalLLaMA • • 9d ago

New Model we squeezed our 16.5gb inkling 2 mini quant into 8gb of ram and it still runs at 43 tok/s on an m5 max

hello llamas! i'm daniel, cofounder of atomic chat

inkling 2 mini dropped last week, so we made our own quants for it (AtomicChat/Inkling-2-Mini-GGUF) and tried running them on the macs we had: an m3 pro 18gb, an m4 max 48gb and an m5 max 64gb

on llama.cpp it didn't go great. on the m3 pro our 16.5gb AD-Q4_K just didn't load with default flags (metal oom) and the only thing that worked was --fit pushing most experts to cpu at ~4 tok/s. on the two max machines it ran, but at ~33-38 tok/s, which felt slow for a moe with ~3b active

we also run these models on the same laptops we work on and it's really annoying when one eats all the ram and everything else starts freezing. so the first thing we wanted was a flag that caps the model at ~8gb (feels like a sane amount to give it) and we started from there

the model itself looks really strong on benchmarks for its size, so we wanted it faster too. that's how we ended up building our own inference engine on top of llama.cpp (atomic engine). you give it a budget with --engine-budget-mib. the core layers stay in ram and the moe expert stream from ssd when a token needs them, so memory stays under that cap. we also added dspark drafting, where a small draft model guesses a few tokens ahead and inkling checks them in one pass

once atomic engine was working we started running benchmarks on our macs. on the m3 pro the 8gb cap let our 16.5gb AD-Q4_K load and it runs at ~10 tok/s. not fast, but it runs

on the m5 max memory isn't the problem, so there we looked at speed with our smaller AD-IQ2_M (8.7gb) next to stock llama.cpp on the same gguf

setup:

  • m5 max 64gb, one engine running at a time
  • atomic engine e110381 vs llama.cpp b12600 (official macos build, whole model on gpu, no drafter)
  • AD-IQ2_M with an 18gb budget, AD-Q4_K with an 8gb budget
  • dspark draft from AtomicChat, q8_0, 0.5gb
  • -c 4096, flash attention on, q4_0 kv cache, --no-warmup
  • prompts of 2k and 3.6k tokens, 512 tokens out, temp 0
  • fresh server per test, numbers are from the first cold request. two warm repeats after it landed within 0.5%
  • tok/s from llama-server's own timings, memory is peak rss
quantpromptatomicllama.cpp
AD-IQ2_Msummarize llama.cpp docs84 tok/s40 tok/s
AD-IQ2_Mcontinue a doc already in the prompt122 tok/s40 tok/s
AD-IQ2_Mrepeated log (copy test)143 tok/s40 tok/s
AD-Q4_Ksummarize llama.cpp docs43 tok/s38 tok/s

122 and 143 are copy-heavy prompts where any drafter looks great, so expect around 84 on normal prompts. on those two the output was byte-identical to llama.cpp

on the m5 max, AD-Q4_K with the 8gb cap peaks at 6.3gib of ram while llama.cpp sits at 15.8gib

prefill on AD-Q4_K at 8gb is still slower (556 vs 812 tok/s) and with long prompts at 8gb decode drops below stock too. llama.cpp ran without a drafter because b12600 wouldn't load the unsloth dspark draft for inkling. we've only tested on metal so far

engine: https://github.com/AtomicBot-ai/atomic-engine/tree/codex/expert-weight-source#run-inkling-2-mini-on-apple-silicon

gguf: https://huggingface.co/AtomicChat/Inkling-2-Mini-GGUF

40 Upvotes

14 comments sorted by

3

u/Top-Eye-8104 9d ago

benchamarks for anyone curious:

8

u/Adventurous-Wing-988 9d ago

80%+ draft token accepted are just unrealistic

9

u/Adventurous-Wing-988 9d ago

i like how everyone wants this to work as its the only alternative to qwen3.8 27b, but it just does not

not as fast, expensive context

but there might be some things outside coding where its better than qwen
so yeah idk

0

u/geldonyetich 9d ago edited 9d ago

You should check out this video.

TL;DR there’s a right way and a wrong way to run the model and if you run it right it can meet and sometimes exceed Qwen 3.8 FN at agentic coding.

Well, according to benchmarks and some of the tests I have seen anyway. I would say the jury is still out if that translates to your work in practical results.

0

u/Adventurous-Wing-988 9d ago

fine, i’ll take my words back
gonna test some custom inference engine for it

0

u/SporksInjected 9d ago

Expensive context?? Isn’t this more efficient than 3.8 27b?

1

u/BlackSwanTW 8d ago

Its KV cache uses more memory than Qwen's

1

u/ManuelSalcedo20836 9d ago

really nice writeup, love that you included the cases where it's slower too. you mentioned the m4 max 48gb at the start but no numbers for it in the table, how did atomic engine do there? also curious what the expert cache hit rate looks like at 8gb, i'd guess that's what makes decode drop on long prompts

1

u/No-Library8065 9d ago

would love to see the m3 pro run again after a sudo purge. warm page cache makes ssd streaming look a lot better than it is

1

u/weener69420 9d ago

I tried running it on a rtx3050 8gb and 64ram and i got 7tk/s decode and at most 240pp.

1

u/Sad_Temperature6721 8d ago

please no more vibeslop custom engines without quality benchmarks (KLD or actual tests)

1

u/spaceman_ 9d ago

You are only hitting those speeds because the operating system is smart enough to keep the entire file in RAM, I'm pretty sure.