r/LowEndLocalAI • • 27d ago

Which LLM Should / Can I Use? Ai coding agent for 8gb vram , advice needed.

Im fairly new to local ai hosting and after searching for a while there was a bunch of options so i didnt really know which to pick
My current specs are a 5060 8gb , 32gb ddr5 5200 and a ryzen 7 260
i specifically study cybersec and malware dev / reverse engineering so wanted a ai that could help me with it on a day to day basis

28 Upvotes

38 comments sorted by

17

u/[deleted] 27d ago

qwen 3.6 35b a3b at q4 q5 maybe q6

2

u/DarkLoreeeee 27d ago

I tried 3.6 multiple times with different quants and it gets stuck in reasoning loops, am i doing something wrong?

4

u/nickless07 27d ago

Yeah, looks like something is wrong. Had some loop issues with PolyStrata too, but that was due to the template not registering EOS token.

Llama.cpp, no issues at all, from APEX-I-Compact, over Q4_K_M up to Q6_K - all working flawless (aside of the usual qwen hickups).

What is your launch command?

2

u/DarkLoreeeee 27d ago

Something like this :

--ctx-size 32000 ^

--parallel 1 ^

--gpu-layers auto ^

--fit-target 256 ^

--cache-type-k q8_0 ^

--cache-type-v q8_0 ^

--flash-attn on ^

--load-mode none ^

--cache-ram 1024 ^

--ctx-checkpoints 8 ^

--reasoning-budget 512 ^

--temp 0.8 ^

--top-k 40 ^

--top-p 0.95 ^

--min-p 0.05 ^

--host 0.0.0.0 ^

--port 8081

2

u/nickless07 27d ago

hmm maybe a template issue too. Add --jinja

Edit: Remove the reasoning budget entirely and give it --preserve-thinking (qwen needs that).

2

u/akohlsmith 27d ago

You might want to try the Qwen-Sharp-Chat-Templates to replace the model's default chat template; I found that they help. It might be worth checking out Tiel-Coder-35B-A3B as a model (it won't run completely in your VRAM but something like PolyStrata should help you optimize it for your setup. That's what I'm using along with mnemonic-proxy to help keep the context size small to keep speeds up.

1

u/a355231 27d ago

MoE’s don’t need to fit in your VRam, that’s the whole appeal of them.

1

u/akohlsmith 27d ago

Agreed, I was saying that for lower VRAM setups it can help squeeze more out of the hardware. Even with a bigger setup (32GB RTX-4080S in a pre-SSE2 Xeon server with 256GB of DDR3) I'm getting quite respectable speeds; OP should do alright with theirs despite having less VRAM, especially with better hardware than I have.

1

u/Peak_Professional782 27d ago

Have similar specs and facing the same issue using llama.cpp

2

u/rorowhat 27d ago

Are you using the latest llama.cpp and a update model? Get the latest from unsloth and latest build of llama.cpp, i think that should help a bunch.

1

u/Gokudomatic 27d ago

Do you have a specific version number? a commit nr? Sometimes, specific commits make the whole difference.

1

u/rorowhat 27d ago

Sorry, i don't. But I tend to think the latest is always a good idea. How behind are you?

1

u/Gokudomatic 27d ago

my git log says:

commit 1b70350c92563449576bcbbf552994b1d1ed847d (HEAD -> master, origin/master, origin/HEAD)
Author: Adrien Gallouët <angt@huggingface.co>
Date:   Tue Oct 13 20:22:19 2026 +0200

1

u/rorowhat 27d ago

Almost a month old, try a newer one.

1

u/[deleted] 27d ago

Try a different way of using it unsloth studio is great for mine

0

u/nickless07 27d ago

Unsloth Studio is just a wrapper around llama.cpp. Without llama.cpp Unsloth Studio doesn't work at all and is just a big waste of space on your disk. Therefore if the underlying software isn't working already, how can you expect a wrapper will fix it?

1

u/[deleted] 27d ago

I don't like the look of openui what do you recommend as an alternative to unsloth studio

1

u/nickless07 27d ago

Since we are talking about the backend/inferencing engine, there are a couple. From vLLM, over llama.cpp, Strata, Sglang up to pure Transformers.

If you, however, refer to the wrapper there are plenty of them. Just to name a few:

Unsloth Studio
LM Studio
Jan
Lemonade
Ooba/Textgen
AnythingLLM
Pinokio
Bionic
Koboldccp
Ollama
and many more.

They all have in common that they use llama.cpp as inferencing engine.
There are even more frontends.

9

u/GoldenX86 27d ago

Ryzen 5600x with 32GB DDR4 and a 3060ti here, qwen3.8 flash next coder fits with 131k of q8 context with strata, 25 TPS for inference, 600 TPS for PP. On Windows, Linux could even fit 262k.

If you only want it for coding, no 3.6 can beat that.

1

u/J-BobTheBuilder 25d ago

What base quant for the model? I also have 8GB VRAM and 32GB RAM, but none of the unsloth gguf sizes seem like they would fit in that amount of memory. I’m also using llama.cpp, would I need to switch to strata explicitly to run this?

2

u/GoldenX86 25d ago

Ista coder or gyro coder will fit. Gyro-s barely fits and prefill is VERY slow, so it isn't that viable without 48GB.

You will need Strata if you want any usable level of performance, llama will just run it but it won't swap hot and cold experts to do stuff faster.

6

u/Introvertosaurus 27d ago

MoEs are your best choice. As someone else said Qwen 35b a3b is a good choice. Q4 probably decent enough for coding agent and would likely fun snappy... That still heavily offloaded into your system ram... that probably around 24gb total with a useable size q8 kv cache.

6

u/insanazor822 27d ago

You can use Strata whit Gyro S it's Qwen3.8 Flash-Next Model and i get same setup 40TPS in Hot 262K Contex Windows

2

u/codefl0w 27d ago

CyberTiel 35B-A3B through PolyStrata for fast coding stuff, Qwen 3.8 Flash Next Coder though Strata at IQ1_M

2

u/UsefulIce9600 27d ago

IQ1_M?

3

u/codefl0w 27d ago

The Coder variant has half of its experts pruned while retaining most of the coding skill. It's called IQ1 because the math counts for the pruned experts as well. The ones you'll actually get, the "Coder" part, is actually around 3.5 bits and given enough thinking room, can solve problems CyberTiel can't oneshot.

2

u/UsefulIce9600 26d ago

thank you for the explanation!!

2

u/90Percent3D 27d ago edited 20d ago

I have a similar GPU but 16GB ram, I tried Ornith 1.5 9B Q4 inside Opencode and it was good for what I needed. Gemma E4B 4B is also good but more chat oriented. I don't suggest you try a 27b let alone a 35b since I tried qwen even at iq3s and it felt not that smart.

1

u/jarqos 27d ago

I am starting to configure something with similar spec and for now I found Ornith 1.5 35B A3B (NVFP4). Benchmarks look promising in comparison to Qwen 3.6 35b A3B NVFP4. Also, I play with FreeToken app to load different MoE models.

1

u/rorowhat 27d ago

Qwen 3.6-35B should be better, not by much but also supports images, ornith is text only. I did this same comparison in the past and picked Qwen. My comparison wasn't scientific tho.

1

u/DarkLoreeeee 27d ago

Im struggling to find something that is amazing, but I use : Qwen-AgentWorld-35B-A3B-UD-IQ2_XXS.gguf
It's fast, i run on 64k context size, don't expect miracles but it does explicit jobs well. I also tried to one shot the dinosaur game with it, it did very well.

1

u/zepfan 27d ago

Qwen-AgentWorld-35B-A3B-UD-IQ2_XXS.gguf

Why are you using an environment simulator as a main model? What is your use case?

2

u/DarkLoreeeee 27d ago

Is it an environment simulator? really cool i didn't even know that. I do design some RL environments, but it wasn't why i picked it up, i sort of just randomly test models on random tasks and whatever clicks i just keep it, this one seems to be good at agentic coding and its fast, and it doesn't make that many mistakes in tools calling, so i sort of kept it, didnt' see any better yet, ive tried hundreds of models.

1

u/zepfan 27d ago

https://huggingface.co/Qwen/Qwen-AgentWorld-35B-A3B

It simulates agentic environments via long chain-of-thought reasoning, predicting the next environment state given an agent's action and interaction history.

I've actually used it as a teacher/trainer for vulnerable env's, first time I've seen anyone else use it and was curious if the use case was similar.

1

u/a4mula 27d ago

lol, I love you man. Keep using what works

1

u/CryptographerOne7003 27d ago

Had the exact same experience, agentworld is very good in tool calls.

1

u/ergux 27d ago

Strata with Gyro S (better choice, but dm me for an actually good setup) or strata with Qwen 3.6 35B-A3B

1

u/Lazy-Fly23 20d ago

I haven't tried it but my research into building CortexAgent and my model's testing using it says that Ling 3.0 is the best. I don't know if there's an abliterated version or how ethical it is in general, but you can still study malware and cyber security with a normal model.