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
Calculator
Estimated VRAM required
4.6 GB
1.73B 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.
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.
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
Related guides
Frequently asked questions
How much VRAM does LFM3 1.7B need?
Why does a 1.7B model need so much memory at long context?
Can LFM3 1.7B run on a phone?
What do the convolution blocks cost in memory?
Does a Q8 cache help?
Should I use higher precision weights on a model this small?
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 ➜