Baltor Get started

Models

Llama 4 Scout

By Meta. 108.6 billion parameters, a context window of 10,485,760 tokens and the licence other.

Facts

Released
2025-04-02 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
108.6 billion counted from the safetensors weight files Hugging Face, read
Active parameters
18.0 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
2024-08-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 10,485,760 tokens the maximum position embeddings in the model configuration model configuration, read
  • 1,310,720 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

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Deep Infra direct0.100 USD0.300 USD327,680 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.100 USD0.300 USD327,680OpenRouter endpoints, read
Novita through OpenRouter0.180 USD0.590 USD131,072OpenRouter endpoints, read
NovitaAI direct0.180 USD0.590 USD131,072 older than 30 days; check the providermodels.dev, read
Google through OpenRouter0.250 USD0.700 USD1,310,720OpenRouter 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.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
UD-TQ1_027.3 GiB30.6 GiB35.1 GiB
UD-IQ1_S30.2 GiB33.8 GiB38.3 GiB
UD-IQ1_M32.6 GiB36.2 GiB40.7 GiB
UD-IQ2_XXS34.8 GiB38.6 GiB43.1 GiB
UD-IQ2_M36.4 GiB40.2 GiB44.7 GiB
Q2_K36.8 GiB40.7 GiB45.2 GiB
Q2_K_L37.1 GiB40.9 GiB45.4 GiB
UD-Q2_K_XL39.5 GiB43.4 GiB47.9 GiB
UD-IQ3_XXS42.6 GiB46.7 GiB51.2 GiB
Q3_K_S43.5 GiB47.7 GiB52.2 GiB
UD-Q3_K_XL45.7 GiB49.9 GiB54.4 GiB
Q3_K_M48.2 GiB52.6 GiB57.1 GiB
IQ4_XS53.7 GiB58.4 GiB62.9 GiB
IQ4_NL56.8 GiB61.6 GiB66.1 GiB
Q4_057.0 GiB61.8 GiB66.3 GiB
Q4_K_S57.2 GiB62.1 GiB66.6 GiB
UD-Q4_K_XL57.7 GiB62.6 GiB67.1 GiB
Q4_K_M60.9 GiB65.9 GiB70.4 GiB
Q4_162.9 GiB68.1 GiB72.6 GiB
Q5_K_S69.2 GiB74.6 GiB79.1 GiB
Q5_K_M71.3 GiB76.9 GiB81.4 GiB
UD-Q5_K_XL73.7 GiB79.4 GiB83.9 GiB
Q6_K82.4 GiB88.5 GiB93.0 GiB
UD-Q6_K_XL87.6 GiB94.0 GiB98.5 GiB
Q8_0107 GiB114 GiB118 GiB
UD-Q8_K_XL119 GiB127 GiB132 GiB
BF16201 GiB213 GiB217 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF:Q4_0
  • LM Studio
    lms get unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve meta-llama/Llama-4-Scout-17B-16E-Instruct
  • SGLang
    sglang serve --model-path meta-llama/Llama-4-Scout-17B-16E-Instruct --port 30000

Use it from your harness

Set up for DeepInfra with the model meta-llama/Llama-4-Scout-17B-16E-Instruct. 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": {
    "deepinfra": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DeepInfra",
      "options": {
        "baseURL": "https://api.deepinfra.com/v1/openai",
        "apiKey": "{env:DEEPINFRA_TOKEN}"
      },
      "models": {
        "meta-llama/Llama-4-Scout-17B-16E-Instruct": {
          "name": "Llama 4 Scout",
          "limit": {
            "context": 10485760,
            "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": {
    "deepinfra": {
      "baseUrl": "https://api.deepinfra.com/v1/openai",
      "api": "openai-completions",
      "apiKey": "$DEEPINFRA_TOKEN",
      "models": [
        {
          "id": "meta-llama/Llama-4-Scout-17B-16E-Instruct"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and DeepInfra documents no Responses address. A gateway that offers one can sit in between.

  • 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://api.deepinfra.com/anthropic"
export ANTHROPIC_AUTH_TOKEN="$DEEPINFRA_TOKEN"
export ANTHROPIC_MODEL="meta-llama/Llama-4-Scout-17B-16E-Instruct"
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

  • NovitaAI, model meta-llama/llama-4-scout-17b-16e-instruct
  • OpenRouter, model meta-llama/llama-4-scout
  • Ollama, model hf.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF:Q4_0

Published results

These are results other people published. Baltor did not run them and does not rank models by them.