Baltor Get started

Models

Llama 3.2 3B Instruct

By Meta. 3.2 billion parameters, a context window of 131,072 tokens and the licence llama3.2.

Facts

Released
2024-09-18 the day the repository was first published on Hugging Face Hugging Face, read
Licence
llama3.2 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
3.2 billion counted from the safetensors weight files Hugging Face, read
Active parameters
Unknown
Knowledge cutoff
2023-12-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 131,072 tokens the maximum position embeddings in the model configuration model configuration, read
  • 131,072 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 117,964 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes the chat template in the tokenizer configuration accepts tool definitions Hugging Face, read
  • No OpenRouter does not list 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 in, text out Hugging Face, read
Good for
No source names a use.

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
NovitaAI direct0.030 USD0.050 USD32,768 older than 30 days; check the providermodels.dev, read
NanoGPT direct0.031 USD0.049 USD131,072 older than 30 days; check the providermodels.dev, read
Kilo Gateway direct0.050 USD0.330 USD131,072 older than 30 days; check the providermodels.dev, read
OpenRouter direct0.050 USD0.330 USD131,072 older than 30 days; check the providermodels.dev, read
Parasail through OpenRouter0.050 USD0.330 USD131,072OpenRouter endpoints, read
Cloudflare through OpenRouter0.051 USD0.335 USD80,000OpenRouter endpoints, read
Pioneer direct0.100 USD0.335 USD131,072 older than 30 days; check the providermodels.dev, 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-IQ1_S0.8 GiB2.3 GiB4.9 GiB
UD-IQ1_M0.9 GiB2.3 GiB4.9 GiB
UD-IQ2_XXS1.0 GiB2.4 GiB5.0 GiB
UD-IQ2_M1.2 GiB2.6 GiB5.2 GiB
Q2_K1.3 GiB2.7 GiB5.3 GiB
Q2_K_L1.3 GiB2.7 GiB5.3 GiB
UD-IQ3_XXS1.3 GiB2.7 GiB5.3 GiB
UD-Q2_K_XL1.3 GiB2.7 GiB5.4 GiB
Q3_K_S1.4 GiB2.9 GiB5.5 GiB
Q3_K_M1.6 GiB3.0 GiB5.6 GiB
UD-Q3_K_XL1.6 GiB3.1 GiB5.7 GiB
IQ4_XS1.7 GiB3.2 GiB5.8 GiB
IQ4_NL1.8 GiB3.2 GiB5.9 GiB
Q4_01.8 GiB3.3 GiB5.9 GiB
Q4_K_S1.8 GiB3.3 GiB5.9 GiB
Q4_K_M1.9 GiB3.3 GiB6.0 GiB
UD-Q4_K_XL1.9 GiB3.4 GiB6.0 GiB
Q4_11.9 GiB3.4 GiB6.0 GiB
Q5_K_S2.1 GiB3.6 GiB6.2 GiB
Q5_K_M2.2 GiB3.6 GiB6.3 GiB
UD-Q5_K_XL2.2 GiB3.7 GiB6.3 GiB
Q6_K2.5 GiB4.0 GiB6.6 GiB
UD-Q6_K_XL2.8 GiB4.3 GiB6.9 GiB
Q8_03.2 GiB4.7 GiB7.3 GiB
F166.0 GiB7.7 GiB10.3 GiB
BF166.0 GiB7.7 GiB10.3 GiB

Start it with a local runtime

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

Use it from your harness

Set up for Kilo Gateway with the model meta-llama/llama-3.2-3b-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": {
    "kilo": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Kilo Gateway",
      "options": {
        "baseURL": "https://api.kilo.ai/api/gateway",
        "apiKey": "{env:KILO_API_KEY}"
      },
      "models": {
        "meta-llama/llama-3.2-3b-instruct": {
          "name": "Llama 3.2 3B Instruct",
          "limit": {
            "context": 131072,
            "output": 117964
          }
        }
      }
    }
  }
}
  • 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": {
    "kilo": {
      "baseUrl": "https://api.kilo.ai/api/gateway",
      "api": "openai-completions",
      "apiKey": "$KILO_API_KEY",
      "models": [
        {
          "id": "meta-llama/llama-3.2-3b-instruct"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Kilo Gateway 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

Claude Code sends Anthropic Messages requests, and Kilo Gateway documents no such address. A gateway that translates to that API can sit in between.

  • 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

  • NanoGPT, model meta-llama/llama-3.2-3b-instruct
  • NovitaAI, model meta-llama/llama-3.2-3b-instruct
  • OpenRouter, model meta-llama/llama-3.2-3b-instruct
  • Pioneer, model meta-llama/Llama-3.2-3B-Instruct
  • Ollama, model hf.co/unsloth/Llama-3.2-3B-Instruct-GGUF:Q4_0

Published results

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