Загрузка видео...
Не удалось загрузить видео
Big win for local LLM inference! This open-source engine generates tokens 2.7x faster than Ollama on a MacBook: I tested it on a base M5 MacBook Pro with Qwen3.5 4B at 4-bit and the same 9.2k-token prompt. Ollama ran its MTP build, so both had speculative decoding. - Prefill:... show more
34,322 просмотров • 1 день назад •via X (Twitter)
Комментарии: 24

decode going from 22 to 60 tok/s is the difference between waiting on it and not even noticing it so i am curious if the gap stays this big on a bigger model like an 8b

How does it compare to Strata ? 🤔

@akshay_pachaar interesting result! curious how memory usage compared during those tests. I found that sometimes optimizing for speed can cause unexpected memory spikes.

the future is local llm

Tuning kernels on each machine instead of shipping one compromise build is a smart way to speed up local agents.

did you notice any quality drop or is it the same output just faster?

16 gb is tight for a model plus a long prompt. a light linux desktop idles at a few hundred mb, so nearly all of it goes to the model and the context 🐧

60 tok/s from a 4B model on a base laptop changes the maths. Most of what an agent does all day is routine tool calls, not frontier reasoning. How much of that work could a small fine-tuned model you own handle before you ever need a paid API?

Context from Magnitude's own benchmarks: averaged across models on an M4 Pro, it's 1.32x faster prefill and 2.19x faster decode than Ollama (MLX). So 2.7x is a strong single-model result; about 2x is the fairer number to expect. One-time tuning on download takes up to a minute.

tuning kernels on your own chip at download is the clever part. the catch is it's one 4b model at 4-bit on a base m5, bigger models are the real test

Side effect of per-chip autotuning worth knowing: different kernel configs change the floating-point reduction order, so logits differ slightly by machine. Under greedy decoding a near-tie flips one token and the rest diverges. Same eval, two Macs, possibly different transcripts.

props for giving ollama its mtp build too. a 2.7x win over a handicapped baseline wouldn't mean much

half the time per call, and an agent loop makes hundreds of calls

how much of the 2.7x decode is the drafter, not the kernels?

the end-to-end number is the useful one here. i'd love the same comparison on a small repo bugfix: read files, edit, run tests. that's the wait a solo builder actually feels.

2.7x on a 4B, does it hold at 30B?

decode 22.6 to 60 is the real story, prefill only moved 1.6x. curious how much comes from the drafter pairing vs the kernel tuning. if it's mostly the drafter, ollama can close a lot of that gap without per-machine compiles

Running Ollama's MTP build so both sides had speculative decoding makes this a fairer comparison than most local speed charts.

the 2.7x is per stream. put four agents on that same box and what decides whether it is usable is the memory bandwidth they all share, and tuning adds efficiency, not bandwidth. does the tuned kernel hold up with four different prefixes in flight?

prefill going from 464 to 755 tok/s is the number that matters for agents, every tool output gets chewed through before the first token shows up. does the kernel tuning run once per model on download, and how long does it take on a base m5?

kernels compiled for your exact chip. gentoo won

Saving this - I'm on an 8 GB MacBook Air and slow local runs are why I almost bought a GPU for my agent setup. Does the speedup hold on 8 GB, or does a 4B model at 4-bit still swap?

What's the draft acceptance rate on each side? With both running speculative decoding, a 2.7x gap usually lives in how often the draft tokens get accepted, not in raw kernel speed.

decode going 22.6 to 60 tok/s on a base M5 is the wild part, prefill only got 1.6x. does it redo the local kernel tuning every time you pull a new model, and how long is that first compile?
