LFM3 1.7B VRAM requirements at Q4 and 256K context

LFM3 1.7B needs about 4.6 GB in this Q4_K_M, 262,144 token, batch one scenario. At 32K context the estimate drops to 1.5 GB.

LFM3 1.7B is a small model from Liquid AI with 1.73B parameters, released under the lfm1.0 license. At Q4_K_M the calculator sizes the weights at 0.97 GB, under a gigabyte. That's tiny, and it's easy to stop the math there. The catch is the context window. At the full 262,144 tokens the cache needs 3.2 GB, and with the 10% runtime allowance the total is 4.6 GB. So this page is really about one question: how much context can your device afford?

By TechCompare · Updated

Total VRAM required
4.6 GB
LFM3 1.7B at Q4_K_M
Weights
1.0 GB
1.73B params
KV cache
3.2 GB
256K tokens, FP16 KV

Calculator

Estimated VRAM required

4.6 GB

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

Weights
1.0 GB
KV cache
3.2 GB
Overhead
0.4 GB

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.

KV cache exceeds model weights: Consider lowering the context length to save on VRAM. Contexts between 8K and 64K are generally more typical for local setups.

LFM3-1.7B has 24 blocks: 13 conv blocks with no token cache, 6 full attention blocks, and 5 blocks with a 256 token sliding window. Only the 6 full blocks grow with context, and at long context they outweigh the model itself.

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.

RTX 4060
Consumer
8 GB
58% used
RTX 3060
Consumer
12 GB
38% used
A100 40GB
Datacenter
40 GB
12% used
Apple M3 Max 64GB
Unified
~56 GB
8% of estimate

How this is calculated

The model has 24 blocks, and only some of them keep a token cache. Thirteen are convolution blocks with no token cache, six are full attention blocks and five are attention blocks with a 256 token window. The calculator's layer count is 11 because it counts the attention blocks. Hidden size is 2048, with 4 KV heads at head dimension 128. The six full blocks cost 12,298 bytes per token in FP16, and the five windowed blocks hold a fixed buffer. The convolution blocks keep a small state of about 25 KB per layer, which this estimate leaves out. Here's how the total grows: 1.18 GB at 8K, 1.51 GB at 32K, 2.84 GB at 128K and 4.61 GB at 256K. At the full context the cache is 3.3 times the size of the weights, and that's what makes context the thing to budget. At 8K the whole thing stays under 2 GB, so it fits almost anywhere. Weights are the one part you can trade for more room. Q8_0 weights come to 1.83 GB and FP16 weights to 3.46 GB, and a Q8 cache cuts the 256K total to 2.84 GB. Those are planning numbers for one sequence. Prompt processing buffers, the engine's own memory and any other apps on the device all sit on top.

Verdict

Pick a context limit before you pick a device. The full 256K scenario at 4.6 GB is over what a 4 GB memory budget can offer. At 32K the estimate of 1.5 GB leaves room on a small GPU or a phone that can give the model a couple of gigabytes. 128K at 2.8 GB still fits inside a 4 GB budget on paper. Memory is only half of the picture on a phone or laptop, because heat, battery and runtime support also set what's practical. This page doesn't predict speed or quality. Measure peak memory with your actual prompts, and check that your engine supports the conv and windowed attention blocks before you rely on the estimate.

More LFM 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 LFM3 1.7B need?
At Q4_K_M with a full 262,144 token context, this calculator estimates 4.6 GB. At 32K it's 1.5 GB, and at 8K it's 1.2 GB. The weights are only 0.97 GB, so the context length does most of the work in deciding the total.
Why does a 1.7B model need so much memory at long context?
Because 6 of its 24 blocks use full attention, and each of them stores keys and values for every token. At 256K that cache is 3.2 GB. The weights at Q4_K_M are 0.97 GB. Here the cache is the bigger part at full context, so a long window decides the budget more than the model's size does.
Can LFM3 1.7B run on a phone?
The memory math says it can at short and medium contexts. At 8K the estimate is 1.2 GB and at 32K it's 1.5 GB. Whether a particular phone gives the model that much memory, and whether the runtime handles the convolution blocks, is something to test on the device. This page doesn't predict speed.
What do the convolution blocks cost in memory?
The 13 convolution blocks keep no token cache, only a small fixed state of about 25 KB per layer. This estimate leaves that state out because it's tiny next to the attention cache. It's also why the calculator counts 11 layers, the attention blocks, instead of 24.
Does a Q8 cache help?
Yes, a lot at long context. With a Q8 cache the full 256K estimate drops from 4.6 GB to 2.8 GB, because the cache is the biggest part. At short contexts it saves little. Your engine has to support a Q8 cache for this architecture, so check before you count on it.
Should I use higher precision weights on a model this small?
The memory math makes it easy to try. Q8_0 weights are 1.83 GB and FP16 weights are 3.46 GB, which is still modest. Whether the extra precision changes your results is a quality question this page can't answer, so compare outputs on your own tasks.