Flint 40B VRAM requirements at Q4 and 256K context

Flint 40B needs about 32.8 GB in this Q4_K_M, 262,144 token, batch one scenario. At 32K the same model needs about 25.6 GB.

Flint is a coding agent model from Recursive with 39.8B total parameters and about 2.5B active per token, released under Apache 2.0. The full pool is small enough that the memory question is about single cards, not racks. This page keeps every expert resident at Q4_K_M, which the calculator sizes at 0.56 bytes per parameter, so the weights come to 22.3 GB. Add an FP16 cache for one sequence and a 10% runtime allowance and the total is 32.8 GB at the full 262,144 token context.

By TechCompare · Updated

Total VRAM required
32.8 GB
Flint 40B (MoE) at Q4_K_M
Weights
22.3 GB
39.8B params
KV cache
7.6 GB
256K tokens, FP16 KV

Calculator

Estimated VRAM required

32.8 GB

39.8B params at Q4_K_M, 262,144 token context, batch 1, inference.

Weights
22.3 GB
KV cache
7.6 GB
Overhead
3.0 GB
Doesn't fit on a 32 GB consumer GPU at Q4_K_M. Q2_K (22.3 GB) is the smallest quant that fits a single RTX 5090.

Estimate accuracy: Planning estimate. Rounded model counts, tensor formats, cache packing, and workspace can change actual allocation. Confirm the exact checkpoint and serving engine with a load test.

Flint has 14 full attention layers and 35 layers with a 513 token sliding window, all with 4 KV heads at head dim 128. Only the full layers grow with context. All-resident weights include the full 39.8B pool.

Hardware that fits

Apple entries show installed unified memory separately from a model budget based on an 8 GB reserve. That budget is a planning heuristic, not a fixed hardware limit.

A100 40GB
Datacenter
40 GB
82% used
RTX 6000 Ada
Pro
48 GB
68% used
Apple M3 Max 64GB
Unified
~56 GB
59% of estimate

Just barely too small

RTX 5090
Consumer
32 GB
short by 0.8 GB

How this is calculated

Flint has 49 layers with hidden size 2048 and 4 KV heads at head dimension 128. Of those layers, 14 use full attention and 35 use a 513 token window, so most of the cache is a small fixed buffer. The 14 full layers cost 28,812 bytes per token in FP16. At 262,144 tokens the cache is 7.55 GB, at 128K it's 3.79 GB, at 32K it's 0.98 GB and at 8K it's 0.27 GB. The model routes each token to 6 of 256 routed experts and also runs a shared expert, but all of them count toward the weights. The checkpoint on Hugging Face is about 80 GB to download, so a Q4 conversion is a separate file and you'll need to check which formats your engine can load. The totals are 32.8 GB at 256K, 28.7 GB at 128K, 25.6 GB at 32K and 24.8 GB at 8K. The weights alone are over 20 GB, so context only decides the last few gigabytes and the card size you need is set mostly before the first prompt. That makes the line between card sizes very sharp. Even an 8K context doesn't fit a 24 GB card in this estimate, so that card would need a lower precision than Q4_K_M or some offload to system memory. A 32 GB card falls just short at the full context. It does hold 32K tokens, with a little room left. A Q8 cache narrows the gap, since it brings the full context total to 28.7 GB. On paper that fits a 32 GB card, though your engine has to support a Q8 cache for this architecture. The estimate leaves out prompt processing buffers, engine allocations and anything the display or other programs hold on the same card.

Verdict

Flint is the kind of model you can try on one workstation card, and the card size decides how much context you get. For a 32 GB card, plan on the short context end and measure how far you can push it. For two cards or one card in the 48 GB class, the full 256K scenario at 33 GB is within reach, and a single 48 GB card holds it on paper. Only about 2.5B parameters are active per token, so a setup that keeps expert weights in system memory is worth a test if your engine supports it. That trades memory for speed in ways this page can't predict, so try it with your own prompts. A machine with 64 GB of unified memory clears the full context estimate on paper, but check how much of that memory the operating system lets a single process use.

More Flint scenarios

Kimi K3.1 Pro at Q4_K_M
A 2.78T expert pool with 24 latent attention layers and fixed state in the other 69.
View details ➜
Mistral Large 4 at Q4_K_M
A 1T expert pool with 63 latent cache owners and 44 layers that also store an index key.
View details ➜
Muse Spark Open at Q4_K_M
Only 16 of its 62 layers grow with context, and the other 46 hold a 2,048 token window.
View details ➜

Frequently asked questions

How much VRAM does Flint 40B need at Q4?
This calculator estimates about 32.8 GB at 262,144 tokens, made of 22.3 GB of Q4_K_M weights, 7.55 GB of FP16 cache and 3.0 GB of runtime allowance. At 32K the estimate is 25.6 GB. Both assume all experts sit in GPU memory and one sequence is running.
Can Flint 40B run on a 24 GB GPU?
Not with every expert resident at Q4_K_M. Even an 8K context comes to 24.8 GB in this estimate. A 24 GB card would need a lower precision conversion or a setup that moves expert weights to system memory, and both change quality, speed or both. This page doesn't predict either, so test a real conversion before you plan around it.
Will Flint 40B fit on a 32 GB card?
It's close. The full 256K context estimate is 32.8 GB, and 32K is 25.6 GB. With a Q8 cache at the full context the estimate is 28.7 GB. The gap is small enough that the display, the engine and a longer prompt can all push it over, so leave a margin and watch memory during a real session.
Why is the cache only a few gigabytes at 256K?
Only 14 of the 49 layers keep every token. The other 35 use a 513 token window, so their cache has a fixed size. With 4 KV heads at head dimension 128, the full layers add 28,812 bytes per token in FP16. That's why the 256K cache is 7.55 GB and not a number that rivals the weights.
Does only 2.5B active parameters mean I only need 2.5B worth of memory?
No. The router picks 6 of 256 routed experts for each token and also runs a shared expert, and the next token can pick different ones. The whole 39.8B pool has to be available. The small active count makes each token cheaper to compute, which helps if you offload experts, but it doesn't shrink the resident weights in this estimate.
How big is the Flint download compared with the Q4 estimate?
The checkpoint on Hugging Face is about 80 GB to download. The Q4_K_M weight estimate here is 22.3 GB. Those are different formats, so a converted file's size will tell you more than either number. Check which quantized files exist for your engine and compare their sizes with this estimate.