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
Calculator
Estimated VRAM required
32.8 GB
39.8B params at Q4_K_M, 262,144 token context, batch 1, inference.
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.
Just barely too small
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
Related guides
Frequently asked questions
How much VRAM does Flint 40B need at Q4?
Can Flint 40B run on a 24 GB GPU?
Will Flint 40B fit on a 32 GB card?
Why is the cache only a few gigabytes at 256K?
Does only 2.5B active parameters mean I only need 2.5B worth of memory?
How big is the Flint download compared with the Q4 estimate?
Related tools
RAM Latency Calculator
Convert DDR3/DDR4/DDR5 timings (CL, tRCD, tRP, tRAS) into true latency in nanoseconds.
Use tool ➜Power Cost Estimator
Estimate annual electricity costs for your PC, Server, or TV.
Use tool ➜Data Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool ➜Memory and Storage Throughput Visualizer
Visualize the massive speed difference between CPU cache, RAM, and storage.
Use tool ➜