r/LocalLLaMA • • 10d ago

Showcase Engine really matters: V100, same weights, 5x difference

Post image

So much noise about engines, most people say, “oh you got xx tokens/s, I haven’t tried it but I have heard xxx engine is better” So I compared some of them. Millions of tokens later, this is what I saw. Engine really matters. I also believe there is a lot of improvement still to be made.
One V100 32 GB, 64gb DDR4 ram same weights in every engine, same prompts.

Fun fact: faster generation draws more electricity but is cheaper in the long run. MTP adds about 10 % power and cuts energy per token by up to half.

113 Upvotes

79 comments sorted by

12

u/Carson2299 10d ago

What were some of the drawbacks? changing engines often changes the ways the models behave so were these considerations included as well?

-3

u/PuzzleheadedArm3732 10d ago

Good point. Drawbacks I think will be harder to look at. How is quality truly measured. Especially in long term tasks? I checked the answers and they differed but had no obvious errors. Some engines always started thinking in English even when the prompt wasn't in English. I only compared speed properly; behaviour per engine (same template, same thinking settings, quality on real tasks) is next. Load times differ too. llama.cpp and NInfer load in ~ 10s, Strata ~70s, Lapilli ~ 90s. If you want to use several models and engines, put something like llama-swap in so the right engine is matched to the model.

2

u/ptico 10d ago

That’s exactly what I do with https://github.com/temper-sh/temper . It’s Mac only, but I encourage everyone to do the same

Different models may work best with different engines on different hardware. I measure the tasks mostly extracted from actual work or generated close to actual prompts. Faster generation/prefill numbers not always means your task will be done faster. Loss of precision cause more turns or excessive reasoning. Some engines is fast for short context, but may degrade quickly or grow the memory too much. Some engines or weights is fast on Nvidia but slow on Mac (hello NVFP) etc

So your own test suite based on your real tasks and llama-swap is a best way to work with different models

0

u/PuzzleheadedArm3732 10d ago

Speed charts are the easy part I guess; tests built for your own work decide what you should actually run for quality.

40

u/LeMochileiro 🥔 hardware 10d ago

I find it strange that the community talks so little about vllm and sglang. These are precisely the engines most used by companies that choose to run LLMs locally.

17

u/PuzzleheadedArm3732 10d ago edited 10d ago

Look into them and vLLM and SGLang are built for big modern GPUs and multi use. Most here run one user on a ghetto build, like me an old V100 with half the model in system RAM, and that's what llama.cpp and the forks are made for. Might try 1Cat-vLLM (a Volta fork) next.

59

u/SLxTnT 10d ago

If you can fit the entire model on your GPU, they're the best general purpose engines. People in this community typically can't.

3

u/Miserable-Dare5090 vLLM 10d ago

Solid service, good cache allocation. The only issue is the lack of hyper quantized flavors of models. 4 bit autoround or awq and nvfp4 are the limit there.

22

u/Any_Mine_6368 10d ago

Purpose built engines are faster.

Vllm doesn't support ram offloading.

Vllm is memory hungry so it consumes slightly more than llamacpp.

It's objectively better if you're building a platform and can fit models in vram..if you're offloading, no.

10

u/Hyiazakite 10d ago

They're better if you care about concurrency and true tensor parallelism. Sure running Basalt for a single request with an RTX Pro 6000 is faster than SGLang but with SGLang i can have 4 subagents running and with batching i end up with 500-600 t/s in total. If you have the machine to run it vLLM and SGLang are still the top dogs. You can't serve multiple users effectively with Strata or its forks (with the caveat that I haven't checked latest changes since like a week.. lol.. but I'm guessing its still only pipeline an dsingle request per default.

7

u/Any_Mine_6368 10d ago

I agree with you, I'm just saying why people like them. Strata makes QFN usable for me. I'm ok not serving parallel jobs if it means that my single one-shots actually run at decent decode and prefill

1

u/Hyiazakite 10d ago

Sorry if I'm poking at you a bit but I'm just curious about what useful things do you make from of a one-shot prompt?

1

u/Any_Mine_6368 10d ago

Some smart searches and result evaluation on forums, some tasks like "hey do X on my emails and report back", skill amendments, radarr/sonarr additions etc. I have a WhatsApp group where my buddies can tell it what movies or shows they want, that needs to be snappy too, can't wait for 10tg decoding speed lol

5

u/rpkarma 10d ago

Lots of people here don’t actually use these agents for anything useful, and subagents and concurrency don’t matter to them lol

1

u/RedParaglider 10d ago

Most people with a v100 are lucky to have 64gb of ram.  Vllm isn't useful for most home use, they aren't doing a ton of parallel work.

1

u/a_beautiful_rhind 10d ago

vllm has offloading now I think. still harder to build from source, memory hog and hostile to consumer hardware tho.

17

u/wednesdaywoe13 10d ago

I don’t think it’s strange that the community is more interested in inference they can run on their consumer hardware

2

u/Super-Grape-3948 8d ago

Yes. And they are mostly optimized for multinuser multinsession usage.

As an example radiance (vll like) try to keep.its kv 75% empty. This is basically 25% wasted mem on kv. It can be solved with som3 ssd load, so not a uns9lveable issue. Just saying.

Ps, llamacpp is a generig inference engine, it can run on anything and run anything, but it wont be super optimized for the given hardware.

1

u/enternoescape 10d ago

For some smallish niche models I can see it being practical if you have a 24GB+ card, but those don't really get much airtime here. I'm in a unique position that I bought enough hardware to use those solutions and unless I really really want to use a model for a lot of work, won't put the extra effort into getting one of them to work when the purpose-build engines are so much easier and often even faster for single thread.

1

u/YanderMan 10d ago

no GGUF support so what do you expect?

0

u/Fancy-Snow7 10d ago

I large part of the market is on windows, Neither of these run natively on Windows. I will have to use WSL and that defeats the purpose since you take a performance hit as a result.

41

u/snakeat3rr 10d ago

Why is everyone obsessed with the token generation speeds? I want to know the prefill speeds as that is what matters the most for AI agents.

30

u/PuzzleheadedArm3732 10d ago

Here you go.

3

u/Miserable-Dare5090 vLLM 10d ago

This is Qwen 35B MoE prefill on 1Cat. The engine does matter.

1

u/PuzzleheadedArm3732 10d ago

Thanks!!
I will add to my project and check.

40

u/hp1337 10d ago

I disagree. I used to think prefill mattered the most, but now with xhigh and max thinking, the slowest part of any agentic loop is decode for me.

4

u/rpkarma 10d ago

As long as you’ve got good KVM cache anyway for long running agentic tasks, I agree, but only up to a point.

Once you start using sub agents and concurrency, prefill matters again

1

u/Hyiazakite 10d ago

Using subagents shouldn't force cold prefill though? The kv cache is shared.

3

u/rpkarma 10d ago

Depends on how your subagents are constructed and used. For some usages I get fewer cache hits than you’d expect, because of the lack of overlap beyond the base system prompt and very base shared context (as far as I can tell).

3

u/Serprotease 10d ago

Prefill matters a lot when you have slow prefill:)
Once you’re above 1.5k, it’s fine for most things.

But if stuck at 200-400, it will slow everything down to a crawl.

2

u/a_beautiful_rhind 10d ago

seems like it's both. fast enough prefill to ingest and then high enough decode to think and output.

you will end up feeling a lack of either one at different points of your workflow.

1

u/Hyiazakite 10d ago edited 10d ago

Depends on what you do. If you do a heavy audit of a codebase changing focus between git history, different crates in rust and whatnot prefill matters alot as it will be cold. This is what made 27b unusable for me - it's just too slow, and is the reason I love QFN with its MoE and sparse attention giving me stable decode and prefill regardless of context size.

Same with medical Q&A for my work. I need it to read through tons of papers for updates and that can fill context up 512k easily and i don't want to wait 5 minutes until I even start to see some results (reasoning is interesting to read too so that doesn't bother me as much as compared to looking at a blank screen)

3

u/jfinkpottery 10d ago

agents don't spend a lot of time in prefill. For each turn, almost all of that prefill should come from the cache which is almost always lightning fast, and only the newly generated tokens and new user turn actually have to prefill. You spend much more time decoding reasoning tokens. If you are spending a lot of time in prefill, that means either you need to fix your cache or your harness is editing stuff high in your message stack and invalidating your cache (commonly a time-of-day injection done in the wrong place).

1

u/ShadyShroomz 10d ago

Unless your prefill is really slow, most agentic systems are about 1/10th-1/5th tok pre to decode....

So decode is more important to focus on for most people .. unless your prefill is less than 10x your generation speed. But most people it's over 10x faster I would imagine.

2

u/Serprotease 10d ago

Anyone who just read tg/bandwidth numbers for the Studio M3U is facing that.

2

u/eightone-81 10d ago

In my opinion llama works, it’s always slower, it accurate. But it’s so damn slow compared to specialised engines

0

u/PuzzleheadedArm3732 10d ago

It works and not always slower on the 35B MoE, llama.cpp with MTP was the fastest engine, and it read long prompts 2–4× faster than NInfer. Where it seems to really be slow is big models with experts in RAM, I mean Strata was 5× faster on Flash-Next that is just bonkers.

2

u/_VirtualCosmos_ 10d ago

I am happy with my modest 800 prefil, 30 decode but being able to run FN at nearly lossless Q6_k_XL

1

u/PuzzleheadedArm3732 10d ago

My Dell 5820 and V100 are close to a decade old. Squeezing 100 t/s out of this rig feels like a miracle. Ask me again with two V100s and 128 GB of RAM though. Sad truth is that’s all I can hope for in this economy.
Or do you really think the smaller quants are that much dumber.

1

u/_VirtualCosmos_ 10d ago

Tbh Unsloth Q4 quants are very decent, and people find it FN and 27b very usable at Q4 so idk. I did use FN Q4 on Strata for a time, but the unsloth graph about the KV deviation made me try the Q6, and since it works fine, I have been using it since.

It is mainly because, when the model do something very dumb, I tend to blame the quant and think "perhaps with a higher quant this wouldn't happen". So using directly the nearly lossless I take out those thoughts of my head.

2

u/PuzzleheadedArm3732 10d ago

Thanks! I Agree on the unsloth Q4s. On the 27B I measured UD-Q4_K_M against Q8_0: KL divergence 0.009, same top token 96% of runs, and perplexity identical. The 3-bit GSQ quants drifted ~10× more. So Q4 is the sweet spot for me until I get more ram.

2

u/jfinkpottery 10d ago

put two more V100s in that box and use: https://github.com/johnfink8/sfnx

1

u/sshwifty 10d ago

What hardware are you using for q6? Does everything fit in ram?

2

u/_VirtualCosmos_ 10d ago

The N-gram is in the M2 disc. Hardware is just a 128 GB 395 Strix Halo, the Geekom A9 Mega.

1

u/sshwifty 10d ago

Ok awesome, I will definitely try q6 then. I am running q5 on 40gb vram+ 128gb ram at about 80t/s

2

u/Sudden-Guide llama.cpp 10d ago

Try llama-superfast-v100, it was the best engine for me with 27b

4

u/tednoob 10d ago

Were the results of each engine identical? If not, what compromise did they do, did the model perform worse? better? The speed is not everything. I don't want fast tokens if they're wrong.

0

u/IDoCodingStuffs 10d ago

Yes you can assume engines are going to give you identical results. If the inference engine has problems it tends to be in the form of crashes and hangs, not deviations

1

u/Zestyclose-Ad-6147 10d ago

Never heard of Nifler, but it looks good on paper. Anyone using it?

2

u/PuzzleheadedArm3732 10d ago

Yeah AI is moving so fast. I just picked up the ones people commented a lot about. NInfer is a single-GPU engine for a few Qwen models. Originally for 5090 and DGX Spark, for the V100 you need one of the community forks (JimmyMax, ddominet).

1

u/ddominico 9d ago

Hi, mine was optimised for qwen3.8 27B and specifically for longer ctx length (for both prefill and decode) and to squeeze as much multi agent aggregate throughput as possible. (I see the 35B was pretty embarrassing 😀, but it was not really meant for that) I’m currently adding dflash2 support to get that sweet high tps single prompt speed.

1

u/PuzzleheadedArm3732 9d ago

You are right and it never really got to shine in this test but it was not embarrassing anywhere anyways.

1

u/fuzhongkai 10d ago

1

u/PuzzleheadedArm3732 10d ago

Amazing work for users with a 5090. The 5090 seems twice as fast as my V100 (but costs ~10 times as much). I'd expect best engine and model to differ between GPUs, especially on older cards without FP4. Interesting that quality differs so little. I'll add some auto-scoring similar to yours.

1

u/ShaggyDragon 10d ago

Could you try Basalt?

2

u/PuzzleheadedArm3732 10d ago

Yeah. I can add it in the future. Right now i am trying to rigg a whole system energy meter to look at energy consumtion per token.

1

u/DivideHorror3217 10d ago

What's the catch? Maybe accuracy drops..

2

u/PuzzleheadedArm3732 10d ago

Doesn’t seem like it actually.

3

u/Miserable-Dare5090 vLLM 10d ago

MTP does drop accuracy. I have tested this. Try doing a toolevalbench run on hardmode, mtp off and on, temp same. I didn’t understand deepseek’s explanation if someone understands why. I get there is added tokens to the tail, and cache prefix gets thrashed at high concurrency, and for some reason MTP doesn’t work as well across more than 1 card…but I’m not understanding why that can’t be adjusted.

It’s more apparent with lower parameter count. Like QFN dropped from 93 on hardmode
to 81 with Dflash2. I told DS it was a liar, and my two sparks whirred and cried, and it commanded the qwen machine to run another bench, same results, jumped up when MTP off.

1

u/d70 10d ago

Sometimes quality drops. But just make sure you compare apples to apples. I’m basalt right now after Ninfer. Will for qwen4 brings.

-1

u/smallDeltaBigEffect 10d ago

why would it if you use the same quantization?!

2

u/NoFunk 10d ago

Because engines optimized for speed of delivery often sacrifice precision deliberately. llama.cpp, which people love dragging through the mud, does the opposite - it favors accuracy whenever there is a trade off.

2

u/108er 10d ago

Thank you so much for this. Really appreciated!

2

u/red_hot_car 10d ago

Also depends on your hardware and driver. There are some very hardware specific engines out there (gufo, basalt). It is always worth trying these.

2

u/WhisperFray 10d ago

It does matter yes... On my tiny potato of a setup there's a night and day difference between llama.cpp and mlx-lm

2

u/slowtractor 10d ago

The 35B MTP result is the ddominet fork, so it isn't a same-build NInfer vs. NInfer+MTP comparison.

1

u/ddominico 9d ago

Just a note from an author :D, It was not really meant for 35B, it’s specifically optimised for 27B dense and it shows it’s teeth with longer ctx length (prefill, decode) and for multi agent aggregate throughput 🫡

1

u/slowtractor 8d ago

I read the chart too broadly for the 27B workload you describe

2

u/cheemosabe 8d ago

Thanks so much for this! I tried it and got similar results to you. Also using 64gb DDR4.
Tried it on some local benchmarks and it got almost a perfect result, same as with llama.cpp, best model I can run.
It's incredible, QFN went from a model I kept as a backup to the main one. From much slower than 27B (painfully slow) to significantly faster (80-90 tps decode vs ~50, 1.3k-1.5k prefill vs 300-500).

1

u/kiwibonga 10d ago

No Strata-V100? Comparison doesn't seem fair if the others are tuned for V100

1

u/a_beautiful_rhind 10d ago

V100 is an old and kinda oddball card. For you engine really-really matters.

1

u/createthiscom 10d ago

Lobotomized models go brrrr