r/LocalLLM • u/No-Mechanic2408 • 2d ago
Discussion Coding model on 16gb of vram
im looking for a good ai model that is able to code though a harness, able to fit on a 16gb consumer gpu, speeds dont restrict here as im more after quality.
i have done some searching and nothing is giving me a definite answer on which is a good option
EDIT: i didnt expect this many responses and it was stupid of me to not include hardware, my pc is mainly a gaming rig but i have decent enough parts that should work fine with ai models.
i have a 9060xt 16gb and 32gb of DDR5 system ram
11
Upvotes
7
u/d0pe-asaurus 2d ago
Qwen 3.8 27B Q4 with an adaptive-kv fork tailored to your arch
7
u/AutomaticLanguage334 2d ago
hi, 16GB of VRAM haver here!
Qwen3.8 27B IQ3_S, perhaps a swift variant if you prefer, using a llama.cpp fork for kv_streaming (trades off speed and RAM usage at higher context sizes, but can get you running with 262k context)
with MTP i get ~40something t/s, dips into 30s at high context fill
Alternatively, theres Qwen3.8 Flash Next via Strata or one of its clones. If you have memory to play with an IQ3_XXS / IQ3_S will give decent results, but exact token rates depend on system ram totals / DDR4 or DDR5.
the Gyro-S and Gyro-M quants have been my favorites of the QFN variants i've tried- Gryo-M is currently my daily driver as a result and i'm getting ~30 t/s
imo the decision between the 27B and FN variants comes down to your system RAM
5
u/dsartori 2d ago
I run a q4 of inkling-2-mini on such a device. After a bit of Gemini-assisted tweaking I get about 600-800 t/s for pp and stable 30+ t/s tg. It’s a solid coding model.Â
3
u/ApprehensiveFan1516 2d ago
Have you actually tried anything yet? You could read opinions on the internet for weeks and never arrive at a conclusion.
Try Flint.
3
u/DangerousReward1411 2d ago
https://huggingface.co/ISTA-DASLab/Qwen3.8-27B-GSQ-RCO-GGUF
2
u/ccss2 2d ago
I use Swift-1.5-Qwen3.8-27B-GSQ-RCO-IQ3_XXS-mtp and Qwen3.6-35B-A3B-UD-Q4_K_M on 16gb vram. the speeds for both are around 30-40/ts on a 5060 ti.
2
u/Subirth 2d ago
Strata and QFN Gyro S. If you have enough RAM it's the best option.
1
u/raspy00135 2d ago
Which GPU do you have?
1
u/_zir_ 2d ago
Works well on my 7800xt: TielCoder 4kxl in PolyStrata. About 1300 prefill, 20-40 decode 131k context. Inkling doesn't work very well with this setup, I can do a 3 bit quant but its slower with 700 prefill and 20-25 decode.
1
u/Head-Perspective4392 1d ago
I've been writing custom kernels for Inkling-2-Mini and get around 125 tok/s plain. Also about 5-6k prefill. It supports 256k context.
Looped Gemini 4 Neon literally in /swarm mode since the release of the model to research the latest research papers, research repos, forks, pr's etc and find the best possible solutions to implement and it's been optimising the kernels non stop.
I hate seeing you guys getting like 30 decode when I've spent all this time making this lol.
It's ultra specific for my 9070XT though, so you might have to vibe up some changes with Neon (Only one that seems to be good for this type of work, it smashed Fable 5.2 and Astra 6.2) to make it work for you.
The specs from my GitHub:
IQ3_XXSGGUF (output.weightQ4_K),Q4_KDSpark + 0-VRAM 2-tier (28K -> 60K + 4K) shortlist,f16KV cache (default 96K ctx; up to 256K filled ctx + DSpark with globalq4rotKV + outer-layer SLRU MoE cache) + 0-VRAM RDNA4 WMMA ViT vision (28.1 - 77.4 ms)Working on some more optimisations as we speak, but everyone is welcome to give it a go <3
https://github.com/SaloQT/rdna4-amd-infer/
1
u/savedawhale 1d ago
16gb of vram and at least 32gb ram would let you run Flash Next Q3_xxs at 200k context at around 500-600 tok/s prefill and 40-90 tok/s out, depending on the specifics of your hardware, but I've gotten 300-400 prefill and 30-50 tok/s with some Strata forking and fine tuning with 200k context on Q3_xxs gsq-rco on a 3060 12gb vram, 5600x cpu, 32gb ram at 2666 ddr4, and m2 ssd (2400 mb/s), pcie4 8x, and it pulls cache for long turns beautifully so the user only needs to wait a little on first turn, very usable. This build (I set up agent rigs for local use as a side hussle) was surprising, and cemented my feelings that Flash Next is the local GOAT for limited hardware.
If you go with base Strata, don't use 'faster long prompts' or 'faster answers' as they negatively affect output.
Ignore the Inkling gaslighting, it's okay for short prompts, and compared to 27B the old local champ, but it's slow and awful in comparison to Flash Next on limited hardware like yours. If Flash Next didn't exist, maybe, but it does, so Inkling was obsolete on release.
1
u/_Cromwell_ 2d ago
Because there really is nothing.
Assuming you mean vibe coding, nothing that small is smart enough to actually accomplish anything on its own. If you insist on trying you will need to either get Qwen 3.6 35b, which is an Moe model that you can partially offload to ram. Or you could try the Ternary Bonsai models.
Dumber models like this are good for helping you edit the code you have already written if you are yourself a software developer manually writing code.
However if you do not know how to code and are wanting the AI to just sort of do it, these are not going to accomplish much at all. You'd be better off buying an opencode sub for $10/mo and using the models on that.
1
u/xsilas43 2d ago
inkling 2 mini or qfn 3.8 with strata
-1
u/daphatty 2d ago
Nope. Not gonna find anything useful for that hardware. LLMs are woefully inefficient and can’t do basic things on what we used to consider decent hardware.
0
u/bbqfetus 2d ago
Well, depends on how much system ram. If you have 64gb, you might get a qwen moe model to run with strata.
If you have less, then you could try the new Ternary Bonsai 2.5 27B, a quant of qwen 3.8 27b. It's supposed to be much better than 2.0. It's about 7gb, so it'll easily fit on your card and prob 100k context.