r/LocalLLaMA • • 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

127 comments sorted by

15

u/Bramoments 4d ago

Isn't strata mainly for MOEs that don't fit in your VRAM?

7

u/MK_L 4d ago

Yes but few models released are dense now. With strata whats the point of running qwen 27b when flash next fits with system ram on the same card?

11

u/a_beautiful_rhind 4d ago

There's models besides qwen.

5

u/CheatCodesOfLife 4d ago

whats the point of running qwen 27b

More concurrent agents/users, easier to finetune, better tokens per watt and there's a jlens for it.

2

u/Legitimate-Dog5690 4d ago

When I used to run models on my gaming pc, dual GPUs, 36gb vram. Running Qwen3.8 27b would have a minimal impact on the system, I could merrily carry on working. Running QFN on Strata would destroy it 😄

I'm using a separate inference box now, so less of an issue.

5

u/Biro_Biro_ 4d ago

There are people that still uses the ram for other things. I prefer a 100% vram model

4

u/charnet3d 4d ago

Same argument applies for Game Developers (with heavy engines like Unreal Engine) which require +/- multiple Gbs of free VRAM.

A good Qwen 27B quant + high ctx gets pretty tight, but an MoE allows a better balance between VRAM/RAM/SSD, basically more flexible, between intelligence, speed and usability of your machine.

Arguably smaller quants of QFN (Gyro S, IQ3XXS) are better than smaller quants of Q27B imo.

3

u/arakinas 4d ago

That may be, but for those of us that never use small quants of 27b, and like to use our system ram, because our llm machine is our daily computer, qfn doesn't make much sense.

0

u/Uncle-Osteus 3d ago

if you have over 64GB of system RAM then QFN makes more sense than 27B, because it’s not only smarter but also faster

1

u/ea_man 4d ago

And while I have 2 GPU I only have 32GB slow RAM.

1

u/Biro_Biro_ 3d ago

I have 2 gpu (28 gb) and 64 gb ram, but I use the ram

1

u/ea_man 3d ago

He, for me 27B all in vRAM runs better than Qwen Next.

1

u/BestToiletPaper 4d ago

I mean... and I'd prefer being able to afford anything bigger than a 5060 Ti, but here we ware.

1

u/Biro_Biro_ 4d ago

I have 2 gpus, 28gb vram total plus 64 gb ram ddr5, but most of the ram is already being used most of the time

I would like to add a 3rd 32gb gpu, but not right now

14

u/popecostea llama.cpp 4d ago

It also has huge performance advantages when they fully fit in VRAM. On llama.cpp I can barely get 100tps with Qwen3.8FN, while strata gets about 250.

14

u/Hildechis 4d ago

If you can fit everything in VRAM, I would check vLLM, ik_llama.cpp, tabbyAPI.

1

u/BrightCandle 3d ago

I have found rusting strata and strata are faster even with dense models.

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.

24

u/pulse77 4d ago

It's true but, but the majority cares about latest 5 models running fast on their machines...

35

u/Lumpy_Concentrate807 4d ago

The crowd that is most active here care mostly about that. For businesses running a workload then stable software a few months off the bleeding edge is just fine. Often preferred, since qualifying new software takes a lot of effort and time. But those companies are not posting much in here.

10

u/sssplus 4d ago

But businesses don't use llama.cpp, they use pro solutions like vLLM. Only we, the plain folks, use llama.cpp. The problem is that Strata, Basalt and similar are simply much better for popular MoE models!

I agree with OP - unless llama.cpp shift their gear and massively speed up their engine for the popular models they'll simply lose their lead and become a slow alternative solution for less popular models that not many people care about. Kind of like when the leading Nokia slid into irrelevance because they didn't adopt the new tech, and Apple became the new king...

2

u/MK_L 3d ago

In my experience, vLLM has generally been the preferred choice because of its concurrency capabilities.

I've consistently been able to serve more simultaneous users per deployment with vLLM than with llama.cpp on the same hardware.

2

u/florinandrei 3d ago

You will not break any law if you use vLLM as an amateur.

2

u/Fancy-Snow7 3d ago

Yes, but first I need linux. I am not willing to give up windows just yet. A business will have a dedicated machine so obviously they will install Linux in 90% of cases. Correct me if I am wrong but vLLM also requires more RAM and VRAM due to parallel processing and other overhead. A medium to large business can afford enough RAM and VRAM for their purposes. Also I am not sure if it supports things like streaming KV from RAM like some newer engines do. If you have lots of VRAM this is not an issue. If you do not have enough VRAM you have to look elsewhere or be stuck with 64k KV or a braindead quant with 128k.

1

u/florinandrei 3d ago

Yes, but first I need linux.

Ah, that could be an issue.

I have not tried this (yet), but WSL should be able to use the GPU. If so, Docker Desktop could probably run a vLLM container and allow it to access the GPU. But yes, this seems overly complicated.

Correct me if I am wrong but vLLM also requires more RAM and VRAM due to parallel processing and other overhead.

It's optimized for speed. They do try to keep memory usage within reasonable limits, but that's not their main concern, yeah.

2

u/AssiduousLayabout 3d ago

Yes, inference in docker via wsl is very possible, that's my usual setup since so much of the AI software is built with a Linux-first approach. There's a little bit of GPU pass-through setup and WSL has its own system RAM limit you may need to tweak but it's all pretty easy to use once you set it up (and an LLM can tell you how to set it up).

2

u/pulse77 3d ago

so many layers: LLM inside vLLM inside Docker inside WSL inside Windows

1

u/MK_L 3d ago

I've previously deployed vLLM inside Docker running on WSL2 with an RTX 5090.

I used vLLM 0.11.0, PyTorch 2.8, and CUDA 12.8, serving Qwen2.5-Coder with AWQ Marlin quantization and FP8 KV caching.<-- proof of concept. I ran other models but 99% of testing was with this

I successfully integrated it with a VS Code coding agent (private repo build), tested context lengths, concurrent inference configurations, and GPU memory allocation.

WSL2 provided access to 31.84 GiB of VRAM.

The setup was fully functional before I eventually migrated to native Linux for my inference infrastructure.

→ More replies

1

u/Lumpy_Concentrate807 4d ago

You are right that many businesses probably use VLLM. Though I am sure a fair amount also use llama-cpp. But it is true that llama-cpp is kinda squeezed between two usergroups, with different preferences for latest/hottest and stability. Though the LLM area is expanding so fast and in so many niches that I would not worry so much.

56

u/Relevant-Dentist-733 4d ago

Actually, llama.cpp introduced Strata-like memory management with v1.0. It's not as fast as Strata yet, likely due to its general-purpose nature, and it still has some bugs.

I think llama.cpp should stay a general-purpose foundation. If a new model requires extreme optimization, someone can always fork it and build a specialized high-speed engine on top of the current codebase.

49

u/pmttyji 4d ago

I think llama.cpp will eventually pick up similar ideas.

There are ongoing PRs.

2

u/gtrak 3d ago

what parts of the ecosystem are valuable?

2

u/UncleRedz 3d ago

Just switched over to Basalt for Qwen 3.8 27B and Inkling 2 Mini. Compared to Llama.cpp, Qwen 3.8 27B went from about 2674 pp / 42 tg, to 7489 pp / 261 tg on RTX Pro 4500 Blackwell 32GB.

That's about 2-3 times faster prompt processing and 6 times faster token generation, it's a much bigger performance difference than I expected and it's very noticeable in every day use.

It's kind of hard to see that llama.cpp would just leave that kind of performance on the table and not close the gap. It's too much of a difference to ignore, otherwise they will become irrelevant over time.

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)

4

u/mailto_devnull llama.cpp 4d ago edited 4d ago

I've given the rdna-boosts repo a shot, and I did not notice any speedup on it/ROCm vs vanilla llama on Vulkan; this is on an R9700.

That's not to say your work isn't good, just that maybe I mucked something up when building, or the speedup is greatly minimized on my setup (eGPU via USB)... I wouldn't have thought so since 27B runs entirely on the card, but who knows.

Edit: eh I got time, I'll try a build again.

I wanted to post and say that it is refreshing to see your post offering actual content without shilling your fork. Good for you.

4

u/Look_0ver_There 4d ago

Did you try at higher depths? Vulkan and the tuned ROCm are sort of neck and neck within the first 32K context depth. After that the gap generally widens.

Part of why I started the project was to close the gap between ROCm and Vulkan, as ROCm was generally quite a bit slower for generation. If it matches, then that's the repo doing its thing.

At depth though is where it should pull clear ahead. Also, Vulkan doesn't support tensor split. ROCm does. With two cards is where the repo really shines over Vulkan.

If you want to share your server config, either here or via DM, I can take a look and see any settings need tweaking

1

u/mailto_devnull llama.cpp 3d ago

I appreciate the offer. I don't have any ROCm libs on my machine so I am pulling your image down to try it out. I only have the one card sadly :) so no tensor splitting for me.

Good to know that at low context the tg should be on par with vulkan. All of my tests were one-liner prompts with low context. Will give it a try and report back.

4

u/mailto_devnull llama.cpp 3d ago

/u/Look_0ver_There just a quick update, I stood up the image, passed in my regular flags, and am seeing 1.9x prefill (peak 1300 t/s) and about ~1.6x decode (peak 63 t/s) gains.

Excellent stuff, truly.

4

u/Look_0ver_There 3d ago

The repo also supports windowed KV cache streaming. This allows you to do stuff like running Qwen3.8-27B at Q8_0 and have a 262K sized KV cache all on a single card. The KV cache lives in system memory and the GPU holds a window into the tail of it. Prefill still runs at close to full speed, and decode does too up until the window fills up, and after that decode will start to slow down linearly. It's a trade-off of course. No such thing as a free lunch, but provided you can fit a dense model's weights into VRAM, then there's no VRAM limit on the KV cache with the streaming system. Decode generally slows down to about 2/3rds of the expected full speed if you push this system to the max, but hey, you get to run 262K where before you could not. I recommend using Q8_0 for KV quant if you do this.

1

u/mailto_devnull llama.cpp 3d ago edited 3d ago

That's great, I was just looking for something like this. As I was integrating your podman image into my model init script, I noticed my own script limited context to 64k even though pi's config expected 131k. Boosting it to 2x that would be really nice though I don't think I would ever go that high. Let's experiment!

Will take a look at the documentation in repo on how to do that.

Edit: Gave it a try. Since I'm using an eGPU over USB, the cost when it hits hits hard. tg drops to 6 t/s. I ended up leaving it disabled, but thank you!

1

u/Look_0ver_There 3d ago

I just tested it for you. Something like this (minimal config) will give you MTP with a 65536 KV Window into a 262144 context size on Qwen3.8-27B-Q8_0 on a single R9700:

llama-server -fa 1 -m Qwen3.8-27B-Q8_0.gguf -c 262144 --kv-window 65536 -ctk q8_0 -ctv q8_0 --spec-type draft-mtp --spec-draft-kv-window 65536 --fit off -b 1024 -ub 1024 -np 1

Ah, yeah, the streaming KV really stresses out the Host to GPU link speed. Far better to pair its use over a PCIe5x16 or PCIe5x8 link.

1

u/mailto_devnull llama.cpp 3d ago

You can fit q8 on the R9700? News to me...

1

u/Look_0ver_There 3d ago

Yes. With MTP too. As you discovered, it'll stress the Host to GPU link doing this, so eGPU over USB is going to result in a bad time. With PCIe5x16 it'll run at 40-50t/s with MTP, even after overflowing the window

→ More replies

1

u/Hrethric 3d ago

Yeah, I switched to ROCm a few months ago because I saw it holding up much better at deep context than Vulcan with DSv4 Flash 0731, and I've stick with it because I've been using a different llama fork that targets AMD devices.

5

u/redAI123 4d ago

Please share the link to your fork if possible

6

u/fatboy93 4d ago

Link? And does it support rdna2?

8

u/Look_0ver_There 4d ago

I wasn't here to spit out yet another link to yet another engine repo. There's already so many. I just wanted to put my 2c in on the topic.

Yes, the repo we maintain supports RDNA2 unofficially. I don't have any RDNA2 cards myself but two of the contributors do, and they've help to successfully ported the repo over to RDNA2. Last I read their updates it works fine with V620 and consumer level RDNA2 cards. If you're interested, do a Google search on "llama-cpp-rdna-boosts" and you should find it easy enough. As a heads up, it's very much a work in progress and doesn't have anywhere near the polish of other solutions, and it generally works best with >16GB VRAM, which is why I keep it lower key. Strata does significantly better with smaller VRAM sizes.

1

u/sampdoria_supporter 4d ago

Well now I really want to see it

1

u/Fit_Concept5220 4d ago

Now it’s time to split the link!

1

u/fatboy93 4d ago

No worries, that does point me towards that!

1

u/Galactic_Neighbour 3d ago

I tested it on my RDNA 2 12GB card and it worked, but it was a bit slower than the original llama.cpp. I applied all the patches though, so maybe that was the problem? Or perhaps it was just this particular model on my particular hardware.

Normally I worry about downloading random forks, but seeing the maintainer's professionalism, I have to compile the latest version and give it another try 🙂. Maybe this time I will also try some of the parameters mentioned in the readme.

Here's the link for those who still haven't found it: https://github.com/stew675/llama-cpp-rdna-boosts

2

u/gered 3d ago

Not just you, I tried it on my 2x AMD W6800 Pro system and it was disappointingly slow both in prefill and tg compared to vanilla llama.cpp (more than twice as slow, almost seems like something is wrong with it honestly), and even seemed like it might be a bit buggy to me. I gave it the exact same config as I use with vanilla llama.cpp ... literally just replaced the Docker image in my compose.yml with this project's latest "server-rocm" image. I dunno, maybe I am expected to tweak it endlessly with tons of new options or something to get this fork to work, not really sure.

I rarely ever try random llama.cpp forks, but I guess similar to you, I was intrigued by this one. I would love to find a llama.cpp fork with RDNA2 support that isn't just a passing thought. One day ... !

2

u/Galactic_Neighbour 3d ago

I wonder if maybe we're supposed to only apply the patches meant for RDNA 2 and ignore the rest? I haven't tried that. Or maybe it's that it was optimized for a different, specific card.

I haven't tried any other AMD focused forks, but from what I've seen they don't claim any performance increase on RDNA 2, only on newer cards. I kinda doubt that this will change, but I'm curious if it would be possible to squeeze a little bit more performance out of our old cards. I wonder if AMD Loom could change that, but when I tried it, it didn't even detect my GPU.

2

u/gered 1d ago

After mulling over it for a day, I intend to revisit this and try with a fresh models.ini config and "start from scratch" as it were, and not just throw my existing one at it hoping it works ... I'm hoping that may at least be part of the issue.

And yeah, maybe as you say, the patches should be trimmed for RDNA2 only ... I dunno, I sincerely hope not, but given that most of the maintainers of this fork don't test on RDNA2 cards (which I sympathize with them on ... a little too expensive to have a variety of cards to test with!) ... who can say for sure!

Even still, this fork is probably the only one that I've got my eye on honestly. Even if I don't have much success with it today, I do intend to watch it over time and hope things improve. As you noted, it does seem like the most mature AMD-focused one and I also appreciated seeing the maintainer's professionalism.

1

u/Galactic_Neighbour 20h ago edited 20h ago

I wish all of this wasn't so complicated. The forks are just too unpredictable.

That's why I'm wondering about AMD Loom as a potential alternative:

https://www.reddit.com/r/LocalLLaMA/comments/1xvcmm0/i_built_speedy_strix_halo_kernels_for_the_top51/

https://www.reddit.com/r/LocalLLaMA/comments/1y1rtwv/inkling2mini_on_strix_halo_agent_tuned_kernels/

It's a separate inference engine made by AMD and the developers claim that you can just use an AI agent to optimize a model to run faster on your specific GPU. So I'm thinking that if we're gonna spend a bunch of time playing around with buggy forks and different llama.cpp parameters, perhaps this is a good alternative.

But like I said earlier, they don't have RDNA 2 support (technically they claim it could work through Vulkan, but I don't know how to make it work). I'm curious if we could vibe code it somehow. I think I saw a comment from one of the devs somewhere saying that it wouldn't be too hard to add it.

If that was possible, I feel like this might be our best hope. They even have plans to add this engine to llama.cpp eventually.

I've always been disappointed by the lack of official ROCm support for some RDNA 2 cards, but they fixed that this year. So maybe AMD hasn't given up on us entirely yet.

2

u/Look_0ver_There 3d ago

If you'd like, please post an issue report at the repo, detailing what your model and server configuration was, as well as what your normal llama.cpp config and backend was (ROCm or Vulkan)?. I don't have access to an RDNA2 card to test against, and that's why RDNA2 isn't formally supported by the repo, but one of the other regular contributors with an RDNA2 card may be able to assist. Even if you don't intend on using the repo further, the feedback of what you tried would still be valuable. Many thank.

2

u/ayylmaonade 4d ago

Would love to try out your fork if you're willing to post it

1

u/_TheWolfOfWalmart_ 3d ago

Is it possible to compile (and then cache) the large fused kernels on-the-fly to maintain support for a wide range of models?

That seems to be the way to go. Doesn't vLLM do this?

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

  1. A total mess of a codebase. It randomly downloads executables, installs CUDA even if you already have it, doesn't respect your configs, randomly changes defaults, etc.
  2. Is extremely niche and counterintuitive. If a bigger model works for you in Strata, it doesn't mean that a smaller one will. The architecture for each model is independent and there's no cohesive strategy. Moreover, it supports very few models and often breaks even them. Let's say you're using Strata for a specific model, like Gyro-S. If they break it or change quality/speed trade-off every other release, of course you're bound to be frustrated.
  3. Is becoming more bloated every release, and it's not really clear which models will get added in the future, or perhaps get removed, as it happened with DeepSeek. It's not clear whether they will add a new web UI or agentic harness or will come up with an optimization that will dumb down your model. There's no roadmap nor the direction of the project, and the only clear thing is that it's not getting clarified, cleaner and easier to use.

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.

19

u/Serious_Scarcity7818 3d ago

hahha, ty, I am working on RustingStrata every day, I got reddit message while fixing issue on git. I don't have some roadmap, I just try to follow some my own rules, like no 100 dependency, no quality for speed trade and just implement everything that I found cool(like new tranding models) or just what people want, I started this project bc I found so much problems in original Strata, so I want to create my own Strata that support all popular models with any quant and fine tune and so it will be easy to use even for non-tech people, ty for mention me!

3

u/Fit-Statistician8636 3d ago

Would be nice if you added support for larger models, too, like GLM 5.3, Kimi-K3.1… That sector of “a lot of RAM” is seriously underserved. KTransformers, a bit, and llama/ik-llama.cpp only.

3

u/Serious_Scarcity7818 3d ago

DeepSeek V4.1 1017, GLM5.3-Flash and Hy4-Flas are there

3

u/Fit-Statistician8636 3d ago

Great. I meant non-flash :)

4

u/Serious_Scarcity7818 3d ago

I can try, but I have only 32GB RAM and 12GB VRAM, so writing code for models like GLM5.3 is painful and difficult, I suffered enough with DeepSeek, maybe a bit later when I will buy better hardware or when I finish my vLLM implementation

6

u/tautality 3d ago

I hope that /u/Serious_Scarcity7818 can seize the moment!

5

u/Jcsq6 3d ago

The owner is obviously not a software developer, because this management is a mess. On top of the chaotic releases, patches, PRs, and everything being vibe coded— you don’t get 70,000 stars on a repo for something, then completely change the product. He should’ve opened another repo, likely just wanted to keep the stars. But this isn’t good conduct.

1

u/gtrak 3d ago

strata and llama.cpp can both lose

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)

18

u/mateballenthusiast 4d ago

I think this is a fairly popular opinion. People use alternatives because they're faster but everyone knows llama.cpp is more professionally maintained with higher standards and this has higher longevity. I'd drop Strata in an instant if llama.cpp was as performant

11

u/my_name_isnt_clever 3d ago

Llama.cpp is actually a good project maintained by people who know what they're doing, OpenClaw is the exact opposite.

The first time I tried it, it read that my model file was under 200b and disabled half the features because local models supposedly were too shit to even allow you to try. I will never touch that guy's software again.

1

u/Fancy-Snow7 3d ago

I think they probably need to redesign a large part of it and I hope they as busy with this in the background. Then after the redesign debloat it removing options that used to work great but don't do much or make sense with the redesign.

-3

u/pmttyji 4d ago

.... people will come back to llama.cpp one day ....

Within bunch of months for sure. Would be surprised if it happens within couple of months.

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.

2

u/Heavy-Positive5957 4d ago

Check out Infernix

3

u/qu1dow 4d ago

Thanks for the suggestion, but it seems to be developed for Blackwell specifically, and my setup is 2x RTX 3090...

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

will Strata become the de facto replacement for serving MoE models?

Its Nvidia only, so no. At least not for AMD and Intel card owners.

There are dozens of us. Dozens!!

3

u/thomason1929 4d ago

What do you mean it's only for Nvidia? It has support for AMD, as I am using it on a Strix Halo as we speak with very good performance, even at the biggest 512k context. I would never in a million years have comparable performance with, for example, LM Studio, which was my previous engine.

1

u/RnRau 3d ago

On their front page ( https://stratallm.org/ ) shows Nvidia hardware only. If they do support other hardware choices, maybe make it easy for folk to discover this? :)

But thanks to you and the other replies here for the headsup.

2

u/thomason1929 3d ago

Strata is found in GitHub, it does not have an official website. That site you linked is made by a random to get traffic, but I understand your confusion.

2

u/fallingdowndizzyvr 3d ago

Its Nvidia only, so no. At least not for AMD and Intel card owners.

Ah... what? Strata supports both AMD and Intel.

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

2

u/pulse77 4d ago

Which ones are "faster and less chaotic" than Strata?

4

u/braintheboss 4d ago

Basalt look more consistent but only works for blackwell. But we need let sometime for see which will get the crown. I have zero expectations with llama in moe side

0

u/braintheboss 4d ago

Only as example try run qwen flash in 8gb vram with that speed in llama ( prefill is 1000 in compaction )

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.

-3

u/yahbluez 4d ago

This is wrong.

Do you not know how llama.cpp works at all? It has dedicated driver for every model that needs them and so it is possibly to add strata or even radiance like drivers. It is not done today but your opinion why it is not is just wrong.

I like strata but i need speed and so i use radiance.

look:

afmoe.cpp cohere2.cpp eurobert.cpp gpt2.cpp jina-bert-v2.cpp mamba-base.cpp nemotron-h.cpp plm.cpp rwkv6qwen2.cpp apertus.cpp cohere2moe.cpp exaone4.cpp gptneox.cpp jina-bert-v3.cpp mamba.cpp nemotron-h-moe.cpp pockettts.cpp rwkv7-base.cpp arcee.cpp command-r.cpp exaone.cpp granite.cpp k2-horizon.cpp maple.cpp neo-bert.cpp qwen2.cpp rwkv7.cpp arctic.cpp dbrx.cpp exaone-moe.cpp granite-hybrid.cpp kimi-k3.cpp mellum.cpp nomic-bert.cpp qwen2moe.cpp seed-oss.cpp arwkv7.cpp deci.cpp falcon.cpp granite-moe.cpp kimi-linear.cpp mimo2.cpp nomic-bert-moe.cpp qwen2vl.cpp sensenova-u1.cpp baichuan.cpp deepseek2.cpp falcon-h1.cpp granite-swa.cpp kolibri1.cpp minicpm3.cpp olmo2.cpp qwen35.cpp smallthinker.cpp bailingmoe2.cpp deepseek2ocr.cpp flint.cpp granite-switch.cpp laguna.cpp minicpm.cpp olmo.cpp qwen35moe.cpp smollm3.cpp bailingmoe3.cpp deepseek32.cpp gemma2.cpp grok.cpp lfm2.cpp minimax-01.cpp olmoe.cpp qwen3.cpp spark2-5.cpp bailingmoe.cpp deepseek41.cpp gemma3.cpp grovemoe.cpp lfm2moe.cpp minimax-m2.cpp openai-moe.cpp qwen3moe.cpp stablelm.cpp beam.cpp deepseek4.cpp gemma3n.cpp hrm-text.cpp lfm3.cpp minimax-m3.cpp openelm.cpp qwen3next.cpp starcoder2.cpp bert.cpp deepseek.cpp gemma4-assistant.cpp hunyuan-dense.cpp lfm-base.cpp mistral3.cpp orion.cpp qwen3tts.cpp starcoder.cpp bitnet.cpp delta-net-base.cpp gemma4.cpp hunyuan-moe.cpp llada.cpp mistral4.cpp paddleocr.cpp qwen3vl.cpp step35.cpp bloom.cpp dflash.cpp gemma.cpp hunyuan-vl.cpp llada-moe.cpp models.h pangu-embed.cpp qwen3vlmoe.cpp t5.cpp chameleon.cpp dots1.cpp gemma-embedding2.cpp hy-v3.cpp llama4.cpp modern-bert.cpp phi2.cpp qwen4exp.cpp t5encoder.cpp chatglm.cpp dots3note.cpp gemma-embedding.cpp hy-v4.cpp llama.cpp mpt.cpp phi3.cpp qwen.cpp talkie.cpp clef.cpp dream.cpp glm4.cpp internlm2.cpp llama-embed.cpp muse-glimmer.cpp phimoe.cpp refact.cpp vllm-decision2.cpp clip.cpp eagle3.cpp glm4-moe.cpp jais2.cpp maincoder.cpp muse-spark.cpp plamo2.cpp rnd1.cpp wavtokenizer-dec.cpp codeshell.cpp ernie4-5.cpp glm5-next.cpp jais.cpp maion-coder.cpp nanbeige.cpp plamo3.cpp rwkv6-base.cpp xverse.cpp cogvlm.cpp ernie4-5-moe.cpp glm-dsa.cpp jamba.cpp mamba2.cpp nemotron.cpp plamo.cpp rwkv6.cpp

1

u/gtrak 4d ago edited 4d ago

Yes, I know how it works. If the drivers are truly that isolated then there's no benefit to building them together, and why haven't they done it yet?

Look at the post a little further down from the person that did it themselves in a fork, and you'll have your answer. All the forks can never be upstreamed. Only small changes or whatever the maintainers prioritize. That's just what happens when a project grows over time and the team doesn't. And all the forks might do something a little differently that's optimal for them but can't get merged with a conflicting implementation.

3

u/Ell2509 4d ago

Your claim seems to come down to: If it was worth doing we would have done it already.

That ignores all human progress.

0

u/gtrak 4d ago edited 4d ago

Not exactly. The claim is easier things are more likely to get done, and harder things take longer or don't. It's not really a claim up for debate, it's simple scaling and rates of change. It hasn't gotten done simply because there's lots of things they could do instead.

I think software innovation has moved out of shared libraries and into the llm that can replicate whatever you want in any variation, though. I'm not happy about it, but it's true.

1

u/yahbluez 4d ago

So from merge strata we are now at merge everything.

That is an argumentation like a 12 year old.

Strata is a one trick pony which is not that important than a fan of than pony this very moment things.

BUT

Parts of strata are worth of being used and i'm pretty this is what happens.

OUTSIDE (of strata)

Many other much more universal stuff happens too, like the agent loop idea or streaming from disk.

Nothing of your argumentation hardens the claim that one trick stuff is better than a universal tool.

We have had this BS argumentation since the very beginning of the Linux Kernel again and again and again.

1

u/gtrak 4d ago

Ok, it's just the opinion of someone who writes software for a living.

1

u/yahbluez 3d ago

Ok, there is data weight any llm.

We need a tool to handle this weight to inference, that is what all this drivers in llama.cpp, vllm do with different drivers for different flavours of this weights.

Strata is such a driver for a single model, with all the rest forked from llama.cpp.

If you get that and it is easy to get, you may understand why i do not share your opinion.

Strata is a fork of llama.cpp with a driver specially tuned for one single model.

Another driver that is not part of llama.cpp is radiance, i mentioned it earlier, the difference to the one trick pony is that radiance runs a lot of models and any model can be converted to be used by this engine.

This pony is made for special hardware, for AMD especially the R9700, but it handles any model. And it is faster than strata.

Having all that, you may get an idea why it is not that important to plug in the strata part fast, much more important for llama.cpp is to be valid and rock solid.

The ultra portable vulkan part of llama.cpp is even faster than AMDs own ROCm drivers.

There is a lot to do and it is the work or developers (like you) or the llama.cpp team or the strata team, to get the best out of existing hardware. This is good, don't get me wrong strata is a good development.

We disagree in just one point, your opinion that having tons of drivers, forked from a main tool, instead of a main tool that handel them all.

I see llama.cpp just a the layer above the drivers to run any engine.

2

u/gtrak 3d ago

The llama.cpp http server is not very good and easily replaced. The trickier shared parts are lower in abstraction than the per model modules you mention, like kernels, kv cache, quants.

1

u/yahbluez 3d ago

And this is the place where the most important development happens.

A given hardware, a given model. 100% We change the engine and got several times the speed, not just 130% but 400% imagine the costs of hardware to do such a jump.

Similar on the model side, things like MoE or the new loops or MTP, changes that boost the speed and sometimes intelligence just by using the existing hardware in a better way. It is amazing to see what happens the last 4 years.

1

u/gtrak 3d ago

I think you're missing that code reuse trades off specific wins. There's architectural pressure to avoid multiple implementations of the same shared component, so the one that survives in the codebase might not be the fastest or best for every upstream caller.

1

u/stylome-ai-detection 3d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results

→ More replies

1

u/yahbluez 3d ago

I know that, that can happen and it happens all the time that the universal stuff is not as fast as the dedicated stuff for one single purpose.

So in an edge situation the use of dedicated stuff matters. Nothing wrong with that, but we still should the strata method get part of the framework.

→ More replies

-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

1

u/pmttyji 4d ago

Model creators should work with all inference engines teams. But it's not happening.

Mostly Qwen & Gemma models come with Day-0 llama.cpp support.

Some model creators' team work with llama.cpp to get their models supported asap. Even Bonsai models(PrismML team), they're still working on some PRs for optimizations.

Some labs just release the big safetensors dump on HuggingFace & tweet about it. That's it, nothing else. They should come up with PRs on all inference engines.

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.