★ Reading this for free? Get 25 structured AI courses + per-chapter AI tutor — the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once
📅 Published: March 18, 2026🔄 Last Updated: October 15, 2026✓ Manually Reviewed
MoE, 16 experts10M contextText + image inputMeta

Llama 4 Scout: 10M Context, Native Multimodal

Llama 4 Scout is Meta’s 109-billion-parameter mixture-of-experts model with 17B active parameters per token, 16 experts, a 10-million-token context window and text-plus-image input, released 5 April 2025. The default Ollama build, llama4:scout, is a 67 GB download; the smallest GGUF anywhere is 29 GB, so it needs an 80 GB card, a 96 GB Mac, or two 48 GB cards to run fully in memory. Every figure on this page is from Meta’s model card and licence, the model’s configuration file, or the file sizes published on Ollama and Hugging Face; this site has not benchmarked the model.

Overview

Llama 4 is Meta’s first mixture-of-experts release. Scout has 109B parameters in total but routes each token through one of 16 experts, so only 17B parameters do work per token. Meta’s card puts its pre-trained MMLU at 79.6 against 79.3 for the dense Llama 3.1 70B, which is the comparison Meta itself draws. The catch for local use is that all 109B parameters still have to sit in memory; the routing saves compute, not space.

The two headline features are a 10-million-token context window (the Maverick sibling is 1M) and native image input through what Meta calls early fusion: text and image tokens enter the same transformer rather than an image encoder being bolted on afterwards. Meta says the model has been tested with up to five input images.

Pretraining used about 40 trillion tokens across 200 languages, with 12 languages officially supported. On consumer hardware the realistic entry point is a 48 GB setup (two 24 GB cards) running a 2-bit build, or a 64 GB Mac at 3-bit; see the hardware section and the MoE VRAM calculator.

109B
Total parameters
17B
Active per token
10M
Context window
67 GB
Ollama llama4:scout download

Llama 4 Scout model card: 109B total, 17B active, 10M context

Meta’s model card lists Llama 4 Scout (17Bx16E) at 17B activated and 109B total parameters with a 10M context length; the Hugging Face API counts 108,641,793,536 parameters in the BF16 safetensors. The rest of the card’s facts:

SpecLlama 4 Scout
DeveloperMeta
Release date5 April 2025 (the Hugging Face repository was created 2 April 2025)
Parameters17B activated, 109B total (108,641,793,536)
Experts16 (Maverick: 128, 400B total)
Context length10M tokens (Maverick: 1M)
InputMultilingual text and image
OutputMultilingual text and code
Supported languagesArabic, English, French, German, Hindi, Indonesian, Italian, Portuguese, Spanish, Tagalog, Thai, Vietnamese (pretraining covered 200)
Training data~40 trillion tokens of “publicly available, licensed data and information from Meta’s products and services”, including public Instagram and Facebook posts
Knowledge cutoffAugust 2024
Training compute5.0M GPU hours on H100-80GB
Image inputTested for image understanding up to 5 input images
Released weightsBF16; Meta says it “can fit within a single H100 GPU with on-the-fly int4 quantization”
LicenceLlama 4 Community License Agreement

From Meta’s Llama 4 model card and the Hugging Face model page. There are two checkpoints, the pretrained Llama-4-Scout-17B-16E and the instruction-tuned Llama-4-Scout-17B-16E-Instruct; the Ollama tags are the instruct model.

Architecture

Text model, from config.json

Layers48, every one a mixture-of-experts layer
Hidden size5,120
Attention heads / KV heads40 / 8 (grouped-query attention), head dimension 128
Experts16 routed experts, 1 active per token, each with an 8,192-wide feed-forward block
Shared experta 16,384-wide feed-forward block that every token also passes through
Vocabulary202,048 tokens
Max positions10,485,760
Position encodingRoPE, theta 500,000, “llama3” scaling factor 16 over an original 8,192; 12 of the 48 layers (every fourth) use no rotary embedding
Attention chunkingattention_chunk_size 8,192 on the rotary layers; QK normalisation on
Vision encoder34 layers, hidden 1,408, 336-pixel images in 14-pixel patches, projected to 4,096

From config.json (ungated mirror of Meta’s repository).

Why MoE matters for local AI

Each token activates one of the 16 experts plus the shared block, so the arithmetic per token is that of a roughly 17B dense model while the parameters that could be consulted number 109B. That is where the “70B quality at 17B cost” framing comes from, and Meta’s own tables bear part of it out (Scout’s MMLU-Pro 58.2 vs 53.8 for Llama 3.1 70B, pre-trained). The trade-off is that all 109B parameters must be resident: a 4-bit Scout is 65 GB, a 4-bit Llama 3.3 70B is 43 GB. Runtimes that keep the experts in system RAM and stream the active ones to the GPU exist, but this site has not measured how fast that is, so no speed figure is quoted. The MoE VRAM calculator does the split arithmetic for any MoE model.

Interleaved attention: how 10M positions are reached

The configuration alternates two kinds of layer. Thirty-six layers use rotary position embeddings with the Llama 3 scaling recipe (factor 16 over the 8,192 base, up from factor 8 in Llama 3.1) and attend within 8,192-token chunks; the other twelve, every fourth layer, use no positional embedding at all and attend across the whole sequence. Meta’s announcement calls this iRoPE. The practical consequence for memory is in the next section: only the twelve global layers have a cache that grows with the full window.

The 10M context window: official, and what it costs

The 10 million token context is official: Meta’s model card lists “10M”, the configuration sets 10,485,760 maximum positions, and Ollama lists every Scout tag with a 10M context window. Nobody runs it at that length on a local machine, because the key-value cache for 10M tokens is measured in hundreds of gigabytes even under the most favourable reading of the configuration:

KV bytes/token = 2 (K and V) × layers × KV heads × head dim × bytes per value

= 2 × 48 × 8 × 128 × 2 (f16) = 196,608 bytes = 192 KB per token, if every layer keeps the whole window

Layer, head and dimension counts are from config.json. This is arithmetic, not a measurement. The “chunked” column assumes the runtime honours the 8,192-token chunk on the 36 rotary layers (1.2 GB in total, fixed) so that only the 12 global layers, at 48 KB per token, grow with the window. Whether your runtime does that is runtime-specific; plan with the first column if unsure.

Context in useKV cache, every layer full (f16)KV cache, chunked layers capped (f16)
4,096 tokens (Ollama default)0.8 GB0.8 GB
8,192 tokens1.6 GB1.6 GB
131,072 tokens (128K)25.8 GB~7.6 GB
1,048,576 tokens (1M)206 GB~52.7 GB
10,485,760 tokens (10M, full window)2.06 TB~517 GB

Add the 65 GB of Q4_K_M weights and a 128K context lands between 73 and 92 GB, a 1M context between 120 and 272 GB. Ollama opens a 4,096-token window by default regardless of the tag’s listed context, so you set the window you can afford: /set parameter num_ctx 131072 inside ollama run, OLLAMA_CONTEXT_LENGTH=131072 ollama serve, or num_ctx in the API request.

The only long-context evaluation on Meta’s card is MTOB, translating between English and Kalamang from a grammar book held in context: Scout scores 42.2 / 36.6 chrF on the half-book task and 39.7 / 36.3 on the full book, where the Llama 3.x models cannot be scored because their window is 128K. Meta publishes no needle-in-a-haystack or other long-context benchmark for Scout on the card.

Benchmarks published by Meta

Meta reports Scout’s pre-trained MMLU as 79.6 (5-shot) and the instruct model’s MMLU Pro as 74.3 and GPQA Diamond as 57.2. These are Meta’s own results on the BF16 weights; the card compares Llama 4 only with earlier Llama models and contains no figures for any other company’s models. Earlier versions of this page quoted a GPQA of 84.8 and a SWE-bench of 70.3; neither appears on the card and both have been removed.

Pre-trained models, copied from the Llama 4 model card.
BenchmarkLlama 3.1 70BLlama 3.1 405BLlama 4 ScoutLlama 4 Maverick
MMLU (5-shot)79.385.279.685.5
MMLU-Pro (5-shot)53.861.658.262.9
MATH (4-shot)41.653.550.361.2
MBPP (3-shot, pass@1)66.474.467.877.6
TydiQA (1-shot, F1)29.934.331.531.7
ChartQA (0-shot, image)——83.485.3
DocVQA (0-shot, image)——89.491.6
Instruction-tuned models, same source. “—” = no image support.
BenchmarkLlama 3.3 70BLlama 3.1 405BLlama 4 ScoutLlama 4 Maverick
MMMU (image reasoning)——69.473.4
MMMU Pro——52.259.6
MathVista——70.773.7
ChartQA——88.890.0
DocVQA (test)——94.494.4
LiveCodeBench (10/2024–02/2025)33.327.732.843.4
MMLU Pro (0-shot)68.973.474.380.5
GPQA Diamond (0-shot)50.549.057.269.8
MGSM (multilingual)91.191.690.692.3
MTOB half book, eng→kgv / kgv→eng (chrF)128K window128K window42.2 / 36.654.0 / 46.4
MTOB full book, eng→kgv / kgv→eng (chrF)128K window128K window39.7 / 36.350.8 / 46.7

Source: Meta’s Llama 4 model card. To see how these scores sit against other local and hosted models, check the AI model leaderboard.

Llama 4 Scout vs Llama 3.3 70B

On Meta’s instruct table Scout beats Llama 3.3 70B on MMLU Pro (74.3 vs 68.9) and GPQA Diamond (57.2 vs 50.5), ties it on LiveCodeBench (32.8 vs 33.3) and MGSM (90.6 vs 91.1), and adds image input and a far longer window. Llama 3.3 70B needs 43 GB at 4-bit; Scout needs 65 GB. The card has no MMLU row for the instruct models, so the “79.6 vs 79.3” comparison that circulates is the pre-trained Scout against the pre-trained Llama 3.1 70B, not 3.3.

MetricLlama 4 ScoutLlama 3.3 70BSource
ArchitectureMoE, 109B total / 17B activeDense, 70.6Bmodel cards
Context window10M128Kmodel cards
InputText and imageTextmodel cards
MMLU Pro (instruct)74.368.9Llama 4 card
GPQA Diamond (instruct)57.250.5Llama 4 card
LiveCodeBench (instruct)32.833.3Llama 4 card
MGSM (instruct)90.691.1Llama 4 card
Ollama default download67 GB (Q4_K_M)43 GB (Q4_K_M)Ollama tag lists
Fits two 24 GB cardsonly at 1- to 2-bit (32–42 GB files)yes, at Q4_K_Mfile sizes
Knowledge cutoffAugust 2024December 2023model cards

The honest summary: if you have 48 GB and want the best text model that fits, Llama 3.3 70B at Q4_K_M is the safer pull, because Scout at that memory is a 2-bit build. If you have 80 GB or more, or need image input or a window past 128K, Scout is the one Meta’s own numbers favour.

Hardware requirements: how much VRAM does Llama 4 Scout need?

About 68 GB at Q4_K_M with an 8K context, so the standard setup is an 80 GB card, a Mac with 96 GB of unified memory, or two 48 GB cards. A 48 GB setup (two 24 GB cards) runs the 2-bit builds, which are 37–42 GB files. No single 24 GB card holds any build: the smallest file that exists is 29 GB. The arithmetic is parameters × bits per weight ÷ 8: 108.64B × 4.81 bits ÷ 8 = 65.4 GB at Q4_K_M, which matches the published file.

File sizes are from unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF (multi-part files summed) and Ollama’s tag list. The context cache is 1.6 GB for 8,192 tokens (arithmetic above). “Memory needed” is file + that cache + a 1 GB allowance for buffers; add the 1.75 GB vision projector (mmproj) if you use image input with llama.cpp.

QuantisationFileOllama tag (listed size)Memory needed (8K context)Fits
UD-TQ1_029.26 GBnot on Ollama~31.9 GBOne 32 GB card, with nothing to spare and heavy quality loss
UD-IQ1_S32.47 GBnot on Ollama~35.1 GB48 GB: two 24 GB cards or one 48 GB card
UD-IQ2_XXS37.40 GBnot on Ollama~40.0 GB48 GB
Q2_K39.56 GBnot on Ollama~42.2 GB48 GB
UD-Q2_K_XL42.38 GBnot on Ollama~45.0 GB48 GB, with 3 GB to spare
Q3_K_S46.74 GBnot on Ollama~49.4 GB64 GB: Mac with 64 GB unified memory, or 2 × 32 GB cards
Q3_K_M51.76 GBnot on Ollama~54.4 GB64 GB
IQ4_XS57.65 GBnot on Ollama~60.3 GB64 GB, tight
Q4_K_M65.36 GBllama4:scout (67GB) — the default~68.0 GB80 GB card, or a Mac with 96 GB; 2 × 48 GB cards
Q5_K_M76.54 GBnot on Ollama~79.2 GB96 GB
Q6_K88.44 GBnot on Ollama~91.1 GB96 GB, tight; 128 GB Mac
Q8_0114.54 GB17b-scout-16e-instruct-q8_0 (117GB)~117.2 GB128 GB Mac, or two 80 GB cards
BF16215.57 GB17b-scout-16e-instruct-fp16 (217GB)~218.2 GBThree 80 GB data-centre cards
  • One 24 GB card (RTX 3090, 4090): nothing fits entirely. Ollama and llama.cpp will split the model between the card and system RAM; with 64 GB of RAM the default 67 GB build loads, but most of the experts live in RAM. This site has not measured how fast that runs.
  • Mac: the same totals apply to unified memory. 64 GB runs the Q3 builds, 96 GB the default Q4_K_M, 128 GB the Q8_0.
  • No GPU: the file loads into system RAM, so 96 GB of RAM covers Q4_K_M; see running an LLM on CPU only.
  • Disk: the download size in the table, once per build you pull.
  • Meta’s own figure: the card says Scout “can fit within a single H100 GPU with on-the-fly int4 quantization”, which is the 80 GB tier in the table.

For what else fits each tier see best LLM for 24 GB of VRAM, best LLM for 32 GB of VRAM and best LLM for 64 GB of RAM; splitting a model across cards is covered in the Ollama multi-GPU guide, and the build names in quantization explained.

Quick start with Ollama

With Ollama installed, pull the tag that matches your memory. Every tag below is on ollama.com/library/llama4/tags; all are listed with text and image input.

Ollama tagDownloadQuantisationContextNote
llama4:scout67GBQ4_K_M10Msame file as llama4:latest, llama4:16x17b and llama4:17b-scout-16e-instruct-q4_K_M
llama4:17b-scout-16e-instruct-q8_0117GBQ8_010M
llama4:17b-scout-16e-instruct-fp16217GBfp1610Munquantised
llama4:maverick245GBQ4_K_M1Mthe 128-expert, 400B sibling; q8_0 is 428GB, fp16 803GB
# Default Scout build: Q4_K_M, 67 GB — for 80 GB of memory
ollama pull llama4:scout
ollama run llama4:scout

# Raise the context window inside a session (default is 4,096)
/set parameter num_ctx 32768

# Or set it for the server
OLLAMA_CONTEXT_LENGTH=32768 ollama serve

API usage

Ollama exposes an OpenAI-compatible endpoint, so the standard client works; image input goes in as a base64 data URL in the message content.

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:11434/v1",
    api_key="ollama"
)

# Text-only query
response = client.chat.completions.create(
    model="llama4:scout",
    messages=[
        {"role": "user", "content": "Explain MoE architectures in 3 sentences"}
    ]
)

# Image + text query
import base64
with open("chart.png", "rb") as f:
    image_data = base64.b64encode(f.read()).decode()

response = client.chat.completions.create(
    model="llama4:scout",
    messages=[{
        "role": "user",
        "content": [
            {"type": "text", "text": "What does this chart show?"},
            {"type": "image_url", "image_url": {
                "url": f"data:image/png;base64,{image_data}"
            }}
        ]
    }]
)

With Open WebUI

For a chat interface with image upload, run Open WebUI against the local Ollama server:

ollama pull llama4:scout
docker run -d -p 3000:8080 \
  --add-host=host.docker.internal:host-gateway \
  -e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
  ghcr.io/open-webui/open-webui:main

Multimodal capabilities

Meta’s card describes the Llama 4 models as “natively multimodal”, using early fusion: image tokens from the 34-layer vision encoder enter the same transformer as the text, rather than a separate vision model being attached after the fact. The card lists the instruct model as “optimized for visual recognition, image reasoning, captioning, and answering general questions about an image”, tested with up to five input images. Its published image scores:

Image reasoning (instruct)

  • MMMU 69.4, MMMU Pro 52.2
  • MathVista 70.7
  • ChartQA 88.8 (83.4 pre-trained)
  • DocVQA 94.4 (89.4 pre-trained)

What that covers

  • Charts and plots (ChartQA)
  • Scanned documents and forms (DocVQA)
  • Diagrams and maths in images (MathVista)
  • College-level multi-discipline questions with images (MMMU)

Whether Scout is the right local vision model depends on memory: it is the only one on this page that needs 80 GB. For the alternatives that fit a single card, see best local vision models and the guide to local vision tasks (OCR, invoices, alt-text).

Licence: the Llama 4 Community License

Llama 4 is released under the Llama 4 Community License Agreement (effective 5 April 2025). Meta describes it as a custom commercial licence; it is not an open-source licence such as MIT or Apache 2.0. The terms that matter in practice:

  • Commercial use is permitted, along with modification and redistribution.
  • If you distribute the model, a derivative, or a product or service that contains it, you must include the licence and “prominently display ‘Built with Llama’” on a related website, interface, blog post, about page or documentation.
  • A model you train or fine-tune from it and distribute must “include ‘Llama’ at the beginning of any such AI model name”.
  • “If, on the Llama 4 version release date, the monthly active users of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700 million monthly active users in the preceding calendar month, you must request a license from Meta.”
  • Use must comply with the Llama 4 Acceptable Use Policy, and the card lists use in languages or capabilities beyond the 12 supported languages as out of scope.

The licence text as published on GitHub, on Meta’s developer site and in the Hugging Face access prompt was checked on 15 October 2026 and contains no clause restricting use by region. This is a summary, not legal advice; read the licence before building a product on it. Other model licences are compared in LLM licences for commercial use.

Where Scout fits, and where it does not

Long documents in one window

Whole codebases, contracts or books in context without chunking, if you can afford the cache: 128K tokens is 8–26 GB on top of the weights, 1M tokens is 53–206 GB.

Documents and charts as images

DocVQA 94.4 and ChartQA 88.8 on Meta’s card are the strongest rows the model has; scanned forms, plots and screenshots are the intended input.

Multilingual work

Twelve supported languages including Arabic, Hindi, Indonesian, Tagalog, Thai and Vietnamese, which the Llama 3.1 list did not include; MGSM 90.6.

Not for a single consumer card

If you have 24 or 32 GB, a dense model such as Llama 3.3 70B at 2-bit or a smaller MoE such as GPT-OSS is the practical choice; Scout’s smallest file is 29 GB before any context.

Advanced setup

Custom Modelfile

Bake a larger context and a system prompt into a named model so you do not set them every session. The num_ctx value is the one to size against the cache table above.

# Llama 4 Scout Modelfile
FROM llama4:scout

PARAMETER temperature 0.2
PARAMETER top_p 0.9
PARAMETER num_ctx 65536

SYSTEM """You are a precise document analyst. When given images
or text, extract key information accurately. Cite specific
sections. Be thorough but concise."""
ollama create scout-analyst -f Modelfile
ollama run scout-analyst

Smaller builds with llama.cpp (48 GB)

Ollama carries only Q4_K_M, Q8_0 and fp16. For a 48 GB setup, download one of the 2-bit files from the unsloth repository linked in the hardware section and load it directly; the vision projector is a separate 1.75 GB file.

# Files from huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF
#   Llama-4-Scout-17B-16E-Instruct-UD-IQ2_XXS.gguf   37.4 GB
#   mmproj-F16.gguf                                    1.75 GB (image input)

./llama-cli -m Llama-4-Scout-17B-16E-Instruct-UD-IQ2_XXS.gguf \
  -ngl 99 -c 8192 --temp 0.3 -p "Summarise the attached document"

RAG with long context

Scout’s window reduces the need for RAG chunking: a document that fits in 128K tokens can simply go in the prompt. When a corpus is still too large, pair it with a dedicated retriever such as Nomic Embed Text and hand Scout only the retrieved passages, which keeps the cache in the single-digit gigabytes.

# 32K context: about 70 GB total at Q4_K_M
OLLAMA_CONTEXT_LENGTH=32768 ollama serve

# 128K context: 73–92 GB total depending on how the runtime caches the chunked layers
OLLAMA_CONTEXT_LENGTH=131072 ollama serve

Frequently asked questions

How many parameters does Llama 4 Scout have?

109B in total and 17B active per token, per Meta’s model card; the Hugging Face API counts 108,641,793,536 in the BF16 weights. The 16 experts are each 8,192 wide and one is used per token, alongside a shared 16,384-wide block.

Is the 10M context window real?

Yes, officially: the card says 10M, the configuration sets 10,485,760 positions, and Ollama lists the tags at 10M. Using it is another matter; the key-value cache for 10M tokens is at least about 517 GB by the arithmetic above, and over 2 TB if the runtime caches every layer in full.

Can I run Llama 4 Scout on an RTX 4090?

Not entirely in VRAM: the smallest file is 29 GB and a 24 GB card cannot hold it. Ollama and llama.cpp will split the model with system RAM, so a 4090 plus 64 GB of RAM loads the 67 GB default, with most experts in RAM. This site has not measured the speed of that configuration.

What VRAM does Llama 4 Scout need?

About 68 GB at Q4_K_M with an 8K context (65.4 GB file + 1.6 GB cache + buffers), so an 80 GB card or a 96 GB Mac. The 2-bit builds need 40–45 GB, the Q8_0 about 117 GB, and the BF16 original about 218 GB. All arithmetic from published file sizes and the configuration, not measurements.

What is the difference between Scout and Maverick?

Both have 17B active parameters. Scout has 16 experts and 109B total parameters with a 10M context; Maverick has 128 experts and 400B total with a 1M context. On Ollama, Maverick is a 245 GB download at Q4_K_M against Scout’s 67 GB. On Meta’s card Maverick scores higher on every row.

How do I run Llama 4 Scout with Ollama?

ollama run llama4:scout pulls the 67 GB Q4_K_M build. The only other Scout tags are 17b-scout-16e-instruct-q8_0 (117 GB) and 17b-scout-16e-instruct-fp16 (217 GB). Images can be passed through the API or a front end such as Open WebUI.

Is Scout better than Llama 3.3 70B?

On Meta’s instruct table, yes on MMLU Pro and GPQA Diamond, level on LiveCodeBench and MGSM, and it adds images and a longer window. It needs 22 GB more memory at 4-bit, which on a 48 GB rig means dropping to a 2-bit build.

Sources

Build Real AI on Your Machine

RAG, agents, NLP, vision, and MLOps - chapters across 25 courses that take you from reading about AI to building AI.

🎯
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life — Lifetime $149 $599, pay once
Barsha Mohapatra

Written by

Barsha Mohapatra

Founder and Editor, Local AI Master · Founder, Little AI Master

Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.

More on AI Models Directory
See the full AI Models Directory guide.
📚
Free · no account required

Grab the AI Starter Kit — career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

🎯
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses — RAG, agents, fine-tuning — all running locally. First chapter free, no card.

Or own it for life — Lifetime $149 $599, pay once
Free Tools & Calculators