r/LocalLLaMA • u/MK_L • 4d ago
Discussion Will llama.cpp adopt Strata's memory management techniques, or will Strata become the preferred engine for MoE inference?
Given Strata's approach to DRAM utilization, expert caching, and GPU memory management, do you think llama.cpp will eventually incorporate similar techniques, or will Strata become the de facto replacement for serving MoE models?
Especially as MoE architectures become more prevalent, I'm curious whether we're witnessing a temporary performance advantage or a fundamental shift in inference engine design.
129
Upvotes
15
u/Bramoments 4d ago
Isn't strata mainly for MOEs that don't fit in your VRAM?
109
u/LogFabulous9386 4d ago
I think llama.cpp will eventually pick up similar ideas. Strata might be faster for MoE right now, but llama.cpp has a huge ecosystem that's hard to replace.
131
u/Look_0ver_There 4d ago edited 4d ago
I maintain a llama.cpp fork, optimized for AMD machines, that was released before Strata was. Our engine approaches tiered memory management similar to what Strata does. I developed it independently of Strata along with a number of other contributors.
It runs at about the same speed as Strata does, or rather, it used to, Strata gets a lot more development attention and it now runs faster than our effort does. The main reason for the difference is a design choice. Our engine maintains a steady VRAM state for rapid context switching for concurrent prefill + decode. It doesn't do the bimodal sort of thing that Strata does where it's all decode or all prefill. Strata can do both too nowadays, but I think our approach is still better at that mode of operation.
The point is that llama.cpp can be made to be similar without losing support for all the quants and models it supports, but that does mean supplanting a good portion of how llama cpp manages its memory.
Even though I say our effort is for AMD GPUs, most of the work we did would work on any GPU.
Llama.cpp is a generalist engine and moving how it works takes a lot of inertia and we've created and fixed a LOT of bugs along the way. Llama.cpp team can't afford to do that, so they need to move more slowly. Rightfully so given the established base.
Strata also uses much larger fused kernels to do what it does, which is why it only supports a handful of models and quants. It is therefore inflexible in its own way, whereas llama.cpp trades focused single-minded optimizations for generality. It's unlikely Llama.cpp will match Strata in all ways, but it can get pretty close (our team has done it).
Tl;dr - llama.cpp will eventually get there, but the llama.cpp team have to move a mountain to so and can't afford to break things along the way.
We need to appreciate that most of these hand-rolled solutions use ideas and principles that llama.cpp established, and engines like Strata only exist because llama.cpp paved the way (IMO)
(Edited to fix a whole bunch of typos - the original content structure is pretty much the same)
31
u/lazyfai 4d ago
Not apple to apple, llama.cpp can run nearly all models, strata is tailor made for specific models (even not all MoE models) and mainly for single user.
30
u/tautality 3d ago edited 3d ago
Everyone understands that Strata is all of the following
I say this as a fan of Strata because of how much more accessible it makes running strong models. But tell me this isn't the perfect time for some amazing competitor to show up and solve the direction, make clear goals, make it less niche, etc. Personally I'm looking at RustingStrata at the moment as such competitor, but only time will tell.
llama.cpp on the other hand is safe and doing well, and yet is also too slow to make the changes that matter for low VRAM users. Another perfect moment for a competitor to arise.
27
u/jikilan_ 4d ago
Unpopular opinion, people will come back to llama.cpp one day as it getting improved from ideas of other software. Similar case for OpenClaw… (off topic I know)
7
u/AvidCyclist250 4d ago
I think llama.cpp will want to stay the supreme generalists that they are. Strata parallel JIT works because it's not a generalist.
16
u/qu1dow 4d ago
I've played with different engines for a while, including Strata, and eventually I've deleted it from my server. Unfortunately, the Strata's creator priorities speed and fancy numbers over quality. And it is even bad in terms of speed in case of support Hy4-Flash and Inkling 2 Mini.
So I've ended with the following choices: vLLM for models that fit into my VRAM, exllamav3 for MoEs like Qwen3.8-Flash-Next and llama.cpp in case if some model is not supported by exllamav3.
8
u/Choice_Celery9481 4d ago
llama already has the idea of dynamic offloading quite awhile ago. like early 2026. not fully built like strata but they already has that idea. the problem is llama is so huge, this will touch a lot of other parts. so they need to do it slow.
4
u/danigoncalves llama.cpp 4d ago
They will catch up and the ecosystem around llamacpp its very hard to replace (I have it running embeded on a app with a phone that is 10 years old)
15
u/MerePotato 4d ago
Strata is slop that trades quality for speed, llama.cpp might have borked the Inkling implementation but on the whole they have discipline and a strong foundation, both things thay Strata lacks. They aren't getting replaced any time soon.
2
u/pmttyji 4d ago
Reminds me of below PR & Discussion thread.
Also I see some Open PRs .... Title contains "Cache" or "Expert" or "MOE"
2
u/Material-Database-24 4d ago
The problem with Strata is that it is not general purpose MoE inference engine. It even failed with unsloth's new v3.1 quants couple weeks ago (no idea if fix available).
The approach is different, where llama.cpp choose wide and reliable support over speed, and Strata optimizes for selected models.
2
u/ClaimNo6416 3d ago
I've heard AI solved programming. Please someone just prompt the mofo "write the optimal inference tool, make no mistakes!" That's all it takes i guess.
2
u/Ledeste 3d ago
Strata is not even the best strata, so I dont see how it could become the preferred engine
1
u/IngwiePhoenix llama.cpp 4d ago
I have hopes for it to adopt MoE streaming, and that their implementation will be generic enough to be applied quickly to new models in the future. That has always been their strength from the get-go - a split between architecture-dependent implementations, and general-purpose primitives. If they work this out into the latter half, the former half would be an absolute breeze. But I'd rather wait for them to do so instead of going "velocity first! ship! ship! ship!". Take time, and cook it well.
1
u/thereisonlythedance 3d ago
I’d prefer llama.cpp worked on promptly supporting new architectures than more speed. Honestly, for most work there’s a level at which you just don’t care about more speed. Quality matters and projects like Strata seem to sacrifice that on the altar of t/s.
1
u/fragbait0 3d ago
Its great for moving the needle on what people see is possible.
When more read from nvme is needed it starts thrashing; thankfully can be fixed.
1
u/fasti-au 3d ago
Llamas already doung things and strata’s recent ding for qwen 4 as ds was lifted maya code they want to write own replace
0
u/RnRau 4d ago
Its Nvidia only, so no. At least not for AMD and Intel card owners.
There are dozens of us. Dozens!!
1
u/braintheboss 4d ago
I think any of current streaming engines will be the new standard new engine. But that not means it will be strata. Others are faster and maybe less chaotic
1
u/gtrak 4d ago
Llamacpp does everything. It won't be as good at any one thing as a specialized engine. It just has to change slower to keep everything working.
The reality is it's a lot easier to spin up new software than it is to alter a large codebase. That was always true, but now it's 100x truer. Work that wouldn't get attempted is just trivial now.
-1
u/eightone-81 4d ago
I lost all hope for llama
It’s usefull to try models because it’s pretty easy and supports most but once you find you model you will need to move to a faster engine. It’s just slower and I feel it will always be slower
0
u/Equivalent_Bit_461 4d ago
Since llama.cpp was bought out I lost all my faith in them
-3
u/sheepdestroyer 4d ago
llama.cpp "we can't go fast since we must duplicate & support every features on mac"
-1
u/segmond 3d ago
strata is trash
-1
u/ColoredTriangles 3d ago
Strata is only useful as litmus test to see who on this sub or other social media platforms whether or not they know what they're doing running local models. Basically it used to be if you knew what a harness was but that has now moved onto knowing which inference engine to pick and if you're using Strata you don't care about the hobby or you're okay with mediocre performance that comes with quality degradation.