Codestral 22B

MistralAI

mistral

Mistral AI's latest coding model, Codestral can handle both instructions and code completions with ease in over 80 programming languages.

Model info

Model

Codestral 22B

Author

MistralAI

Arch

mistral

Parameters

22B

Format

gguf

Size on disk

about 8.27 GB

Download and run Codestral 22B

Open in LM Studio to view download options

Download codestral-22b from the terminal

Download the model using lms — LM Studio's developer CLI.

lms get codestral-22b
If you don't have it yet, get it by running npx lmstudio install-cli

Call codestral-22b from your code

curl http://localhost:1234/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "codestral-22b",
    "messages": [
      { "role": "system", "content": "Always answer in rhymes." },
      { "role": "user", "content": "Introduce yourself." }
    ],
    "temperature": 0.7,
    "max_tokens": -1,
    "stream": true
  }'

Next Steps: Build! 🔨

Learn more