Llama 4 Maverick
By Meta. 401.6 billion parameters, a context window of 1,048,576 tokens and the licence other.
Facts
- Released
- 2025-04-01 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- other the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository, behind the maker's access form Hugging Face, read
- Parameters
- 401.6 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- Unknown
- Knowledge cutoff
- 2024-08-31 the knowledge cutoff OpenRouter lists OpenRouter, read
- Context window
- 1,048,576 tokens the maximum position embeddings in the model configuration model configuration, read
- 1,048,576 tokens the context length OpenRouter lists OpenRouter, read
- Longest output
- 16,384 tokens the largest output OpenRouter's first provider allows OpenRouter, read
- Tool calling
- Yes OpenRouter lists tools among the supported parameters OpenRouter, read
- Structured output
- Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
- Reasoning controls
- Unknown
- Inputs and outputs
- text, image in, text out Hugging Face, read
- Good for
- Vision: Hugging Face files it under image-text-to-text Hugging Face, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| DigitalOcean through OpenRouter | 0.188 USD | 0.652 USD | 128,000 | OpenRouter endpoints, read | |
| DeepInfra through OpenRouter | 0.200 USD | 0.800 USD | 1,048,576 | OpenRouter endpoints, read | |
| Novita through OpenRouter | 0.270 USD | 0.850 USD | 1,048,576 | OpenRouter endpoints, read | |
| Parasail through OpenRouter | 0.350 USD | 1.00 USD | 524,288 | OpenRouter endpoints, read | |
| Google through OpenRouter | 0.350 USD | 1.15 USD | 524,288 | OpenRouter endpoints, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| UD-TQ1_0 | 98.5 GiB | 105 GiB | 110 GiB |
| UD-IQ1_S | 112 GiB | 120 GiB | 125 GiB |
| UD-IQ1_M | 119 GiB | 127 GiB | 131 GiB |
| UD-IQ2_XXS | 126 GiB | 134 GiB | 139 GiB |
| UD-IQ2_M | 132 GiB | 140 GiB | 145 GiB |
| Q2_K | 136 GiB | 144 GiB | 149 GiB |
| Q2_K_L | 136 GiB | 145 GiB | 149 GiB |
| UD-Q2_K_XL | 142 GiB | 151 GiB | 156 GiB |
| UD-IQ3_XXS | 158 GiB | 168 GiB | 172 GiB |
| Q3_K_S | 161 GiB | 171 GiB | 175 GiB |
| UD-Q3_K_XL | 167 GiB | 178 GiB | 182 GiB |
| Q3_K_M | 178 GiB | 189 GiB | 193 GiB |
| IQ4_XS | 200 GiB | 212 GiB | 216 GiB |
| IQ4_NL | 210 GiB | 223 GiB | 227 GiB |
| Q4_0 | 211 GiB | 224 GiB | 228 GiB |
| Q4_K_S | 212 GiB | 225 GiB | 229 GiB |
| UD-Q4_K_XL | 216 GiB | 229 GiB | 234 GiB |
| Q4_K_M | 226 GiB | 239 GiB | 244 GiB |
| Q4_1 | 233 GiB | 247 GiB | 252 GiB |
| Q5_K_S | 257 GiB | 272 GiB | 276 GiB |
| Q5_K_M | 265 GiB | 280 GiB | 285 GiB |
| UD-Q5_K_XL | 267 GiB | 283 GiB | 287 GiB |
| Q6_K | 306 GiB | 324 GiB | 328 GiB |
| UD-Q6_K_XL | 318 GiB | 336 GiB | 340 GiB |
| Q8_0 | 397 GiB | 418 GiB | 423 GiB |
| UD-Q8_K_XL | 428 GiB | 452 GiB | 456 GiB |
| BF16 | 746 GiB | 786 GiB | 790 GiB |
Start it with a local runtime
- Ollama
ollama run hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_0 - LM Studio
lms get unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF lms server start - llama.cpp server
llama-server -hf unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_0 --jinja - vLLM
vllm serve meta-llama/Llama-4-Maverick-17B-128E-Instruct - SGLang
sglang serve --model-path meta-llama/Llama-4-Maverick-17B-128E-Instruct --port 30000
Use it from your harness
Set up for OpenRouter with the model meta-llama/llama-4-maverick. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openrouter": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenRouter",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKey": "{env:OPENROUTER_API_KEY}"
},
"models": {
"meta-llama/llama-4-maverick": {
"name": "Llama 4 Maverick",
"limit": {
"context": 1048576,
"output": 16384
}
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"openrouter": {
"baseUrl": "https://openrouter.ai/api/v1",
"api": "openai-completions",
"apiKey": "$OPENROUTER_API_KEY",
"models": [
{
"id": "meta-llama/llama-4-maverick"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Put this in ~/.codex/config.toml:
model = "meta-llama/llama-4-maverick"
model_provider = "openrouter"
[model_providers.openrouter]
name = "OpenRouter"
base_url = "https://openrouter.ai/api/v1"
env_key = "OPENROUTER_API_KEY"- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_MODEL="meta-llama/llama-4-maverick"
claude- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- Ollama, model
hf.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF:Q4_0
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by meta-llama Hugging Face, read
- Artificial Analysis Coding Index: 16.3 published by Artificial Analysis OpenRouter, read
- Artificial Analysis Agentic Index: 0.6 published by Artificial Analysis OpenRouter, read
Sources of this page
- huggingface.co/api/models/meta-llama/Llama-4-Maverick-17B-128E-Instruct, read
- huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct/raw/main/config.json, read
- huggingface.co/api/models/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main, read
- openrouter.ai/api/v1/models/meta-llama/llama-4-maverick-17b-128e-instruct/endpoints, read
- openrouter.ai/api/v1/models, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.