

I’m pretty sure -ub doesn’t need to be a power of 2 number, try 600 or 768 or something


I’m pretty sure -ub doesn’t need to be a power of 2 number, try 600 or 768 or something


Those are very old models, you probably got those suggestions from an LLM because they love to suggest out of date stuff for AI. You really have to tell them “models released in 2026” or something.
You don’t care about speed yet but when you start getting into multi turn agents that write code and compile and run their tests and fix their own issues, you’ll understand why speed is important.
I’ll give a suggestion for something fast: Tiel Coder 35b-a3b, get the quant they used for the benchmarks, their Q4_K_XL
Use llama.cpp’s new --moe-cache-mib option to make it intelligently use both your VRAM and your RAM https://lemmus.org/post/26756208
Also set --ubatch-size 2048 for faster prefill speeds


the llama.cpp work for this model is still in progress so optimization isn’t finished yet, a few tips though
--no-mmproj-offload to keep it in RAM instead of VRAM, it’s extremely slow with vision but if you rarely use it then it helps
set -ncmoe 999 (or just use the shortcut for it -cmoe) and use the new MoE caching stuff instead https://lemmus.org/post/26756208 especially since this model uses many experts multiple times per token you’ll want to make sure the correct experts are being cached, and -ncmoe is not smart enough for that
use --ubatch-size 2048 to improve your prefill speeds since you’re using expert offloading, this will increase VRAM usage slightly during prefill but it means it copies the layers to your GPU every 2048 tokens instead of every 512 tokens, this can give a huge speedup especially if you’re not on PCIe 5


KV cache is tough, llama.cpp does not yet have smart streaming for KV cache
what settings are you using?


It probably works in 8GB VRAM with the looped experts cached. I’ve seen people on Reddit with 12GB VRAM getting good results.


woa it’s even beating dense models, no way it’s actually that good
once those llama.cpp pull requests are merged I’ll try it out
I wonder how the looped layers interact with --moe-cache-mib
It’s not stupid, I always gravitate towards power of 2 numbers even when it’s not necessary lol. I do think llama rounds context sizes to a nearest multiple of 256 or something IDK, I always just multiply by 1024 to get my context sizes