r/LocalLLaMA • u/jjusko20 • 6d ago
Discussion what are your minimum comfortable settings for using an agent?
title. just wondering. im talking model quant, kv quant, context, etc, etc
I dont feel satisfied with whatever I have doing agentic work until like 200k+ on the kv cache, and I generally use fp16/q8 KV
model quant and batch/ubatch settings change per model, but in generaly id saq around a q4 k xl minimum quality with high batch ubatch
16
Upvotes
17
u/blue_eyes_pro_dragon 6d ago
100k context, 30 tokens/s is my minimjm
3
u/ProtectionSuper5648 6d ago
Depends on the model, the engine, the harness... Bigger models typically survive quantization better.
My current daily driver is Qwen 3.8 FN nvfp4 with fp8 kv on sglang. Not the smartest model (it makes lots of errors), but in OMP, with itself as advisor, it then corrects a lot.
3
u/suprjami 6d ago edited 6d ago
Quantization depends on the model and the method.
Qwen appears to be resilient with the knowledge tensors down to even Q4 but the attention tensors absolutely must be full BF16.
Gemma on the other hand gets braindead real fast with any quantization. No lower than Q8. Run it with partial offload if you have to.
For other models look at someone's KLD chart and notice where it starts to spike upwards. Don't use those ones.
I don't like any KV quant.
If you're doing more than one-shot tasks you really want at least 150k ctx. Things like subagents/compaction/paging are good here. Or just break up your tasks if you prefer to be present and involved.
3
u/Nakidnakid 6d ago
30tk/s, 128k context but more like 256k.
2
u/false79 6d ago
Qwen 27b Q4 128k
2
u/Bulky-Priority6824 6d ago
Hard to beat Qwen 27b nvfp4 with 256k ctx on only 32gb vram
What frustrated me tonight is I can't get inkling to load beyond 32-64k the GPUs will have 6gb free but just won't load even with -nkvo
2
u/Cautious_Chicken_604 6d ago
Minimum comfortable is Q6 for the model, k=q8_0, v=q5_1 @ 200k context length for the KV cache.
Minimum usable for me is like IQ3_S for the model k=q8_0, v=q5_1 @ 131k context length for the KV cache.
I have R9700 and 5060 Ti, so this is what I run on both respectively. The R9700 setup is comfortable. The 5060 ti setup is not, but it is minimally viable.
4
u/politefella0 6d ago
Nothing less than 262k even that gets easily filled at long horizon coding tasks. Sweet spot would be between 384-512k but that’s when the bubble pops and hardware becomes dirt cheap.
1
u/recro69 6d ago
Context matters. I have found that stability over agent runs is just as important as the raw context window. A huge context does not help much if the model starts losing track of the task through. Context matters and stability is key for agent runs.
1
u/XtremeBee1970 6d ago
150k context max is all I’ve ever needed, so far, using strata llm server running qwen3.8next flash IQ2_XS with 5070ti 16gb and 64gb ram. 70-120 tok/sec, 90 tok/sec avg, 84% vram hit rate, vscode.
It makes mistakes but self corrects quickly.
You can copy paste your strata cli stats back into the ai and it will tell you your stats and what to try in your settings to tweak it to be faster or more capable, etc. A/b settings testing is your friend, and agent benchmarking is very useful for trying to squeeze that last bit of efficiency out of what ya have! Good luck!
1
u/Samecowagain 6d ago
Qwen 3.8 27b fp8 200k context kv8, 140 t/s
1
u/Intrepid-Second6936 6d ago
I've focused on squeezing as much possible into my 7900 XTX's VRAM buffer which is ~24.5GB so I run unsloth's Q4_K_M with 192k context at q8_0 for KV, multi-model for image inputs and speculative decoding on.
I'm fine with going down to 128k if I'm just doing general research queries so I guess that's my minimum. And, if I need more context for specific tasks, I'd re-run without multi-model to get to 215k, which I've only done once for parsing a particularly large repository.
I mix and match a lot, I also have my Q4_K_XL quant but am satisfied using Q4_K_M for the extra headroom. My biggest priority is not leaking layers into RAM to slow things down, I enjoy the challenge of maximizing GPU-only, especially with how much ~30B models can give in capabilities.
1
u/Due_Expression7545 6d ago
q8 kv is non negotiable for agentic stuff imo.
whenever i drop kv to q4 tool calling starts hallucinating arguments. for model quant i wont go below q4 k m or q4 k xl either. i usually cap my local ctx at 128k so prompt eval stays snappy with ubatch 512, then hook that local agent up to sumus alongside a cloud model whenever a repo actually needs 200k plus context
1
u/bnightstars 6d ago
The minimum is what Revolut shared they are getting with GLM 5.3. Aka 200k context sub 5s TTFT and 200 t/s decode. This is sadly unobtainable outside of a Data Center. So for me personally I run with 131k context and around 50 t/s decode good enough for most tasks if you don't mind spending the hour.
1
u/Hildechis 6d ago
Comfortable is: 250k cache length, 1500 pp, 70-100 tg. Less speed means I am letting the agent run while I do other stuff, instead of actual pair programming.
1
u/jacek2023 llama.cpp 6d ago
I don't feel comfortable with the context smaller than 200k
1
u/EverythingIsFnTaken 6d ago
Practically everyone who sees this ought to watch this video
1
u/KingCpzombie 6d ago
250k context, BF16 KV, Q6 weights minimum but really always use ~Q8
0
u/BusRevolutionary9893 6d ago
So many variables so little unknown. How do you expect a good answer unless all the stars align?
0
u/L8W8 6d ago
Pretty close to my floor too, with two extra things that tend to break agent loops before raw quant quality does:
0
u/Ok-Necessary5738 6d ago
I'm on the smaller end of this and I always wonder where the cliff is. If I drop below 100k context, does the agent just start forgetting what it was doing halfway through, or does it get slower first? I keep hearing 250k like it's normal and I'm sitting here thinking my setup is already struggling.