alt.freeweights.mistral / Devstral-Small-2505
From: mistralai <huggingface.co/mistralai>Newsgroups: alt.freeweights.mistralSubject:

Devstral-Small-2505

Date: 2026-11-15Commit: c2a9d81Signed: 2DC28CC7B26A283B ✓

Model with 23.6B parameters. Safetensors weights, 94.3 GB in all. Published by mistralai under Apache-2.0.

23.6B params94.3GBDevstral-Small-2505safetensorspermissive
FactsParams23.6BSize94.3 GBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get mistralai/Devstral-Small-2505
# manifest sha256 f498984de23b… · 94.3 GB · 29 files
$ fw verify ./Devstral-Small-2505 mistralai/Devstral-Small-2505
From sourceHosted (signed)mistralai/Devstral-Small-2505Last check: 2026-11-15 03:28 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Mistral-Small-3.1-24B-Instruct-2503.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
94.3 GB
Weights
47.1 GB (safetensors)
Parameters
23.6B
Formats
safetensors
Task
not tagged
License
Apache-2.0 (permissive)
Files
29, each with a sha256
Publisher
mistralai
Added
2026-11-15
Section
alt.freeweights.mistral
Lineage

Original release from the publisher.

Base model: mistralai/Mistral-Small-3.1-24B-Instruct-2503

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:28 UTCpassed

Model card

From the publisher at commit c2a9d81. Shown as plain text with links; images open at the publisher.

Devstral Small 1.0#

Devstral is an agentic LLM for software engineering tasks built under a collaboration between Mistral AI and All Hands AI 🙌. Devstral excels at using tools to explore codebases, editing multiple files and power software engineering agents. The model achieves remarkable performance on SWE-bench which positionates it as the #1 open source model on this benchmark.

It is finetuned from Mistral-Small-3.1, therefore it has a long context window of up to 128k tokens. As a coding agent, Devstral is text-only and before fine-tuning from Mistral-Small-3.1 the vision encoder was removed.

For enterprises requiring specialized capabilities (increased context, domain-specific knowledge, etc.), we will release commercial models beyond what Mistral AI contributes to the community.

Learn more about Devstral in our blog post.

Key Features:#

  • Agentic coding: Devstral is designed to excel at agentic coding tasks, making it a great choice for software engineering agents.
  • lightweight: with its compact size of just 24 billion parameters, Devstral is light enough to run on a single RTX 4090 or a Mac with 32GB RAM, making it an appropriate model for local deployment and on-device use.
  • Apache 2.0 License: Open license allowing usage and modification for both commercial and non-commercial purposes.
  • Context Window: A 128k context window.
  • Tokenizer: Utilizes a Tekken tokenizer with a 131k vocabulary size.

Benchmark Results#

SWE-Bench#

Devstral achieves a score of 46.8% on SWE-Bench Verified, outperforming prior open-source SoTA by 6%.

ModelScaffoldSWE-Bench Verified (%)
DevstralOpenHands Scaffold46.8
GPT-4.1-miniOpenAI Scaffold23.6
Claude 3.5 HaikuAnthropic Scaffold40.6
SWE-smith-LM 32BSWE-agent Scaffold40.2

When evaluated under the same test scaffold (OpenHands, provided by All Hands AI 🙌), Devstral exceeds far larger models such as Deepseek-V3-0324 and Qwen3 232B-A22B.

Image: SWE Benchmark

Usage#

We recommend to use Devstral with the OpenHands scaffold. You can use it either through our API or by running locally.

API#

Follow these instructions to create a Mistral account and get an API key.

Then run these commands to start the OpenHands docker container.

export MISTRAL_API_KEY=<MY_KEY>

docker pull docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik

mkdir -p ~/.openhands-state && echo '{"language":"en","agent":"CodeActAgent","max_iterations":null,"security_analyzer":null,"confirmation_mode":false,"llm_model":"mistral/devstral-small-2505","llm_api_key":"'$MISTRAL_API_KEY'","remote_runtime_resource_factor":null,"github_token":null,"enable_default_condenser":true}' > ~/.openhands-state/settings.json

docker run -it --rm --pull=always \
    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik \
    -e LOG_ALL_EVENTS=true \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v ~/.openhands-state:/.openhands-state \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app \
    docker.all-hands.dev/all-hands-ai/openhands:0.39
Local inference#

The model can also be deployed with the following libraries:

Launch a server to deploy Devstral Small 1.0#

Make sure you launched an OpenAI-compatible server such as vLLM or Ollama as described above. Then, you can use OpenHands to interact with Devstral Small 1.0.

In the case of the tutorial we spineed up a vLLM server running the command:

vllm serve mistralai/Devstral-Small-2505 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 2

The server address should be in the following format: http://<your-server-url>:8000/v1

Launch OpenHands#

You can follow installation of OpenHands here.

The easiest way to launch OpenHands is to use the Docker image:

docker pull docker.all-hands.dev/all-hands-ai/runtime:0.38-nikolaik

docker run -it --rm --pull=always \
    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.38-nikolaik \
    -e LOG_ALL_EVENTS=true \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v ~/.openhands-state:/.openhands-state \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app \
    docker.all-hands.dev/all-hands-ai/openhands:0.38

Then, you can access the OpenHands UI at http://localhost:3000.

Connect to the server#

When accessing the OpenHands UI, you will be prompted to connect to a server. You can use the advanced mode to connect to the server you launched earlier.

Fill the following fields:

  • Custom Model: openai/mistralai/Devstral-Small-2505
  • Base URL: http://<your-server-url>:8000/v1
  • API Key: token (or any other token you used to launch the server if any)
Use OpenHands powered by Devstral#

Now you're good to use Devstral Small inside OpenHands by starting a new conversation. Let's build a To-Do list app.

To-Do list app</summary

  1. Let's ask Devstral to generate the app with the following prompt:
Build a To-Do list app with the following requirements:
- Built using FastAPI and React.
- Make it a one page app that:
   - Allows to add a task.
   - Allows to delete a task.
   - Allows to mark a task as done.
   - Displays the list of tasks.
- Store the tasks in a SQLite database.

Image: Agent prompting

  1. Let's see the result

You should see the agent construct the app and be able to explore the code it generated.

If it doesn't do it automatically, ask Devstral to deploy the app or do it manually, and then go the front URL deployment to see the app.

Image: Agent working Image: App UI

  1. Iterate

Now that you have a first result you can iterate on it by asking your agent to improve it. For example, in the app generated we could click on a task to mark it checked but having a checkbox would improve UX. You could also ask it to add a feature to edit a task, or to add a feature to filter the tasks by status.

Enjoy building with Devstral Small and OpenHands!

We recommend using this model with the vLLM library to implement production-ready inference pipelines.

Installation

Make sure you install vLLM >= 0.8.5:

pip install vllm --upgrade

Doing so should automatically install mistral_common >= 1.5.5.

To check:

python -c "import mistral_common; print(mistral_common.__version__)"

You can also make use of a ready-to-go docker image or on the docker hub.

Server#

We recommand that you use Devstral in a server/client setting.

  1. Spin up a server:
vllm serve mistralai/Devstral-Small-2505 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 2
  1. To ping the client you can use a simple Python snippet.
import requests
import json
from huggingface_hub import hf_hub_download


url = "http://<your-server-url>:8000/v1/chat/completions"
headers = {"Content-Type": "application/json", "Authorization": "Bearer token"}

model = "mistralai/Devstral-Small-2505"

def load_system_prompt(repo_id: str, filename: str) -> str:
    file_path = hf_hub_download(repo_id=repo_id, filename=filename)
    with open(file_path, "r") as file:
        system_prompt = file.read()
    return system_prompt

SYSTEM_PROMPT = load_system_prompt(model, "SYSTEM_PROMPT.txt")

messages = [
    {"role": "system", "content": SYSTEM_PROMPT},
    {
        "role": "user",
        "content": [
            {
                "type": "text",
                "text": "<your-command>",
            },
        ],
    },
]

data = {"model": model, "messages": messages, "temperature": 0.15}

response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.json()["choices"][0]["message"]["content"])
Mistral-inference#

We recommend using mistral-inference to quickly try out / "vibe-check" Devstral.

Install#

Make sure to have mistral_inference >= 1.6.0 installed.

pip install mistral_inference --upgrade
Download#
from huggingface_hub import snapshot_download
from pathlib import Path

mistral_models_path = Path.home().joinpath('mistral_models', 'Devstral')
mistral_models_path.mkdir(parents=True, exist_ok=True)

snapshot_download(repo_id="mistralai/Devstral-Small-2505", allow_patterns=["params.json", "consolidated.safetensors", "tekken.json"], local_dir=mistral_models_path)
Python#

You can run the model using the following command:

mistral-chat $HOME/mistral_models/Devstral --instruct --max_tokens 300

You can then prompt it with anything you'd like.

Transformers#

To make the best use of our model with transformers make sure to have installed mistral-common >= 1.5.5 to use our tokenizer.

pip install mistral-common --upgrade

Then load our tokenizer along with the model and generate:

import torch

from mistral_common.protocol.instruct.messages import (
    SystemMessage, UserMessage
)
from mistral_common.protocol.instruct.request import ChatCompletionRequest
from mistral_common.tokens.tokenizers.mistral import MistralTokenizer
from huggingface_hub import hf_hub_download
from transformers import AutoModelForCausalLM

def load_system_prompt(repo_id: str, filename: str) -> str:
    file_path = hf_hub_download(repo_id=repo_id, filename=filename)
    with open(file_path, "r") as file:
        system_prompt = file.read()
    return system_prompt

model_id = "mistralai/Devstral-Small-2505"
tekken_file = hf_hub_download(repo_id=model_id, filename="tekken.json")
SYSTEM_PROMPT = load_system_prompt(model_id, "SYSTEM_PROMPT.txt")

tokenizer = MistralTokenizer.from_file(tekken_file)

model = AutoModelForCausalLM.from_pretrained(model_id)

tokenized = tokenizer.encode_chat_completion(
    ChatCompletionRequest(
        messages=[
            SystemMessage(content=SYSTEM_PROMPT),
            UserMessage(content="<your-command>"),
        ],
    )
)

output = model.generate(
    input_ids=torch.tensor([tokenized.tokens]),
    max_new_tokens=1000,
)[0]

decoded_output = tokenizer.decode(output[len(tokenized.tokens):])
print(decoded_output)
LMStudio#

Download the weights from huggingface:

pip install -U "huggingface_hub[cli]"
huggingface-cli download \
"mistralai/Devstral-Small-2505_gguf" \
--include "devstralQ4_K_M.gguf" \
--local-dir "mistralai/Devstral-Small-2505_gguf/"

You can serve the model locally with LMStudio.

  • Download LM Studio and install it
  • Install lms cli ~/.lmstudio/bin/lms bootstrap
  • In a bash terminal, run lms import devstralQ4_K_M.gguf in the directory where you've downloaded the model checkpoint (e.g. mistralai/Devstral-Small-2505_gguf)
  • Open the LMStudio application, click the terminal icon to get into the developer tab. Click select a model to load and select Devstral Q4 K M. Toggle the status button to start the model, in setting toggle Serve on Local Network to be on.
  • On the right tab, you will see an API identifier which should be devstralq4_k_m and an api address under API Usage. Keep note of this address, we will use it in the next step.

Launch Openhands You can now interact with the model served from LM Studio with openhands. Start the openhands server with the docker

docker pull docker.all-hands.dev/all-hands-ai/runtime:0.38-nikolaik
docker run -it --rm --pull=always \
	-e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.38-nikolaik \
	-e LOG_ALL_EVENTS=true \
	-v /var/run/docker.sock:/var/run/docker.sock \
	-v ~/.openhands-state:/.openhands-state \
	-p 3000:3000 \
	--add-host host.docker.internal:host-gateway \
	--name openhands-app \
	docker.all-hands.dev/all-hands-ai/openhands:0.38

Click “see advanced setting” on the second line. In the new tab, toggle advanced to on. Set the custom model to be mistral/devstralq4_k_m and Base URL the api address we get from the last step in LM Studio. Set API Key to dummy. Click save changes.

llama.cpp#

Download the weights from huggingface:

pip install -U "huggingface_hub[cli]"
huggingface-cli download \
"mistralai/Devstral-Small-2505_gguf" \
--include "devstralQ4_K_M.gguf" \
--local-dir "mistralai/Devstral-Small-2505_gguf/"

Then run Devstral using the llama.cpp CLI.

./llama-cli -m Devstral-Small-2505_gguf/devstralQ4_K_M.gguf -cnv
Ollama#

You can run Devstral using the Ollama CLI.

ollama run devstral
Example: Understanding Test Coverage of Mistral Common#

We can start the OpenHands scaffold and link it to a repo to analyze test coverage and identify badly covered files. Here we start with our public mistral-common repo.

After the repo is mounted in the workspace, we give the following instruction

Check the test coverage of the repo and then create a visualization of test coverage. Try plotting a few different types of graphs and save them to a png.

The agent will first browse the code base to check test configuration and structure.

Image: Repo Exploration

Then it sets up the testing dependencies and launches the coverage test:

Image: Repo Exploration

Finally, the agent writes necessary code to visualize the coverage. Image: Repo Exploration

At the end of the run, the following plots are produced: Image: Repo Exploration Image: Repo Exploration Image: Repo Exploration

Files

29 files · 94.3 GBWeights 47.1 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes2.51 KBf79d5229cd30a03eddf0b0c1d983188d26322a31e04ce96524dacf7d27dff141
README.md16.0 KB913374e3efa53dc59913483e4f8c9a385dab15e78f802bca57a39ad9f5721df3
SYSTEM_PROMPT.txt5.65 KB5725afc40acd80cbeefba61e41cf50eb7924f6ed2fe6aec2dc6fa0e9f2c396d1
assets/images_example/example_mistral_common_1.png148 KBae2a75203fe94099fd2705196320407c15b5054364d2cede377810eec7080890
assets/images_example/example_mistral_common_2.png151 KB36b9c05118f205d25099582b52ec654fb76ecb13b62ebc4bcc5437167f38f2f6
assets/images_example/example_mistral_common_3.png147 KB648b3927fbbe330ecf88151c62c18142c07281891f7cf1fc75c3d9ad35862b92
assets/images_example/example_mistral_common_res_1.png356 KB4f73c29c89582f856d07920534fb9fb4916fe42e8a4dfe8f6cb5ae05870f6f8f
assets/images_example/example_mistral_common_res_2.png213 KBee919cb5db996ee42202d7f22b15f92add75267fbd88f4ad618328a0ae064a95
assets/images_example/example_mistral_common_res_3.png321 KBbf3b2513d1d28374986701f7ff031757b30f965f2419e0a88f188964830c371f
assets/swe_bench.png113 KBccfcfc1b8546fb57a82a99a37e55757ddc971f3b8126701811a81cd63d146d10
assets/tuto_open_hands/agent_prompting.png394 KBea9bed0cb863ebfe053eabc8972221a21364ab92fc391122f6bdca6b6287e649
assets/tuto_open_hands/agent_working.png819 KBa366d467288a27771c57f1377dcbb1c17e37d2e9264dcad1eb72316821caa792
assets/tuto_open_hands/app_ui.png98.6 KBaf6413b83a53743671f189abc2fa0fe0ace7eebac806ae329e43847168a76ae8
config.json620 B1cc8c0ff7a35a6dd6a3995eea5b6d480691636841982f1d19d303239da6c86e3
consolidated.safetensors47.1 GBfe2f91eb9c3a67950aad3fc9815ba00df03e0d9c1fff2c29eb46cabcd7ed2706
generation_config.json111 B46a6e46680317fe06de9a5e1b2bcc4cf2965245b4994dab4600ba4be4860f1b8
model-00001-of-00010.safetensors4.78 GBd5a95f21b26446defbf9941a90eca66ef1126fe3ad472684e64915fcd3cd3a48
model-00002-of-00010.safetensors4.78 GBaf793cf024acc1fbd79f86543f25198698a5f58a647648e74372ae18e556a40a
model-00003-of-00010.safetensors4.78 GB0c7aee059abca71682d957992cdc37063026818956a95a4070e7269e720779b4
model-00004-of-00010.safetensors4.89 GB6cbabc3b9134a476a11bb0b038dc3bab9f3dee17f292be2639c2d7b10de89834
model-00005-of-00010.safetensors4.78 GBa32dfc5f6a38bab7cd799d1541f09b6d5190a48ad1fe17294067a96e9cbfb930
model-00006-of-00010.safetensors4.78 GBfaf2c20dfd89f05b6af3cc51d3ae6e1afed4e4ba762147bb700113e144a5a183
model-00007-of-00010.safetensors4.89 GBd3e5ecaa7b4f76b43f33fc22a2e2b66a375a91b1f38794d583c9079bca508e9d
model-00008-of-00010.safetensors4.78 GB00ac4543c5348ac3a7aba08411cb3de2cce4345ee6e71e3a2bf60568fb8bfb4a
model-00009-of-00010.safetensors4.78 GBb272515ecd53c27ec035cd0296aaef56743b15bf4a9282c9a38ad11f66066554
model-00010-of-00010.safetensors3.90 GBf3b3377cab6798c01557d48e2769508d3dc47bd6334a06c2b1f144f6f5d07ea7
model.safetensors.index.json29.9 KB549a19b2c46434730f1702db9c51710a9b29cdec823017f1a2e1523552e39092
params.json227 B6f855d1c4ab72ec81b88e95e9c6107afcb7f22699ceabfedd8a737456a6b4e29
tekken.json14.8 MBc4b90a968dbc67ef3975129d0b78a2e3cbb6bea340ab9205f22e8a0308b1ffc5
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c2a9d81a29 pinned now2026-11-15 03:28 UTC29 files · 94.3 GB

Use it

$ fw get mistralai/Devstral-Small-2505
# manifest sha256 f498984de23b… · 94.3 GB · 29 files
$ fw verify ./Devstral-Small-2505 mistralai/Devstral-Small-2505
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mistralai/Devstral-Small-2505.json --dir ./Devstral-Small-2505 $ python3 fw.py verify ./Devstral-Small-2505 ./mistralai__Devstral-Small-2505.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mistralai/Devstral-Small-2505 --revision c2a9d81a2989af566682b4cecc828c84556076c5 --local-dir ./Devstral-Small-2505

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
913374e3efa53dc59913483e4f8c9a385dab15e78f802bca57a39ad9f5721df3
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: mistralai <huggingface.co/mistralai>Newsgroups: alt.freeweights.mistralSubject: Devstral-Small-2505Date: 2026-11-15Commit: c2a9d81Signed: 2DC28CC7B26A283B ✓
Upstream
mistralai/Devstral-Small-2505
Pinned commit
c2a9d81a2989af566682b4cecc828c84556076c5
Manifest
Devstral-Small-2505.json · .minisig
Manifest sha256
f498984de23bfa92ace11b48a977a1feeed0deec4d56e94b1a8797cb5a58502a
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mistralai/Devstral-Small-2505.json $ curl -O https://freeweights.allternit.com/manifests/mistralai/Devstral-Small-2505.json.minisig $ minisign -Vm Devstral-Small-2505.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

mistralai/Mistral-Small-3.1-24B-Instruct-2503 · this model is a finetune of it

7 models in the catalog name this one as their parent.

Quantizations
7
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mistralai/Devstral-Small-2505
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Devstral-Small-2505.json. Provenance. Takedown history: none.

Variants

7 quantized or adapter builds of Devstral-Small-2505. Each has its own license check and page.

From: bartowski <huggingface.co/bartowski>Subject: alamios_Mistral-Small-3.1-DRAFT-0.5B-GGUF
From: microsoft <huggingface.co/microsoft>Subject: chatbench-mistral-7b
From: NousResearch <huggingface.co/NousResearch>Subject: DeepHermes-3-Mistral-24B-Preview
From: mistralai <huggingface.co/mistralai>Subject: Devstral-Small-2-24B-Instruct-2512
From: mlx-community <huggingface.co/mlx-community>Subject: Devstral-Small-2-24B-Instruct-2512-4bit
From: mlx-community <huggingface.co/mlx-community>Subject: Devstral-Small-2-24B-Instruct-2512-6bit