← Latest papers
🔬 condensed matter

A 35B Hybrid-Attention Mixture-of-Experts Model on a 6GB 2011 GPU: Hand-Written 4-bit CUDA Inference for Fermi

This paper demonstrates the end-to-end inference of a 35-billion-parameter Qwen3.6 MoE model on a 2011 6GB Fermi GPU by implementing a hybrid execution strategy that streams weights for GPU prefill and utilizes a hand-written SSSE3 integer kernel for CPU decoding, while documenting both performance gains and the practical hardware limitations of running frontier-class AI on legacy silicon.

Original authors: A. C. Opus, J. Q. Lu

Published 2026-06-24✓ Author reviewed
📖 5 min read🧠 Deep dive

Original authors: A. C. Opus, J. Q. Lu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a massive, incredibly smart library containing 35 billion books (a modern AI model). Now, imagine you want to read a specific story from this library, but you are stuck in a tiny, 14-year-old shed with only a small desk and a very old, slow computer.

That is exactly what this paper describes. The researchers successfully made a cutting-edge AI model run on a graphics card (GPU) from 2011 that has only 6 GB of memory—about half the size of the model itself.

Here is how they pulled off this "impossible" feat, explained through simple analogies:

1. The Problem: The Library is Too Big for the Shed

The AI model is like a giant encyclopedia. Even when shrunk down (compressed to 4-bit precision), it takes up about 10.5 GB of space. The old computer only has a 6 GB desk.

  • The Issue: You can't fit the whole book on the desk.
  • The Old Way: Modern computers have "Tensor Cores" (specialized calculators) and fast memory to handle this. The 2011 card has none of that. It's like trying to do advanced math with a calculator that only has buttons for addition and subtraction.

2. The Solution: A Two-Team Relay Race

Since the whole model doesn't fit, the researchers split the work into two teams: a GPU Team (the old graphics card) and a CPU Team (the main computer processor).

  • Phase 1: The "Prefill" (Reading the Prompt)

    • The Analogy: Imagine you need to read a long list of instructions (the prompt) to get started.
    • The Trick: The GPU acts like a fast conveyor belt. It grabs a small section of the "books" (model weights) from the main computer's hard drive, puts them on its small desk, does the math for that chunk, and then swaps them out for the next chunk.
    • The Result: Instead of reading the whole book at once, it reads it page-by-page in a continuous stream. This allowed them to process the initial instructions 34% faster than before.
  • Phase 2: The "Decode" (Writing the Story)

    • The Analogy: Now the AI needs to write the story one word at a time.
    • The Problem: If the GPU tried to do this, it would have to run back and forth to the hard drive for every single word. That's like a runner sprinting to the library, grabbing one book, running back, writing a word, and repeating. It's too slow.
    • The Trick: They moved this part to the main computer's brain (the CPU). They wrote a custom, super-efficient "hand-written" code that treats the numbers like simple integers (whole numbers) instead of complex decimals.
    • The Result: This made the AI write words 3 times faster than before, turning a slow crawl into a steady jog.

3. The "Magic" Shortcuts

The researchers didn't just split the work; they invented clever shortcuts to make the old hardware feel new.

  • The "Snapshot" Cache:

    • The Problem: The AI has a "memory" that changes as it reads. Usually, you can't reuse old work because the memory state is different.
    • The Fix: They took "snapshots" of the AI's memory at specific checkpoints. If you ask the AI to repeat a story it already heard, it doesn't re-read the whole thing. It jumps straight to the last snapshot it saved.
    • The Result: Repeating a long prompt went from taking 78 seconds to just 0.5 seconds. It's like skipping to the end of a movie you've already seen instead of watching it again.
  • The "Pinned" Memory:

    • The Analogy: Normally, moving data from the hard drive to the GPU is like moving boxes with a shaky forklift.
    • The Fix: They "locked" the boxes in place (pinned memory) so the forklift could move them smoothly without wobbling. This cut the time spent moving data in half.

4. What Didn't Work (The "Dead Ends")

Part of the paper is about what failed, which is just as important. It tells us where the wall is.

  • Trying to use the GPU for writing: They tried to make the GPU write the words, but the old card was too slow at moving data back and forth. It was actually slower than the CPU.
  • Using all the computer's threads: They tried to use every single processing thread available (like hiring 24 workers instead of 12). It caused a traffic jam, slowing things down massively.
  • Rewriting the math: They tried to rewrite the math kernels three different ways, but the old hardware just couldn't handle the specific type of math required.

The Bottom Line

This paper isn't about setting a new speed record. It's a proof of concept that says: "You don't need a $20,000 supercomputer to run a 35-billion-parameter AI."

By treating the old hardware like a puzzle and building a custom engine from scratch (hand-writing code for a computer architecture that software developers abandoned 14 years ago), they proved that modern AI can run on "junk" hardware if you are clever enough with the engineering.

In short: They took a Ferrari engine (the AI model) and made it run on a 1990s bicycle frame (the 2011 GPU) by building a custom transmission and changing the fuel type, proving that with enough ingenuity, you can go surprisingly far with old tech.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →