Glitch 81 ᯅ Profile picture
Jul 10 1 tweets 1 min read Read on X
You can run Qwen3.6 35B-A3B at 128K context on a single 12GB GPU. The video illustrates how this actually works.

It's a 41-layer MoE: 256 experts, but only 8 fire per token (~3B active). The trick is a tuned VRAM↔RAM split in llama.cpp — not brute force:

-ngl 999 → offload all 41 layers to the GPU
-ncmoe 28 → but push 28 of those layers' experts into system RAM
(the other 13 layers keep their experts in VRAM)
--cache-type-k q8_0
--cache-type-v q8_0 → 8-bit KV cache, so 128K context fits
-fa on → flash attention

Why it works, per token:
1️⃣ Attention, the router, and the KV-cache for all 41 layers run in fast VRAM.
2️⃣ 13 layers keep their experts on the GPU; the 28 heaviest sit in cheaper system RAM.
3️⃣ For those 28, the GPU sends a tiny activation vector across PCIe.
4️⃣ The CPU wakes only the 8 experts that token routes to, computes them in RAM, and returns the result.

Dial -ncmoe to your card: higher = more in RAM (smaller VRAM), lower = more on GPU (faster). 28 of 41 is the sweet spot for 12GB at 128K.

35B-class intelligence, ~12GB VRAM.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Glitch 81 ᯅ

Glitch 81 ᯅ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(