Baltor Get started

Models

pixtral-12b

By mistral-experimental. 12.7 billion parameters, a context window of 1,024,000 tokens and the licence apache-2.0.

Facts

Released
2024-09-13 the day the repository was first published on Hugging Face Hugging Face, read
Licence
apache-2.0 the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
12.7 billion counted from the safetensors weight files Hugging Face, read
Active parameters
Unknown
Knowledge cutoff
Unknown
Context window
  • 1,024,000 tokens the maximum position embeddings in the model configuration model configuration, read
Longest output
Unknown
Tool calling
Unknown
Structured output
Unknown
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

No source lists a price for this model. It may only run on your own hardware.

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
IQ2_S3.9 GiB5.8 GiB9.5 GiB
IQ2_M4.1 GiB6.1 GiB9.8 GiB
Q2_K4.5 GiB6.4 GiB10.2 GiB
IQ3_XXS4.6 GiB6.6 GiB10.3 GiB
IQ3_XS4.9 GiB6.9 GiB10.7 GiB
Q2_K_L5.1 GiB7.1 GiB10.8 GiB
Q3_K_S5.2 GiB7.2 GiB10.9 GiB
IQ3_M5.3 GiB7.3 GiB11.1 GiB
Q3_K_M5.7 GiB7.7 GiB11.4 GiB
Q3_K_L6.1 GiB8.2 GiB11.9 GiB
IQ4_XS6.3 GiB8.3 GiB12.1 GiB
Q4_06.6 GiB8.7 GiB12.4 GiB
IQ4_NL6.6 GiB8.7 GiB12.4 GiB
Q4_K_S6.6 GiB8.7 GiB12.5 GiB
Q3_K_XL6.7 GiB8.7 GiB12.5 GiB
Q4_K_M7.0 GiB9.1 GiB12.8 GiB
Q4_17.3 GiB9.4 GiB13.1 GiB
Q4_K_L7.4 GiB9.5 GiB13.3 GiB
Q5_K_S7.9 GiB10.1 GiB13.8 GiB
Q5_K_M8.1 GiB10.3 GiB14.0 GiB
Q5_K_L8.5 GiB10.7 GiB14.4 GiB
Q6_K9.4 GiB11.6 GiB15.3 GiB
Q6_K_L9.7 GiB11.9 GiB15.7 GiB
Q8_012.1 GiB14.5 GiB18.2 GiB
BF1622.8 GiB25.7 GiB29.5 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/bartowski/mistral-community_pixtral-12b-GGUF:Q4_0
  • LM Studio
    lms get bartowski/mistral-community_pixtral-12b-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf bartowski/mistral-community_pixtral-12b-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve mistral-experimental/pixtral-12b
  • SGLang
    sglang serve --model-path mistral-experimental/pixtral-12b --port 30000

Use it from your harness

Set up for Ollama with the model hf.co/bartowski/mistral-community_pixtral-12b-GGUF:Q4_0. 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": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "hf.co/bartowski/mistral-community_pixtral-12b-GGUF:Q4_0": {
          "name": "pixtral-12b"
        }
      }
    }
  }
}
  • 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": {
    "ollama": {
      "baseUrl": "http://localhost:11434/v1",
      "api": "openai-completions",
      "apiKey": "ollama",
      "models": [
        {
          "id": "hf.co/bartowski/mistral-community_pixtral-12b-GGUF:Q4_0"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Put this in a terminal:

codex --oss --local-provider ollama -m hf.co/bartowski/mistral-community_pixtral-12b-GGUF:Q4_0
  • 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="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export ANTHROPIC_MODEL="hf.co/bartowski/mistral-community_pixtral-12b-GGUF:Q4_0"
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 .

Published results

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