Insane! Run Kimi K3, 2.8 Trillion Parameters, on a Single 4GB GPU
The largest open weight model ever released can run on a 4GB GPU. Here is the expert-streaming architecture that makes it possible, and the real tradeoffs involved.
I spent an afternoon trying to convince myself a 4GB card could not possibly touch a 2.8 trillion parameter model. I was wrong, and the reason I was wrong is more interesting than the headline number.
Kimi K3, Moonshot AI’s new open weight release, is the first open model to cross the 3 trillion parameter class. The full checkpoint is roughly 1.56 terabytes. Loading that in the ordinary way, all weights resident in GPU memory, takes something like forty H200 cards. That is a data center rack, not a desk.
And yet the model can generate real tokens on a single consumer GPU with about 4GB of VRAM free. Not a distilled version. Not a 7B lookalike with the same name. The actual 2.8T checkpoint. Here is what makes that possible, and where the trick genuinely breaks down.
What Kimi K3 Actually Is
Kimi K3 is a 2.8 trillion parameter model built by Moonshot AI, the Beijing based lab behind the Kimi assistant. It ships with a 1 million token context window and native multimodal handling, meaning text, images, and video run through the same model instead of separate bolted on encoders.
Two architectural pieces carry most of the weight. Kimi Delta Attention gives the model an efficient way to scale attention across a huge parameter count. Attention Residuals selectively pull representations across depth rather than piling them up uniformly at every layer. Together they let training stay stable well past the point where most trillion parameter efforts start to wobble.
The part that matters for running the model at home is the Mixture of Experts design. K3 has 896 separate expert networks per layer, and a router activates only 16 of them for any given token. Do the division and roughly 104 billion parameters actually do work on a single token, out of the 2.8 trillion that exist. On benchmarks, Moonshot reports K3 landing close behind the strongest proprietary systems while beating other open weight models, including outperforming rivals on several coding and agentic evaluations.
That gap between total parameters and active parameters is the entire reason a 4GB card is even a conversation worth having.
Why the Old Trick Stops Working
Running huge models on small GPUs is not new. The standard method is layer wise inference: a transformer processes its layers one after another, each layer only needing the output of the one before it. So instead of holding every layer in memory at once, you load one layer from disk, run it, discard it, and move to the next. A 70B model that would normally need 130GB shrinks down to a couple of gigabytes of working memory using this approach. It is the technique behind tools like AirLLM, and it has scaled up through models like Llama 405B and DeepSeek V3 without much trouble.
Kimi K3 breaks that pattern. The problem is not the parameter count by itself, it is what each layer is made of. Every one of K3’s 93 layers contains all 896 experts. Stream an entire layer the old way and you are pulling in all 896 experts whether the current token needs them or not. One K3 layer stored on disk is around 17GB. Expanded to full precision for computation, it balloons to roughly 56GB. Even a workstation card with 48GB of VRAM cannot hold a single expanded layer. The classic one-layer-at-a-time trick runs out of room before it even starts.
The Fix: Stream Experts, Not Layers
The insight that makes K3 tractable is the same insight that makes Mixture of Experts efficient at inference time in the first place: most of those 896 experts per layer are irrelevant to any single token. K3 only routes to 16 of them. The other 880 sit there unused for that particular forward pass.
So the fix is to go one level deeper than layer streaming. Instead of hooking into each layer, place a hook on every individual expert, all 82,432 of them across the full model. When the router selects an expert for a token, only that expert’s weights load from disk. It computes its contribution, then gets evicted from memory immediately. The 880 experts the router did not pick are never even read.
The difference in memory footprint is not subtle. A fully expanded layer’s worth of experts runs around 55GB. What a single token actually needs from that layer is closer to 1GB. That fifty-fold gap is what turns an impossible job into a slow but real one.
Keep It Compressed Until the Last Possible Moment
K3’s weights ship in MXFP4, a 4-bit floating point format. Most inference libraries decompress weights back to full precision before running anything through them, which is exactly how a 17GB stored layer turns into a 56GB expanded one, and exactly why a naive implementation blows past a small card’s limits.
The workaround is to leave the 4-bit weights packed for as long as physically possible. The compressed bytes travel across the PCIe bus from disk to GPU still in their 4-bit form, and only expand to a usable precision once they land on the card, expert by expert. This buys two separate wins. Peak memory never has to hold an expanded layer, since only one expert’s worth is ever unpacked at a time. And because the data moving across the bus is four times smaller than it would be uncompressed, the slowest part of this whole pipeline, disk and bus throughput, gets a real reprieve.
The Disk Problem Nobody Warns You About
There is a less glamorous obstacle that shows up before you ever get to run a single token: disk space. Efficient expert streaming usually depends on re-sharding the checkpoint, splitting it into one file per module so that loading an expert reads exactly that expert and nothing surrounding it. Re-sharding normally means writing a second copy of the model to disk. For K3, that is 1.56TB original plus another 1.56TB split copy, or 3.12TB total, which does not fit on a 3TB drive.
The way around it depends on how Moonshot packaged the checkpoint in the first place. K3’s released shards are already clean, each file holds exactly one module with nothing else mixed in. That means there is nothing to actually rearrange. Instead of copying bytes into new files, the setup step can hardlink the split files back to the original data on disk. No duplication, no hours of copying, and total disk usage stays at the original 1.56TB.
What Running It Actually Looks Like
The honest number matters here more than the exciting one. Measured on a single workstation GPU against the full 1.56TB checkpoint, expert streaming produces real generated tokens using well under 4GB of VRAM. But it is not fast. Token generation lands somewhere in the neighborhood of minutes per token, not seconds.
The bottleneck is not the GPU’s compute, it is the disk. Every generated token means walking back through a fraction of a 1.56 terabyte checkpoint, and no amount of clever memory management changes how fast a drive can read. This is not a setup for a snappy chatbot. It is a setup for offline work where correctness and access matter more than latency: batch document analysis, evaluating whether K3 is worth renting real infrastructure for, architecture research, or fine-tuning experiments on a model most people could never otherwise open up and inspect.
Try It Yourself
The general shape of the workflow looks like this once expert-streaming support exists for a model:
pip install airllm compressed-tensors flash-attn
from airllm import AutoModel
model = AutoModel.from_pretrained("moonshotai/Kimi-K3")
input_text = ['What is the capital of the United States?']
input_tokens = model.tokenizer(
input_text,
return_tensors="pt",
return_attention_mask=False,
truncation=True,
max_length=128,
padding=False
)
generation_output = model.generate(
input_tokens['input_ids'].cuda(),
max_new_tokens=20,
use_cache=True,
return_dict_in_generate=True
)
print(model.tokenizer.decode(generation_output.sequences[0]))
pip install airllm compressed-tensors flash-attn
from airllm import AutoModel
model = AutoModel.from_pretrained("moonshotai/Kimi-K3")
input_text = ['What is the capital of the United States?']
input_tokens = model.tokenizer(
input_text,
return_tensors="pt",
return_attention_mask=False,
truncation=True,
max_length=128,
padding=False
)
generation_output = model.generate(
input_tokens['input_ids'].cuda(),
max_new_tokens=20,
use_cache=True,
return_dict_in_generate=True
)
print(model.tokenizer.decode(generation_output.sequences[0]))
A few requirements are not optional if you want to reproduce this:
- flash-attn is mandatory. K3’s model code overrides whatever attention backend you ask for, so there is no path that skips it.
- A CUDA 12 build of PyTorch. No prebuilt flash-attn wheel exists yet for CUDA 13.
- transformers pinned to the 4.56.x line. K3’s remote code does not load correctly on the 5.x branch.
You will also want roughly 1.6TB of free, fast storage. Disk speed, more than GPU horsepower, is what determines how long each token takes.
FAQ
Can a 4GB GPU really run a 2.8 trillion parameter model? Yes, but only because Kimi K3 is a sparse Mixture of Experts model. Only about 104 billion of its 2.8 trillion parameters activate per token, so streaming just the needed experts from disk keeps peak GPU memory under 4GB, even though the full checkpoint never fits on the card at once.
How fast is inference when running K3 this way? Slow. Generation runs on the order of minutes per token because the process is bottlenecked by disk read speed, not GPU compute. This setup suits offline batch work, research, and evaluation rather than interactive chat.
Do I need the full 1.56TB checkpoint on disk? Yes, plus enough space for the model’s re-sharded index files. Because K3’s official shards are already single-module files, the setup can hardlink rather than duplicate data, so you generally do not need double the checkpoint size in free space.
Is this the same technique used for smaller open models like Llama or DeepSeek? It is built on the same foundational idea, layer by layer streaming, but extended one level further. Older MoE and dense models can stream a full layer at a time. K3’s experts are large enough that even one layer no longer fits, so the technique streams individual experts instead.
Is Kimi K3 actually competitive with closed frontier models? On Moonshot’s published evaluations, K3 trails the very top proprietary systems by a narrow margin on overall scores while matching or beating them on specific coding and agentic tasks. Independent, third party benchmarking is still catching up, so treat vendor reported numbers as a starting point rather than a final verdict.
What hardware do I actually need to try this myself? A GPU with a few gigabytes of free VRAM, a fast NVMe drive with roughly 1.6TB free, flash-attn installed, a CUDA 12 build of PyTorch, and transformers pinned to the 4.56.x branch. More VRAM and faster storage both shorten the per-token wait.
What This Actually Means
For a couple of years, the story around local large language models has had the same shape: the open weights get better every few months, but the hardware needed to run them stays firmly out of reach for anyone without a rack of enterprise GPUs. Most people end up renting an API and hoping the pricing does not change.
Kimi K3 does not erase that gap, but it changes its shape. The model is genuinely near the frontier, close behind the strongest proprietary systems on general capability and ahead of them on some coding and agentic benchmarks, and the weights are public. Getting it to run on a 4GB card does not make it fast. It makes it possible to hold, inspect, fine-tune, and study without first raising the capital for a data center. What used to require forty H200s now requires a graphics card, a large hard drive, and patience.
If this helped you see what’s possible with massive AI models on surprisingly modest hardware, a clap 👏 goes a long way. I’ll be sharing more practical insights on running powerful open-source models, local AI, and the tools shaping the future of development.
Follow Phynix AI for more practical AI, open-source models, coding, local LLMs, and developer-focused insights.


