You Don't Need 128GB VRAM for Local AI at Full Context

summarized

TLDR

Qwen's 27B model fits on a single 24GB graphics card and trails its larger Flash Next sibling by less than three points on most benchmarks, but Flash Next leads by 16.5 points on Deep SWE, a long coding agent test. The 27B model's architecture uses mostly gated Delta net layers, which keep a fixed-size state instead of a growing KV cache, so long conversations add little memory. For most local AI, a 24GB card is sufficient; the 128GB box is only necessary for long unattended coding agents or running the largest models.

Key points

Qwen's 27B model requires only 17GB of weights at standard compression and fits on a 24GB graphics card.

On all benchmarks except Deep SWE, the 27B model trails Flash Next by less than three points.

Flash Next leads the 27B model by 16.5 points on Deep SWE, a test of long coding agent tasks.

The 27B model uses gated Delta net layers for three-quarters of its layers, which maintain a fixed-size state instead of a growing KV cache.

The KV cache for the 27B model adds about 8GB for a 128,000-token conversation, keeping total memory under 32GB.

Tools mentioned

Techniques

  • gated Delta net layers
  • KV cache
  • multi-token prediction
  • prefill
  • decode
  • quantization
  • KV cache quantization
Transcript (captions)

0:00 The best case I've read against buying a 128 gig AI box sits in the model card for the very model those boxes are built for. Quinn's card for Flash Next puts its smaller sibling, the 27B, in the

0:12 next column. If you're pricing one of those boxes, that column is worth reading first. On every headline test but the last, the bigger model wins by less than three

0:21 points, and the smaller one fits on a single 24 gig graphics card. So, for most local AI, you probably don't need that much memory anymore. I assumed the gap would be big enough to explain why

0:32 those guides exist. So, I went through both of Quinn's model cards and the small models config, and worked out where the memory goes. Fit is a memory question, and those pages answer it with

0:41 a little multiplication. The popular take comes from a widely shared guide that lists every route to enough memory for Flash Next. It's popular picks from a used Mac Studio up to a DGX Spark run

0:53 about three to seven thousand dollars. And for that model, the guide is right. It's compressed download alone runs about a hundred gigs. But that's the cost of running Flash Next, and those

1:03 scores are Quinn's own self-reported. The last row breaks the pattern, so keep a question in your pocket. What kind of work does that row measure? By the end, you'll be able to add up what a model

1:13 needs. The model itself plus the conversation it's holding, and pick your tier. If you only came for the buying answer, it's near the end. The stretch before it is why that answer holds, and

1:24 it starts with Flash Next because on paper it looks light. For each token it writes, a word or a piece of one, it reads only about six billion of its parameters, the learned numbers that

1:34 make up the model. That's a small slice. The catch is where the rest of them live. Every parameter has to sit in memory, ready for whichever token needs it.

1:43 Count the main model plus the add-ons that ship with it, a large lookup table, and a small head that drafts tokens ahead, and it's about 180 billion parameters on disk. Reading a slice per

1:54 token changes how much work each token takes. It doesn't change how much has to be stored. Squeeze each parameter down to a few bits, the standard setting for running locally, and you land near the

2:04 guide's download size. That makes the first cost of any local model its weights, the parameters stored at whatever precision you picked. Now, the smaller model. At that same standard

2:14 compression, its weights come to about 17 gigs. That fits the card from earlier with room to spare. Divide one by the other, and Flash Next needs several times the room just to hold its weights.

2:25 For a lead that's small on most tests, that's a lot of memory rent for a few points. But, a fit check that stops at weights misses the second cost, the one that grows. That second cost is the

2:35 conversation. As you chat, the model's attention layers, the ones that let each new token look back at earlier ones, keep a small record for every token so far, a key and

2:45 a value. That pile is the KV cache, short for key value cache, and it grows with every token you add. Picture each attention layer keeping a notebook with a new line

2:55 for every token. A long chat means a thick notebook in every one of those layers. That's how a model that fits when you load it can stop fitting as the conversation gets long.

3:05 Reading the small model's config is where my picture of that cost changed. Most of its layers are a different kind called gated Delta net. Only one layer in four is an attention layer, and those

3:15 are the only ones keeping a notebook. The Delta net layers keep a running state of fixed size instead, the same size on your first message as on your last. In the notebook picture, they've

3:25 swapped a growing log for a tally that never gets longer. The picture breaks in one place. You could read a notebook back line by line. These are blocks of numbers the model

3:34 works with, so the picture only tells you about size. What's inside is a different story. With that layout, the conversation's cost is arithmetic. Each attention layer holds just four small

3:44 key value heads. Multiply that through for keys and values at the model's native precision, and every token adds about 64 kilobytes. Stretch that across a conversation of 128,000 tokens. Call

3:56 it about 8 gigs. That's my arithmetic from the config, not a measurement, and it leaves out the fixed Delta net state and the runtimes own overhead. Put the weights on top and you're just past what

4:07 a 24 gig card holds. A 32 gig machine takes it with room left. The model card lists a native context that's longer still. Run the same math there and the total climbs just past that new line. So

4:19 that size covers a long chat, but the model's full context needs more. So what about the card alone? Context Studio's hardware guide says that out of the box it holds a conversation of about 64,000

4:31 tokens. The full context fits on that card only with tuning, like storing that cash at lower precision. Machines with unified memory, where the graphics chip shares the system's memory, have an

4:41 easier time. Long context on a single card comes with some assembly required. The trap I'd watch for is easy to fall into. Say you load the small model on that card, it fits, and you paste in a

4:52 big chunk of your code base. The weights didn't change, the conversation did, and that's the part that runs out. So cap the context at that out of the box length before you paste or tune the

5:02 cash. Speed isn't the weak spot. The same guide reports a tuned setup on vLLM, a serving engine built for speed, running on an RTX 3090 at about 114 tokens a second for a single user.

5:15 That's a consumer card running far faster than you can read. So speed won't be what pushes you to the big box. That's the whole memory model you need. Weights are fixed the moment you pick a

5:25 model and a compression. The conversation grows with every token. On this model it grows slowly because most of its layers keep a tally instead of a notebook.

5:34 Config math only goes so far, so the next question is what happens under real load. Sayam Pathak set out to benchmark the small model across several engines on a DGX Spark, the priciest of the

5:46 guide's popular picks, at 100,000 tokens of context, his decode speed, the part where the model writes the reply, was still close to his default llama.cpp result. His write-up explains it with

5:57 the same fixed-size delta net state, the tally from earlier. His other finding is the one I'd tape to the monitor, multi-token prediction, a speed-up where the model drafts tokens ahead and checks

6:08 them, hard rebooted his whole spark twice under certain mixes of parallel request and long context. His advice, test your own workload and skip that setting when many long context requests

6:19 run at once. Over on the Level One Tech forum, a user hit a different wall on Strix Halo, the chip inside one of the guide's cheaper mini PCs. Prefill, the step where the model reads your prompt,

6:30 was slow, and on a long prompt, that's the wait before the first word appears. He wrote that it had been killing him. So, he built his own engine for that chip and that model, released it as

6:40 Halogen Server, and reported about double the prefill speed of the next closest engine. That's one way to file a performance complaint. When other users asked for image input, he added that,

6:50 too. In his words, "Once you warm it up and you're careful with context, it's been extremely useful." Careful with context is the budget we just added up, weights plus conversation held under the

7:01 memory you've got, which brings back the question in your pocket. After a run of near ties, you'd expect the last row to land within a few points, too. It's Deep SWE, a test of coding agents working

7:12 through long tasks, and their Flash Next leads by 16 and a half points. Set it against the biggest of the other gaps, and by my count, it's more than six times larger. Even SWE Bench Pro, a

7:24 software engineering test, has them less than a point apart. On every other row, these models are neighbors. On this one, they aren't. Quinn's cards don't say why the lead grows there and nowhere else,

7:34 and any reason I offered would be a guess. What the row does tell you is who the big box is for. If your plan is to hand a coding agent long jobs and let it work through them on its own, that road

7:45 describes your day. That's where Flash next on the big box earns its price. The other buyer who needs a big box wants the giants. Unsloth docs for deep seeks flash model list its smallest download

7:56 at 233 gigs. Smallest is doing a lot of work in that sentence. Those docs recommend about 128 gigs or more of system and graphics memory combined with the models huge engram table left on an

8:08 SSD. Unsloth also says squeezing it to about half its full size kept most of its accuracy by their own count. For that class of model, the big box is the

8:18 starting line. Back at the small end, not every new model fits as neatly as Qwen's. Recursive's Flint sits right at the edge of a 24 gig card. LM Studio says its smallest build needs at least

8:30 that much memory, so I wouldn't plan around running it there. Qwen's next generation is on the way, too. At its Upsara conference in September, Alibaba said Qwen 4 is in

8:40 training and it gave no release date. At the same event, Alibaba CEO Eddie Wu called the open-source Qwen 27B the most popular model among developers worldwide. He said Alibaba will keep

8:52 refining models built for local use. That's praise for the model you can run today. A successor is a separate question. Coverage of the event lists a 27B Qwen 4 among the preview tiers with

9:04 the labs model lead saying only that it would arrive very soon. There are no weights, model card, or scores yet, so treat it as announced and coming. If it lands at today's size and beats today's

9:15 model, the single card tier gets stronger. The rule is a sum. Take the models weights, add what the conversation cost at the length you work at. If that fits your memory with some

9:24 room left, you don't need the big box. Try it on Flash next. Its weights alone land near the guide's download size before the conversation adds anything, and that's the big box. Try it on the

9:35 small model, and the second step is cheap because only one layer in four keeps a notebook. My call by who you are. If you already own a 24 gig card and you chat, code with an assistant, or

9:47 run short agent tasks, start there. Keep conversations moderate or tune the cache. If you're buying and want long conversations without tuning, 32 gigs is the size I'd pick going by that config

9:59 math from earlier. If your work is long, unattended coding agents, the big box earns its price, and that row is your reason. If you want the giants, the big box is where you start, not where you

10:10 finish. And if Quine force smaller model closes that long agent row, my call for the agent crowd changes with it, which takes me back to that column in Quine's own card. The best case against the big

10:21 box sat in a table from the team that built the model the box is for. The guide answers how to get the memory. The table answers whether you need it, and for most local AI, the answer is no for

10:32 the work you'd run at home. Which rows are you living in? The close ones or agent row? Tell me which and what you'd run it on.

Frontier News · by Hyperjump Technology