Llama 4 Scout Memory Planning: Model Size, Ollama, Windows and Token Limits
Llama 4 Scout has 17B active parameters but needs room for all 109B weights, plus a KV cache that grows with every token. Work out the real memory budget for Ollama on Windows, from model size to context limits, before you start a 67 GB download.
You see "17B active parameters," you see a 24 GB graphics card on your desk, and the math seems to work. It does not. Llama 4 Scout is one of the most misunderstood open-weight models for local use, and the gap between the number on the box and the memory it really needs has wasted a lot of weekends. People start a 67 GB download, wait an hour, and then watch Ollama spill half the model into system RAM at two tokens per second.
This article puts numbers on every layer of the problem: the model size, what Ollama pulls to your drive, what changes on Windows, and where the token limits really sit once the cache starts to grow. By the end you will know whether your machine can run Scout, which settings to change first, and when it makes more sense to skip the hardware entirely.
💡 Quick answer: Plan for roughly 65 GB for the weights at 4-bit, plus 4 to 6 GB for a 32K context. A single 24 GB card will not hold it. Fast local use needs about 80 GB of fast memory in total.
Why 17B Active Still Needs 65 GB
Total versus active parameters
Scout is a mixture-of-experts model. It has 16 experts and roughly 109 billion parameters in total, but only about 17 billion are active for any single token. That active figure explains why Scout generates text quickly once it is loaded. It does not explain how much memory you need to load it.
The router can pick a different expert for the next token, so every expert has to stay available. You cannot leave 90 percent of the model on disk and fetch pieces on demand without destroying speed. Memory is set by the total count. Speed is set by the active count.
That split creates a strange hardware profile. Scout rewards machines with a lot of memory capacity, even if their raw compute is modest. A workstation with 96 GB of unified memory can beat a gaming rig with a fast card but 24 GB of VRAM, simply because the whole model sits in one place.
Model size by quantization
Quantization shrinks each weight from 16 bits to a smaller number. The trade is a small loss in output quality for a large drop in memory. Reported figures vary by build, so treat this table as a planning range rather than a promise.
Precision
Approx. weight size
Typical use
FP16 / BF16
about 218 GB
Datacenter nodes with several large accelerators
FP8 / Q8
about 109 to 115 GB
Workstations with 128 GB or more
Q4_K_M
about 65 GB
The practical local choice
Ultra low bit (around 1.78 bit)
about 24 to 30 GB
Experimental, reported to fit a 24 GB card at reduced quality
The arithmetic is easy to check: 109 billion parameters at 2 bytes each is about 218 GB. At 4.5 effective bits it lands near 60 to 65 GB, which matches the Q4_K_M files people report.
💡 Rule of thumb: weight size in GB is roughly total parameters in billions multiplied by bits per weight, divided by 8. Add runtime overhead on top.
What Ollama Actually Downloads
The 67 GB default tag
When you run ollama pull llama4:scout, the default tag comes down at around 67 GB. That is a 4-bit build, not the full-precision model. It is already about as small as you can go without moving into experimental quantizations that visibly hurt quality.
That figure is the file on disk. Loaded memory is higher, because the runtime adds a compute buffer, the context cache and, if you use image input, the vision encoder with its own working space. Expect the loaded footprint to run 8 to 15 GB above the file size, depending on context length.
Version and disk requirements
Llama 4 support arrived in Ollama 0.6 and later, so older installs will fail to load the model. Update first, then pull. Keep these checks in mind before you start:
Free disk space: keep at least 90 GB free on the drive that holds your model folder. The download is 67 GB, and temporary blobs need room during the transfer.
Drive speed: an NVMe drive loads the model in under a minute. A spinning disk can take many minutes every time the model is unloaded and reloaded.
Ollama version: run ollama --version and confirm you are on a recent release before blaming the model for a failed load.
After the pull, ollama show llama4:scout prints the architecture, parameter count, quantization and the context length the model advertises. It is a quick way to confirm what you really downloaded.
Token Limits and the KV Cache
The 10M promise versus reality
Meta advertises a context window of 10 million tokens for Scout. That figure is real as a design target, built around an interleaved attention scheme tuned for long inputs. It is also a number that no home machine will reach.
The Ollama library lists a practical window near 128K tokens, and in everyday use many people settle between 32K and 128K. Reports from users who push further point to about 256K as a stable ceiling on big hardware. The rest is a datacenter number.
The reason is the KV cache. For every token in the context, the model stores key and value tensors for each attention layer. This cache sits in memory next to the weights and grows linearly with the number of tokens. A longer window is not a setting you flip for free. It is a memory bill.
KV cache math per token
Scout uses 48 layers and 8 key-value heads with a head dimension of 128. At 16-bit precision, one token costs:
2 (key and value) × 48 layers × 8 heads × 128 dimensions × 2 bytes = 196,608 bytes, or about 192 KB per token.
That gives the following naive budget, before any savings from cache quantization:
Context length
KV cache at FP16
KV cache at 8-bit
8,192 tokens
about 1.5 GB
about 0.8 GB
32,768 tokens
about 6 GB
about 3 GB
131,072 tokens
about 24 GB
about 12 GB
1,000,000 tokens
about 190 GB
about 95 GB
10,000,000 tokens
nearly 2 TB
about 1 TB
💡 Reality check: some runtimes use the model's chunked local attention to keep part of the cache smaller, which is why guides quote anywhere from 4 to 6 GB at 32K and 30 to 50 GB at 1M. Use the naive table above as a safe ceiling, then measure your own setup.
So even the most generous interpretation puts 10M tokens well outside consumer territory. At 128K, the cache alone can equal the size of an entire gaming GPU's VRAM.
Setting num_ctx in Ollama
Ollama controls the window with the num_ctx parameter. The default is small and has changed across versions, so never assume that Scout is using the long window you read about. A small default is actually kind to memory, but it silently truncates long prompts, which creates confusing, low-quality answers.
There are three reliable ways to set it. Inside an interactive session:
/set parameter num_ctx 32768
Or bake it into a custom model with a Modelfile:
FROM llama4:scout
PARAMETER num_ctx 32768
Then run ollama create scout-32k -f Modelfile and start it with ollama run scout-32k. You can also pass num_ctx in the options of an API request. Whichever route you take, check the result with ollama ps, which shows the loaded size and how the model is split between GPU and CPU.
Two environment variables cut the cache bill further:
OLLAMA_FLASH_ATTENTION=1 turns on flash attention, which is needed before cache quantization works.
OLLAMA_KV_CACHE_TYPE=q8_0 stores the cache in 8-bit and roughly halves its size, with only a small quality cost for most tasks.
Windows Setup Without Surprises
Move the model folder
By default, Ollama stores models inside your user profile on the C: drive. A 67 GB model plus a few experiments can fill a laptop SSD fast. Point the OLLAMA_MODELS variable at a bigger drive before you pull anything. In PowerShell:
setx OLLAMA_MODELS "D:\ollama\models"
Quit Ollama from the tray icon, reopen it and the new location takes effect. If you already pulled the model, move the folder first or accept a second download.
VRAM, RAM and the pagefile
Windows reserves a slice of VRAM for the desktop, browser and any app using hardware acceleration. On a 24 GB card, expect roughly 1 to 2 GB to disappear before Ollama starts. Close browsers with many tabs, video editors and game launchers before you load Scout.
When the model does not fit in VRAM, Ollama offloads layers to system RAM. That works, but speed drops sharply, since those layers run on the CPU and cross the PCIe bus. If RAM also runs out, Windows falls back to the pagefile on disk, and generation slows to a crawl. Keep the pagefile on an NVMe drive and on system-managed size, but treat any pagefile use during generation as a sign that the configuration is wrong.
Watch memory in Task Manager
Open Task Manager, go to the Performance tab and select your GPU. Watch two numbers: Dedicated GPU memory and Shared GPU memory. If shared memory climbs while you generate, part of your workload is spilling into system RAM. Pair that with ollama ps: a line such as "40%/60% CPU/GPU" tells you exactly how far the split went.
Hardware Tiers That Work
A single 24 GB GPU
This is the most common setup, and the honest answer is that it is a partial fit. With a 4-bit build, roughly a third of the model lives on the GPU and the rest in system RAM. You need 64 GB of system RAM or more for this to run at all, and speed lands in the single digits of tokens per second. It is usable for batch work and testing. It is frustrating for live chat.
Reports suggest an ultra low bit quantization around 1.78 bit can fit on a 24 GB card at about 20 tokens per second. The price is a visible drop in output quality, especially on reasoning and code. Try it as an experiment, not as your main setup.
Unified memory and workstations
The comfortable zone starts around 80 to 96 GB of fast, unified memory. That includes Apple silicon machines with 96 GB or more, and Windows workstations with two or more high-memory cards. At that level, the 4-bit build and a 32K to 64K context fit without offload, and generation speed reflects the 17B active parameters rather than the 109B total.
Here is a quick comparison to find your tier:
Setup
Fits 4-bit weights?
Realistic context
Experience
12 GB GPU, 32 GB RAM
No
Not practical
Too slow to use
24 GB GPU, 64 GB RAM
Split across GPU and CPU
8K to 32K
Slow, fine for batch jobs
48 GB GPU, 64 GB RAM
Mostly
16K to 32K
Decent
96 GB unified memory
Yes
32K to 128K
Smooth
Multi-GPU workstation, 128 GB+
Yes, even 8-bit
128K and up
Excellent
A simple budget you can copy
Write the budget on paper before you buy or pull anything:
Weights: 65 GB at 4-bit.
KV cache: 192 KB multiplied by your target context (use half for an 8-bit cache).
Runtime overhead: add 4 to 8 GB for compute buffers and the vision encoder.
Operating system and apps: add 6 to 10 GB on Windows.
For a 32K window with an 8-bit cache, that is 65 + 3 + 6 + 8, or about 82 GB. For 128K with an 8-bit cache, it is about 91 GB. If your total is lower than that, plan on offload and slower speed.
Use Llama 4 Scout on PicassoIA
If your budget lands far from 80 GB, you can skip the hardware question. Llama 4 Scout Instruct on PicassoIA runs the model in the browser, with no 67 GB download, no Modelfile and no pagefile worries. It is also a fast way to test whether Scout fits your task before you spend money on RAM.
Write your prompt in the input box. Put the task first and the reference text after it.
Set the output length to match what you need. Short outputs return faster.
Press generate, read the answer and refine the prompt rather than starting over.
Save the prompts that work, so you can reuse them later in a local setup.
Parameter tips
Temperature: use 0.2 to 0.4 for factual summaries and code, and 0.7 to 0.9 for drafting and brainstorming.
Max tokens: set it just above the expected answer length. A cap that is too high wastes time.
System instruction: give Scout a role and a format ("You are an editor. Reply in five bullet points.") for consistent results.
Long inputs: paste the most relevant sections instead of whole documents. A focused prompt beats a huge one, even on a model with a long window.
If you want a bigger model for hard reasoning tasks, Llama 4 Maverick Instruct is on the same platform. For safety filtering of user prompts and outputs, Llama Guard 4 12B is a lighter model built for that role.
Common Mistakes to Avoid
Trusting the 12 GB claims
Some posts say Scout runs in 12 GB of VRAM because only 17B parameters are active. This confuses compute with storage. The experts still need to be loaded. A 12 GB card can run a heavily offloaded copy, but the speed will make it useless for chat.
Setting num_ctx to the maximum
Pushing num_ctx to 1,000,000 because the model supports 10M is a quick way to trigger an out-of-memory error or a total freeze. Raise the window in steps: 8K, 16K, 32K, 64K. Check ollama ps at each step and stop where the GPU share starts to fall.
Ignoring the vision input
Scout accepts images, and each image adds tokens to the context and extra work for the vision encoder. If you send many high-resolution images in one conversation, your cache grows faster than the text alone would suggest. Resize images before you send them, and keep the number per prompt low.
Forgetting the idle cost
Ollama keeps a model in memory for several minutes after the last request. On a shared Windows machine, that means 70 GB or more stays occupied while you try to open a game or a video editor. Unload it with ollama stop llama4:scout when you are done.
Try It Before You Buy RAM
Memory planning is the cheapest part of a local setup, and skipping it is the most expensive mistake. Start with the budget: 65 GB of weights, 192 KB per token of cache, overhead, and your operating system. If the total fits your machine, pull the model, set num_ctx deliberately and watch Task Manager as you scale up. If it does not, test your real prompts first.
The fastest way to do that is to open Llama 4 Scout Instruct on PicassoIA, run the prompts you plan to use every day and judge the quality yourself. When you want to see what else the platform offers, from chat models to image and video generators, browse all models on PicassoIA and start experimenting with your own ideas today.