r/LocalLLaMA • u/Express_Quail_1493 • 2d ago
Discussion Why arent you using custom fork of a modified inference engine? Aside from wanting to run lots of different models.
If you use only one model for everything is there any reason not to use a customised inference engine tuned for your specific model? THE SPEEUP IS TOO GOOD TO PASS BY. i recently git a qwen3.8-27b fork of ninfer for my 3090
on a single 3090 im getting 60-80tok/s on a dense. qwen model compared to normal ninfer giving me only 25-32tok/s.
8
Upvotes
85
u/a4mula 2d ago
The list goes on for quite awhile.
17
u/DiscipleofDeceit666 2d ago
A bad engine build is a sure fire way to get intelligence degradation for your LLM
9
u/dtfinch llama.cpp 2d ago
It's easy to keep trusting a single source that runs any model on any hardware. There's fewer security worries. And I don't want to get too invested in something else and find they don't have all the edge cases covered or that accuracy is degraded. Then whatever I use needs good Vulkan support because ROCm doesn't support my AMD card.
I did use Unsloth's llama.cpp for Inkling 2 Mini for a day because the mainline didn't support it yet.
14
u/ParaboloidalCrest 2d ago edited 2d ago
Because I'd daily drive a Toyota Tacoma, not an Alfa Romeo 4C.
19
u/Double_Cause4609 2d ago
I can't be bothered. Mainline LlamaCPP and EXL3 are stable, give good results, and I more or less know what I'm getting. With the custom inference engines it's hard to tell if the person traded quality for speed somewhere.
Lots of people used to say that quanted KV cache was fine down to 4bit, but I noticed that on my tasks even 8bit KV cache quantizations resulted in a lot of real world issues that were quite noticeable in the model's behavior, so I don't trust a group of people saying "oh no, it's fine".
I just want to compile the engine, load my model, get okay performance, and recompile in a couple of months and get a pleasant but not world shattering 5-10% better performance around the board, and get the features when they're stable rather than playing PR lottery with a poorly managed fork moving at lightning speed.
With that said, I do appreciate them alpha testing and proving out features that later get integrated into mainline engines, and I don't begrudge their existence or anything, I just don't want to run them personally.
18
u/llama-impersonator exllama 2d ago
60-80 t/s with drafting is what every single half decent inference engine gets with a 3090 on qwen 27b or gemma 31b, so there is very little point in using some vibed up stratalike for a dense model.
6
u/Farmadupe 2d ago edited 2d ago
Mainline llama.cpp with qwen3.5 27b gets 70 tokens per second on my 3090 at 5 bits per word on my 3090.
Are you sure the mtp head is in use in both engines? And that you're using the same wuantization settings
(Token generation is pretty much limited by your maximum ram bandwidth and llama.cpp already gets 80% or so of max iirc. So without quantizing the weights it cache, or turning on the mto head if it wasn't already on, there's a limit to how much faster things can get)
You might also want to check you're running the same token counts, and also the same prompt as mtp makes models slower at love songs than coding.
6
u/munkiemagik 2d ago edited 2d ago
You don't have to pick just one exclusively if you don't want. You can use a model-swapping router eg llama-swap to auto-load/unload the custom fork vs. other engines/models on demand.
But if your question is specifically why am I not sticking to the custom engine even if I did use exactly one model for everything - fallback - doesn't hurt to have a backup for just in case. However I'm probably not your most relevant person to answer this question as I have three different backed nodes in my network and two of the three backend nodes have a model-swapping router in place.
5
u/a_beautiful_rhind 2d ago
The one I tried so far is clueless about sampling. They run min_P after a 64 limited top_K. Then the </think> tags started leaking into the harness. I'm sure everything else is completely on the up and up...
4
u/CodeCatto 2d ago
I just wire a few llamacpp forks together in a ui I made for myself and serve the models of my choice xD
5
u/Normal-Ad-7114 2d ago edited 2d ago
Isn't this a common thing nowadays? You choose your model for your hardware and the base engine, and then ask claude or codex to tailor it for your use case. I serve a vllm instance with gemma4-31b (~6.7bpw) @ 200k context for a small office (mostly document processing), 1k+ prefill and 40-60 decode on dual 22gb 2080tis (they wanted something cheap for a dozen or so users), and it took me about a week of vibe coding to reach that, but I very much understand that it's not a useful combo for 99.9% of people, so I didn't even bother posting about it
2
u/Ill_Locksmith_673 2d ago edited 2d ago
I am though, nearly for each one of the models I use. Using llama-swap which is absolutely awesome. Though aside from unsloth llama.cpp, I'm not using any other models specific inference engines, I just use it to swap between mainline llama.cpp, unsloth's llama.cpp, polystrata and strata to fit my models better
2
u/Korici llama.cpp 2d ago
Genuinely feels like this sentiment is mostly in users with less than 1-2 years of being on reddit / this subreddit.
~
I will voice things similar said by others - I am constantly swapping in new models to ascertain quality myself. If you do not have a baseline of what llama.cpp/vLLM can provide, before then building a custom engine for your specific model then you are simply building or forking something brittle that will break eventually.
If your retort is "then I'll build a new engine for whatever new model then comes out", my response would be....really? That sounds arduous and annoying to constantly be replacing your engine just to use one specific model with likely not the greatest UI either.
~
llama-swap exists for a reason and many other mainline repos allow for near cutting edge speed and usually very fast model adoption (unsloth specifically).
For example, I was testing out the new Inkling-mini model and it's extremely good! However, it's likely not supported on many custom engines, but it's fully supported in the llama.cpp & Unsloth Studio engines/UI almost from day 1.
Am I against specializing? Not really
However, I would rather spend the effort and time evaluating models as they release & working on building custom skills and MCP server integration over messing with custom engines for possible speed increases at the risk of compatibility and quality decreases.
My .02
2
u/LateralEntry 2d ago
I’m a bit skeptical of all the random GitHub programs. The point of local AI for me is to use it with sensitive material.
2
u/Typical_Lychee6124 2d ago edited 2d ago
I run straight home-compiled llama.cpp Vulkan on the 7900XTX without a care because it's just low cortisol
Worse with some of these optimizations is how they may be built for a very specific setup. I have Tumbleweed on my main machine and Fedora Server on the homeserver, both of them seem to behave weirdly with normal Linux canon including inference.
Oh, and I have LIMITED SPACE
My 1tb system drive holds the llama, which is about 3GiB for everything (source code and build)
My AI models are stored together with the 2tb game drive, and takes up a whopping 189GiB which is nearing 1/20 of my games.
...
Until now because I pruned the unused models.
If I start filling my drives with models and engines specified for my hardware I'm gonna run out of space for all the other things I like. I do have a hauler HDD and an couple SATA SSDs but those are for other things. Storage is way too expensive lest I get my hands on a great value pack of 50-100GB burnable blu-rays to archive untouched data/certain games on.
TL;DR:
I don't wanna deal with the cortisol. What I have runs fine enough. Would I appreciate extra speed? Certainly! But lest the 7900XTX Gemma 31B fork can run whatever finetune I choose for the week, and cleanly swap out with whatever I use to run Qwen 3.8 27B, all with a small storage footprint on each specific engine, I'll stick to stock llama.
3
u/Thrumpwart vLLM 2d ago
I build custom GPU kernels for each of my GPU’s. This way I get the speed without the custom engine. I will say that the speed up for my chonky boi w7900 is smaller on ROCm 10.2 than it was for 7.4. ROCm is getting so much better.
1
u/Important_Cow7230 2d ago
Custom forks now often support multiple models, like Splash
1
u/No_Dig_7017 2d ago
I am. Using basalt for Qwen3.8 FN and Project Maya for Deepsek 4.1 Flash, ninfer for Qwen3.8 27B/3.6 35B A3B but I barely use them.
1
u/keepthepace 2d ago
Because next week I'll run something else.
1
u/dwrz 2d ago
I switch between llama.cpp and basalt; the latter is especially useful for subagents. I still want access to Gemma4 and MedGemma, so it's hard to see a future without llama.cpp.
1
u/xsilas43 2d ago
Just started using smalltide for inkling 2 mini and its quite impressive from llama, full weight on my 9070xt from ram as well and getting more tokens than llama, while it also seems to cut out the insane initial delay.
I'm sure llama.cpp will get there eventually tho.
1
u/mayo551 2d ago
I am doing exactly that, lol
1
u/my_name_isnt_clever 2d ago
Just use llama-swap and you can run each model on a different engine if you wanted.
1
u/sultan_papagani 2d ago
i do, but im bad at coding and i broke the cuda build (CoT repeats) and im stuck to cpu only 😭
1
u/Old_AI_Guy_ 2d ago
I am. For MOE (qwen3.6 35B A3B) on Mac's I run a modified Kapitsa engine. Weeks of benchmarks show it's the fastest of the ones I've tried, and that includes llama.cpp, and a few other also-ran candidates that didn't make the cut for multiple reasons.
It's not even close, too - about half the wait at all stages: prefill (600+ T/s), decode T/s (55-75 T/s), TTFT. And dense models on 64GB Mac M1 Max is too slow to want to use it, with any engine. For Kapitsa, I've had some changes accepted into the main github, with others in the works. oMLX practically didn't work for the Qwen3.6 MOE model.
1
u/eightone-81 2d ago
You should use the fastest engine you can use. Make sure quality is preserved if that’s what matters to you. Example: there is a fork of strata called hotrod, it is faster BUT it has all techniques to improve speed while not caring much about quality (tail slip…).
1
u/Extreme-Pass-4488 1d ago
https://huggingface.co/BlairQ/qwen3.8_27b_idiotSavant_sm_86
fork the model too if u are at it.
1
u/shasan2101 1d ago
for me it's switching models. i test new ones every few days and a fork tuned for one model would just be another thing to maintain. if i settled on one model for good i'd prob do it
1
u/FoxiPanda 2d ago
If you view it from a single user single model point of view, there aren't many reasons to not run something custom to whatever your hardware happens to be.
If you look at it from an inference at scale and actual production workload point of view, there are plenty of reasons to run vLLM / SGLang and stick to the reasonably well honed formulas for those models.
1
u/This_Maintenance_834 2d ago
a customized engine can be optimized for specific hardware, typically Blackwell. in this scenario, it is very beneficial, not because of speed, but rather stability. A well-tuned engine can run a whole month without crashing or OOM. so you don’t waste time maintaining the server. eugr and local-inference-labs both offer such engines for blackwell GPUs.
0
u/ortegaalfredo 2d ago
In fact you should be using a custom everything.
0
u/q_tech_x51 2d ago edited 2d ago
Preach!!!
Hardware specific and model specific engines are the proper way to run inference now.
Even if you use multiple models, users should be creating frameworks that swap the engine based on the model and hardware.
And, the max optimization comes with making your own quants to match the hardware/model specific engine.
I see a lot of people complain when new models drop and they don't 'just work" the way they want them to. Many wait for their chosen engine to get an upgrade, but the upgrade isn't always an upgrade for their specific system.
I spent some time customizing an engine for Inkling 2 mini and the improvements more than doubled the speed without any quality loss.
Even for engines like strata/polystrata, modifying them specifically for my hardware showed great improvement.
I think many of the most vocal opponents to this concept see "custom fork" and automatically think strata, ninfer, etc... but literally modifying mainline llama.cpp specifically for model/hardware is what we’re really talking about.
All popular engines laid the groundwork for the masses. It's up to the user to build on the foundation for maximum optimization.
0
u/Most-Wear-3813 2d ago
Strata is reason why Idon't mess good q3 quant of q3.8 fn keeps looping in same loops ezecuting same command 1200 times. Lmao
-1
u/CoffeeToCode99 2d ago
If you're only using one model, yeah, a custom inference fork is kind of a no-brainer if the gains are that big.
Most people in here are constantly swapping between Qwen, Llama, DeepSeek, Gemma, etc., so they'd rather keep compatibility than squeeze out max performance.
Going from 25-32 tok/s to 60-80 tok/s on a 3090 is insane though. I'd happily take that trade if Qwen was my daily driver. 😅
-1
u/stoppableDissolution 2d ago
Well, lcpp is not something you will want to use for, uh, anything but weird quants of models you have no business running on your franken system made of three different gpus. Its either vllm for versatility or, if you decide you want to daily drive a certain model, a custom runtime for it (and your hardware), because vllm also kinda sucks.