I come to you now at a dire time. I have been faffing about with local LLMs, and cannot for the life of me get them to go above 8 tokens/sec. I know in theory this hardware is capable of ~40-50ish tokens/sec.
System Info:
OS: Win11 build.... whatever's the latest, idk
DRAM: 80GB DDR4@2400MT/s (16GB Corsair+ 64GB G.Skill)
CPU: AMD 5950x
GPU: NVIDIA RTX 2080 8GB VENTUS OC
Storage: “Yes”. (many, many TB of storage, and a lot of NVMe.)
LLM is stored on NVMe, and its workspace is also on the highspeed NVMe
LLM: deepseek-v4-pro-qwen3.5-9b-uncensored-heretic
I am using LMStudio as the main thingy (*I don’t know the terminology, forgive me), and OpenCode as the harness-thing, and while it works pretty well, I can’t seem to get it to run any faster than between 0.98T/s and 5.6T/s per LMStudio’s log.
If anyone has experience in tuning for systems like mine, I would greatly appreciate the help. reddit’s LocalLLaMa sub is… not helpful.
I’ve gotten better performance with llama.cpp, but it’s a command line tool.
In general, make sure the whole model (or at least the active weights if using a MoE) + kv cache are all on the GPU. Offloading anything other than experts to the CPU is gonna kill your token output.
Also sometimes smaller quantization run faster than larger ones. Consider using q8 for your context’s keys and q4 for the values, that seems to be the sweet spot for quality vs performance. However last I checked LMStudio won’t set those two settings individually.
Lastly if the model you’re using comes with a draft predictor, turn it on and set it around 3 or 4 tokens to predict. That will give you a major speed boost. And once again make sure the token drafter and it’s kv cache are fully on GPU too for max performance.
I have no idea what any of that means. :(
I’m still a veritable (and, very much broke) n00b at this; so i can’t really afford the god-tier stuff (as much as i’d love to have it and just… throw compute at problems until they don’t exist anymore)
is there a first-timer’s guide, or something that I have completely missed? If so… I’d love to know about it, lol.
If you have access to another LLM somewhere, it could probably help you figure out what I was talking about. I knew next to nothing about this stuff 6 months ago, but Deepseek helped me figure it all out over time
when you ask an LLM stuff about LLMs make sure to specify “in 2026” or something, otherwise it’s gonna give you old info
I also have an RTX 2080.
How big is the file for your qwen3.5-9b? Anything bigger than 6 GB is gonna seriously hurt your speeds. You may want to exclude the mmproj if you don’t need image processing, or disable its offloading. Been a while since I’ve tested 9b, as it’s a pretty weak model for our GPU. What context size are you using? Q8_0 KV cache? How many layers are you running on GPU vs CPU? Can you share a screenshot of your settings?
6.41 GB, per LMstudio’s model server readout.
is this the settings readout you mean?

this is the only other settings page that might make sense.

You’re using too much VRAM. Windows Task Manager has a thing that will show you how much VRAM you’re using, if that hits near 8GB then stuff starts to spill into system RAM and the crosstalk becomes extremely slow. Reduce your Context Length to 65536 to start with, at the bottom set K/V Cache Quantization Types to Q8_0.
These things might not be enough to save you. Try renaming the mmproj file in the model’s folder so that it doesn’t get loaded, that should free up about 1GB of VRAM. Disabling MTP may save some VRAM too. Otherwise you’d have to download a smaller quantization of the same model (like an IQ4) or download a different model entirely.
Honestly with MoE models now you can get something much smarter and still use less VRAM than this.
Also I don’t think this is the best variant of 9b anyways, I think Ornith 1.5 9b is better if you want to stick to the Qwen 9b family. But a MoE in the 26b to 35b range will serve you much better and run faster because it’s MoE.
TBH, I searched “uncensored” in LMStudio’s model browser, and downloaded the most-dl’d model… I’m not particularly attached to any one model. I’m still a veritable n00b at all this, lol.
the current project I have running is reading and diagnosing some bugs in this game my friends and I play; and we’re trying to find patches in C++ code that none of us actually know well enough to do it by hand. it’s currently at ~75k tokens and climbing.

does “context” affect that? IDK. I used claude in the past and then went away because evil 3rd party… so the self-hosted side is very new, but not the “hey here’s how you use an LLM as a tool” stuff… would love if there was some one-click optimizer for any given system, lol.
There’s an uncensored variant for basically every model.
the current project I have running is reading and diagnosing some bugs in this game my friends and I play; and we’re trying to find patches in C++ code
I’m not even sure this needs an uncensored model.
does “context” affect that?
Your context limit of 262,144 is way too high for our limited VRAM.
Start with peculiar-ragdoll/Tiel-Coder-35B-A3B-GGUF at Q4_K_XL quantization and tell me how that goes. Set max context length to 81920, K/V Cache to Q8_0.
Set the “experts on CPU” (or whatever it’s called) slider to maximum.
Does LM Studio have the new expert caching stuff yet? If it does then set it to like 2000 MB, and CPU share to 0.8, try that.
If it doesn’t have the caching settings yet, you can reduce “experts on CPU” one step at a time until you find which number is fastest. Aim for over 20 tokens per second.
here are the settings available to me with this model. /u/ZephyrXero@lemmy.world suggested using a draft predictor, so I’ve enabled that… not sure how that’ll affect it but i’m trying it anyways.

literally just chucked in the prompt to this model, these are the preliminary readings:

“Number of layers for which… [to put experts in CPU’s RAM]” set this slider to maximum
you also need to click “Flash Attention” and click the checkboxes at the bottom for K/V Cache Type and set them to Q8_0
speculative decoding can sometimes hurt more than it helps since we’re so limited on VRAM
settings:

here’s the numbers:

consistently at above 4t/s… but not anywhere close to the 20t/s mentioned above. :(


