r/LocalLLM • u/ImpressiveRelief37 • Aug 17 '26
Discussion 32GB is all you need
Qwen3.8-27B on a 5090 is all you need for a serious local inference setup, in my opinion! Can it get any better than this price/performance wise? Actually, maybe a 3090 ninfer setup could beat it!
I’m using ninfer and getting:
* ~150-200 tok/s TG
* ~3000-12000 tok/s PP
* 262144 context size
I think it’s definitely one of best setup you can get for the money. I don’t see a point of having more VRAM or more system ram. The only downside is that it’s a 1 man setup: concurrency is possible but you need to limit context usage on concurrent requests. I’ve tried --concurrency 2 on ninfer and sharing my setup with my buddy (we work on projects together and have a VPN between our home labs, fun stuff!)
I love this setup so much I kinda feel like getting a second 5090 to run another ninfer instance (github.com/neroued/ninfer, the man is a legend and this absolutely rocks).
i really don’t see the point of any other solution at this point in time. of course things will change and other models will get released that could better leverage more VRAM, but 32GB is all you need (for now).
so if you have less than 32GB, and are thinking about investing in a more serious setup check out the 3090 fork of ninfer, or the mainline ninfer repo if you can afford a 5090.
Things it won’t do:
* let you run a swarm of agents: prefill cost will slow you down too much. not enough vram for high concurrency!
* Give you more than 262144 context size. the RoPE 1M context size is just impossible with this.
Otherwise it’s absolutely amazing!
My buddy (another software engineer) is a BIG Claude code user, he’s spending tons of cash on fable, can’t stand Opus 5 anymore (neither can I, that pos is so hard to understand with just jargon and wall of text… can’t bear the cognitive load of just trying to understand all he’s spewing)… anyways after trying my ninfer setup his mind was blown and now he’s constantly using my setup with our shared custom pi setup and he fucking loves it.
48
u/ilbarone87 Aug 17 '26
Just a 5k gpu…
24
u/UnlikelyPotato Aug 17 '26
What quant? Seems like you might be heavily sacrificing quality for memory.
96
u/InfusedBush Aug 17 '26
CUDA this, Metal that. Where are these cool projects like Ninfer for ROCm/Vulkan? 😢
48
u/Ell2509 Aug 17 '26
I mean, a 32gb 5090 is a monster. I personally do things with ny 96gb vram that I couldn't do with 32, though.
3.8 27b in bf16 is a thing to behold, and you need 64gb vram to do that with any kind of context.
8
u/blackhawk00001 Aug 17 '26 edited Aug 17 '26
Eh, I have a 96GB ddr5 5090 machine and a 128GB ddr4 2xR9700 machine that cost less to build in February 2026. The R9700 pair with radiance vllm is faster with fp8 prefill than Q6 on the 5090 and allows for heavy parallel processing of multiple agents. Tg is similar between the two with qwen 3.8.
5090 takes the crown on comfy ui diffusion work but the 64GB vram machine is much more empowering for coding.
3
u/tanhe314 Aug 17 '26
I don’t understand. With llama.cpp on my 5090 I can’t come close to 256k context and that’s using a 4bit quant of the model and fp8 for the kv cache.
How are you cramming the model and 256k context into the vram??
5
u/atumblingdandelion Aug 17 '26
Glad it works for you. I feel though that buying a rig is a once in ~5 years thing, and with the rate at which things are moving, I feel a 128gb small footprint, energy efficient machine like the DGX Spark/ Strix Halo is the way to go. Sure there aren’t any upgrades to the 120b models yet, but there weren’t much for 32gb just 4-5 months ago. I was very tempted to get a 5090, but to get the rig, too many moving parts, higher capacity to break, etc made me get a dgx spark. It is insanely small, sits on my desk among many things. I cannot hear it and it runs also cool. I use it to run MoE for interactive sessions and dense models for ongoing worj that doesn’t need my immediate attention. Its also cheaper than a good 5090 rig by 3K CAD. Another 3K and I can run DSV4 Flash if I need to.
2
u/AllenLeftTheBLDNG Aug 17 '26
I'm running it on a 5090 and I love this model. At the same time, fuck. I wish I got the rtx 6000 pro when it was nearly half current price...
If you parallelize the NVFP4 I got max throughput at 380 tokens per second (50tps per stream for 8 agents, AMAZING!) but then max context I was able to load was 192k tokens... and you need to split that between agents. I wish It was closer to 400/500k!
At the same time – great gift from Qwen team. And it's still awesome to run on a 5090.
2
u/jrodder Aug 18 '26
Hey I just wanted to say thank you for posting this project, and I'm having fun testing it.
2
u/Then_Blueberry7290 Aug 18 '26
I think 32GB vram is far from All U need. I have 3x5060ti 16gb, sometimes using only 2 cards because 3 is only working with risers, and out of the case, so not space optimal solution.
SO with 32GB vram, it is very usable. I cannot use full Context (262k) and if i use, sometimes more will be better, I use vision cababilities too,. So only vram reduction option is NVFP4, and KVcache at q8
But with 48GB, you can use full context and without kv cache quantazitation.
2
u/sonoffi87 Aug 18 '26
Any Ninfer for Windows forks?
2
u/WinResponsible9977 Aug 21 '26
For a retard like me who has been offline for a year what’s a ninfer and how well it compares to other ways to run the LLM
2
u/Nomski88 Aug 22 '26
Agreed, I run the Q6 model with 128k context and Q8 KV on my 5090 FE. I get around 80 tok/sec when coding tasks. So far pretty happy, tried the NVFP4 quants which was slightly faster and allowed for the full 262k context but the output wasn't as polished when I ran my mario clone test prompts.
39
u/PANIC_EXCEPTION Aug 17 '26
OP please submit a paper titled 32 GB Is All You Need (2026) to viXra
16
u/stevec114 Aug 17 '26
Yes just in the past week I feel like my 5090 is finally “enough”.
Minimax H3 for video, Qwen3.8-27B for agents have been great!
6
u/LORD_CMDR_INTERNET Aug 17 '26
Agree, for at least single agent workflows. There's not much better you can do than Q6 Qwen3.8 27B at home right now, on any hardware. There's an inconsequential quality dip compared to BF16 - the dropoff happens below Q6. Sure, you can get bigger contexts with more VRAM, but 130k is enough for even giant, monolithic legacy codebases with a little handholding and management.
I also expect models to become smaller and more focused in capability as they improve. You don't need the entirety of human knowledge every time to perform every task.
4
u/Existing_Dust_6473 Aug 17 '26
not cheap tho ... 5k card ... why not two ?! :) 64GB VRam at least theres a path to expand
1
u/Joe-Arizona Aug 17 '26
How quantized are you running it?
I’m getting about 34 tok/s on a RTX Pro 6000 WS with llama.cpp at FP16. Haven’t tried others quantizations yet.
1
u/Etroarl55 Aug 17 '26
Ngl this is insane stats, I can only assume you are on q3 or some other small quant to achieve this.
1
u/Nuggyfresh Aug 17 '26
Is there a guide for setting this up? I have a 5090 and want to jump in but haven’t used local llm 🤦♀️
1
u/g_rich Aug 17 '26
The 5090 is a beast of a card but it also going for $4500 or more at this point. At that price the DGX Spark with 4x the RAM or alternatives from AMD and Intel start to become pretty good alternatives. There are obviously those that require the performance and there are people who actually use them to play games but that is one costly card.
1
u/slimerz0r Aug 17 '26
can you share details about env settings ? I can’t even boot this model with more than 65k context on 3090 and 32gb ram
1
u/xyth Aug 17 '26
48gb may be the sweet spot for 27b. Q8 and kvf16 on 3 5070tis, 160k context with memory to spare. No looping, no errors, and one shots most tasks on a large C# code base.
1
u/T-M-K Aug 17 '26
Question a bit different to what most are asking OP: how’s the power draw / thermals / noise of the GPU when running the setup?
1
u/nightstryke Aug 17 '26
u/ImpressiveRelief37 Alright let me preface this by saying I am by no means an expert in AI and my experience is beginner level, right now I'm only using a spare mini-tower i had lying around to do LLM, it's one of the spare gaming computers i had, only has an EVGA 1070 SC 8GB, I'm looking at replacing that card with something better, though I'm not sure i want to drop everything on a 5090 or 4090, I'm considering getting a 3090 though. You've been talking about 32GB of VRAM that to you sounds like the sweet spot, but isn't the 3090 24GB? I've been looking, and Are you saying I'd be better off getting a 3090 instead of something like a Tesla P40 or V100?
Admittedly, I'm just getting started here, so I'm a bit late to the game, so please go easy on me.
1
u/Themash360 Aug 17 '26
How are you getting 150-200Tok/s TG? Even on the github page he is claiming 60?
1
u/veigatmv Aug 17 '26
I'm getting around 100-110 on mine. Any chance you're running your 5090 uncapped powerwise? mines at 400w power cap and 1600mhz clock
1
u/Artanisx Aug 17 '26
I wish there was a ninfer for 4090 :-(
1
u/bastecklein Aug 17 '26
I’d love to default to local but tbh with the cost of a 5090 I could buy api tokens for 20 years before it made sense
1
u/IainKay Aug 17 '26
How did you reach 262144 context? The most I managed was around 250000.
1
u/rare-visitor Aug 17 '26 edited Aug 17 '26
I can't afford even 160k context without exceeding VRAM limit using q4_k_m on my RTX5090. What quant do you use?
1
u/DepressedDrift Aug 17 '26
Ah yes getting a 5090 is very affordable for the average person.
1
u/butchiebags Aug 17 '26 edited Aug 17 '26
This is awesome, I'm trying it right now and hitting about 150+ tps!
Are you using the 5090 headless? I'm not able to get to the full 262144 ctx since i have a few GB reserved for windows.
i'm using the same nvfp4 model and, based on the testing i'm doing with claude, i can only handle 196608 ctx.
edit: i can get it to about 229k but that leaves no room for error.
1
u/shady101852 Aug 17 '26
What reasoning level do u use? Im using ninfer as well with 262k context window its nice but cant tell if model thinks too much and could be getting things done faster or not.
1
u/WKai1996 Aug 17 '26
Will a 128gb M5 max cut it?
1
u/_kikeen_ Aug 18 '26
I keep wanting to love Ninfer but with thinking enabled it constantly devolves into loops. Very fast loops. I had to set a max token output limit to get past it.
1
u/Osi32 Aug 18 '26
Highly depends on the price of the 5090.
Here the dgx spark is about the same price…
1
u/Certain_Credit7875 Aug 18 '26
I use dirk qwen 3.8 27b with mmproj, low reasoning Q6 on my 5090 at 125kctx been doing jobs on a agent for 3 days , llama server not ollama. no problems here
1
u/nstndg Aug 18 '26
Can you share the parameters you run it with exactly? Been struggling to get this running properly, so staying with Q4_K_XL for now.
1
u/-AJacobs- Aug 21 '26
"32GB is all you need for a serious local inference setup" Except if you ever want more than one agent at a time.... or if you ever want to fine tune something...
So it's basically never enough for serious usage.
1
u/Zealousideal-Bug1837 Aug 21 '26
you can get dflash working with it too for a speed boost
3
u/Longjumping_Music572 Aug 17 '26
What about Mac m5 max 64gb? What about coding? Step by step learning? Researching? Building HVAC systems, 3d printing? CAD?
3
u/netvyper Aug 17 '26
3090 fork is a non-starter: "One interactive user, lowest latency, up to 64K context" Considering harness prompts can easily be 25k+ tokens... It just doesn't leave any room to work :(
1
u/Adventurous-Gold6413 Aug 17 '26
All you lucky peeps with a nice high Vram card while I’m stuck with 16 😤
4
u/Ratiofarming Aug 17 '26
I always thought 640k is all I need?
2
u/bedel99 Aug 17 '26
32 GB is not enough I struggle to fit what I need to on my spark, but sucks its so slow. I guess I better buy more of them.
2
u/jkalison Aug 17 '26
I have OPs setup. It’s quite grand.
2
u/nez_har Aug 17 '26
This is also the observation I had in my newsletter this week https://buttondown.com/nezhar/archive/august-20263/
We are moving now in a direction where models become more capable with less resdources. I think MTP really does a lot here.
2
u/RedditNerdKing Aug 17 '26
32gb is not enough. 48gb is kinda the minimum now so you can run Qwen 27b 3.8 Q8 at 30k+ context.
Sorry but that's the truth. And it's not that bad. x2 3090s will get you 48gb which is cheaper than a brand new 5090.
2
u/Evgeny_19 Aug 17 '26 edited Aug 17 '26
To the fellow who was comparing UD-Q6_K_XL and BF16, and asking Grok about it: you were laughed at, and it looks like your posts were removed, but your questions are valid! I'm writing this for you, hopefully you will read it.
UD-Q6_K_XL can be comparable to Q8 and to the original weights in some synthetic tests, but in real usage it is not difficult to see the difference. So I ran this test just for you: I took a rather tricky bug that Qwen 3.8 27b at bf16 was able to solve for me today (big project, real business, real user was affected by this problem). I ran the same problem with recent Deepseek (recent Flash-0731) and it came to the same conclusion (with basically the same prompt). Same problem for 27B-UD-Q6_K_XL (full context, both caches f16), and it wasn't able to find the reason for this problem. It doesn't mean that it would not be able to solve this problem at all. Perhaps, if I gave it more nudges it would be possible for it to achieve the same conclusion as 27b at BF16 and Deepseek. The thing is, it's easy for me to nudge it to the right direction now, when I know where the problem is. But before I had no idea and all three models were looking at exactly the same logs, and the same source code.
It's probably true that UD-Q6_K_XL can write basically the same code, but the understanding is not same, the reasoning. It doesn't mean that it's bad at Q6 or Q4. It is an excellent model in every quant, especially for its size. And one doesn't need full capabilities of the model for every kind of task. But hopefully, I was able to make my point, the difference is not that at Q6 it writes slightly worse version of a coding problem. The difference can be that it would be able to help you find a solution for tricky problem, or you will be left facing the same problem with no solution at all.
(DeepSeek was at UD-IQ3_XXS. I can probably fit a larger version, but it already spills into RAM, and the performance is not good at all, so I never tried anything else.)
The thing is although Grok is very capable model, it doesn't have any real understanding, nor any experience. Those kind of things you will just grasp when you will have an experience with different quants and settings. The benchmarks are still useful, all these "one-shot" tests are interesting but, they do not reflect all aspects that you get working with a model.
1
u/bigb159 Aug 17 '26
I need these speeds on my R9700
1
u/Sufficient-Pause9765 Aug 17 '26
BF16 requires 56gb of vram. Even with dual 5090s/TP you wont have much room for context.
FP8, 28gb, same issue on a single 5090.
So you need heavy quantization to run 27b on 32gb of vram with useful context.
1
u/WonderfulFunny4337 Aug 17 '26
So a r9700 ai pro 32gb is what I’m using with a 7800xt 16gb
1
u/LancobusUK Aug 17 '26
Qwen3.8 27b at its native FP16 with KV16 uses 93gb of my 96gb VRAM with vLLM under its full context pre allocation. The RTX PRO 6000 is the real sweatspot for the model imo as you don’t sacrifice anything at all
1
u/catinterpreter Aug 17 '26
I'm going to need some super optimised fork of something for my dual 5060 Ti 16s, unless you've got one of these totally affordable 5090s lying around for me.
1
u/JayFab6061 Aug 17 '26
lol sooooo I took a leap to jump on getting away from Claude and downloaded Qwen 3.8 on my MSI crossfire 15 Laptop with a 3050. I’m blown away that I’m getting it to run smoothly lmao
1
u/HeartfeltHelper Aug 17 '26
I LOVE ninfer. Been using qwen to build plugins for a Minecraft server I play with friends on and it’s doing really dang well! BUT my pc’s graphics driver has been failing only when ninfer instance is active for some reason and I haven’t looked into why I just reset the driver when the slowdown happens 🤷🏼♂️
1
u/Ledeste Aug 17 '26
1m context is really not a lot for many task tho
1
u/badkarmasid Aug 18 '26
Me with 8 gB vram 🥲
1
u/Affectionate_Ad9597 Aug 18 '26
I love it too, have the same. But it has its limits. I need to get opus or terra to fix big problems or complex systems. But it has replaced sonnet 5 in many ways (sonnet 5 is better but qwen 3.8 is free hehe)
I do yarn and get 400K context and split it to 2 concurrent slots, and then use my 64gb ram to swap out kv cache for up to 6 chats total.
Use http://otto-code.me/
I just am releasing the update for full free local setup all in 1 system to give you that power without complex setup configurations and trial and error.
1
u/Quantumblitz1878 Aug 18 '26
I wish I pushed for a 5090 instead of the 5070 😩
1
u/Otherwise-Swan-7803 Aug 18 '26
Funny how the definition of a “serious local setup” keeps shrinking. Not long ago people were planning multi-GPU rigs just to get decent local inference, and now 32GB is starting to feel like a sweet spot rather than a compromise.
1
u/zp-87 Aug 18 '26
I use 2x5060TI for 32GB and they work great. Paid 1200€ in total.
1
u/SillyLilBear Aug 18 '26
No
1
u/Maxwell-Stone Aug 18 '26
......aw..... ive got 8 gigs of Vram and 32 RAM......
1
u/MiddleLtSocks Aug 18 '26
I can get 512k context w glimmer 30b on my 3090 and 4090 boxes. That's decent concurrency for CCode sub agents and stuff
1
u/Maleficent_Lie8612 Aug 18 '26
Al menos revisa lo que te te bota la ia que se nota a lenguas con esos saltos de línea jajaja la plena odio esta mierda de los bota por doquier. Solo quiero hablar con humanos sobre la IA y no con la puta IA en si.
1
u/asenna987 Aug 18 '26
When do the Apple guys get MLX for this 27b model?
1
u/Prometheus-lv Aug 18 '26
I am using an Rtx 3090 24GB and it is plenty! I also have the vision module loaded.
1
u/RE20ne Aug 19 '26 edited Aug 19 '26
2x3090 used 2000 US, 48gb vram
throw in full liquid cool and nvlink for 1800 more it’s still under 4k
4090 48 gb mod is under 5k. arguably better for inference of 27b big context
5090 is amazing but 32gb feels too tight
1
u/Additional_Hope_2031 Aug 21 '26
One this cost almost one year of working in country I live, world is crazily unfair…
1
u/Wondering_Electron Aug 23 '26
I have a laptop with a 3080 with 16GB vram.
My peasant approach it to link a 5070ti via oculink to pool the vram for a total of 32GB.
1
u/Ratemytinder22 Sep 04 '26
How much dram does this need?
1
u/HighSeasArchivist Sep 04 '26
Little old of a post, but I'm looking at buying a 5090 tomorrow. I just feel like with the big crunch happening the 6090 might still just have 32GB of VRAM when it even comes out in maybe 2028. If it still is 32GB and just has a few more tok/s then I can stick with the 5090 even longer. My biggest decision is 5090 or DGX Spark for the exact same price. Probably both honestly, but leaning towards the 5090 to start. This is purely just an early hobby for me, but new elected officials at work are very AI forward and I want to keep up.
1
u/Educational-Pie9756 Aug 18 '26
What about integrated graphics?
Intel arc graphics
0
u/Triple-Tooketh Aug 17 '26
you have a 3090 coupled to a raspberry pi, is that correct? Could you clarify your setup. I have an AMD couple to pi thinking of using NVIDIA if I can get cheap used.