alt.freeweights.mistral / Devstral-Small-2507-unsloth-bnb-4bit
From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.mistralSubject:

Devstral-Small-2507-unsloth-bnb-4bit

Date: 2026-11-15Commit: 0578b9bSigned: 2DC28CC7B26A283B ✓

Text generation model with 23.6B parameters. Safetensors weights, 14.9 GB in all. Published by unsloth under Apache-2.0.

23.6B params14.9GBDevstral-Small-2507-unsloth-bnb-4bitsafetensorspermissive
FactsParams23.6BSize14.9 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/Devstral-Small-2507-unsloth-bnb-4bit
# manifest sha256 46b709faccf6… · 14.9 GB · 12 files
$ fw verify ./Devstral-Small-2507-unsloth-bnb-4bit unsloth/Devstral-Small-2507-unsloth-bnb-4bit
From sourceHosted (signed)unsloth/Devstral-Small-2507-unsloth-bnb-4bitLast check: 2026-11-15 04:55 UTC

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

Quantized of Devstral-Small-2507.

Works with

Overview

Size
14.9 GB
Weights
14.9 GB (safetensors)
Parameters
23.6B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
12, each with a sha256
Publisher
unsloth
Added
2026-11-15
Section
alt.freeweights.mistral
Lineage

Original release from the publisher.

Base model: mistralai/Devstral-Small-2507

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 04:55 UTCpassed

Model card

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

Note. You should use --jinja to enable the system prompt in llama.cpp.

Devstral 1.1, with tool-calling support.

Learn to run Devstral correctly - Read our Guide.

Unsloth Dynamic 2.0 achieves superior accuracy & outperforms other leading quants.

https://github.com/unslothai/unsloth/ https://discord.gg/unsloth https://docs.unsloth.ai/basics/devstral

✨ Run & Fine-tune Devstral 1.1 with Unsloth!#

Devstral Small 1.1#

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.

Updates compared to Devstral Small 1.0:

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 Small 1.1 achieves a score of 53.6% on SWE-Bench Verified, outperforming Devstral Small 1.0 by +6,8% and the second best state of the art model by +11.4%.

ModelAgentic ScaffoldSWE-Bench Verified (%)
Devstral Small 1.1OpenHands Scaffold53.6
Devstral Small 1.0OpenHands Scaffold46.8
GPT-4.1-miniOpenAI Scaffold23.6
Claude 3.5 HaikuAnthropic Scaffold40.6
SWE-smith-LM 32BSWE-agent Scaffold40.2
Skywork SWEOpenHands Scaffold38.0
DeepSWER2E-Gym Scaffold42.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>

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

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

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

The model can also be deployed with the following libraries:

Expand</summary

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

Installation

Make sure you install vLLM >= 0.9.1:

pip install vllm --upgrade

Also make sure to have installed mistral_common >= 1.7.0.

pip install mistral-common --upgrade

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.

Launch server

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

  1. Spin up a server:
vllm serve mistralai/Devstral-Small-2507 --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-2507"

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}

# Devstral Small 1.1 supports tool calling. If you want to use tools, follow this:
# tools = [ # Define tools for vLLM
#     {
#         "type": "function",
#         "function": {
#             "name": "git_clone",
#             "description": "Clone a git repository",
#             "parameters": {
#                 "type": "object",
#                 "properties": {
#                     "url": {
#                         "type": "string",
#                         "description": "The url of the git repository",
#                     },
#                 },
#                 "required": ["url"],
#             },
#         },
#     }
# ] 
# data = {"model": model, "messages": messages, "temperature": 0.15, "tools": tools} # Pass tools to payload.

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

Expand= 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-2507", allow_patterns=["params.json", "consolidated.safetensors", "tekken.json"], local_dir=mistral_models_path)

Chat

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#

Expand</summary

To make the best use of our model with transformers make sure to have installed mistral-common >= 1.7.0 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-2507"
SYSTEM_PROMPT = load_system_prompt(model_id, "SYSTEM_PROMPT.txt")


tokenizer = MistralTokenizer.from_hf_hub(model_id)
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)
LM Studio#

Expand</summary

Download the weights from either:

pip install -U "huggingface_hub[cli]"
huggingface-cli download \
"lmstudio-community/Devstral-Small-2507-GGUF" \ # or mistralai/Devstral-Small-2507_gguf
--include "Devstral-Small-2507-Q4_K_M.gguf" \
--local-dir "Devstral-Small-2507_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 Devstral-Small-2507-Q4_K_M.gguf in the directory where you've downloaded the model checkpoint (e.g. Devstral-Small-2507_gguf)
  • Open the LM Studio application, click the terminal icon to get into the developer tab. Click select a model to load and select Devstral Small 2507. 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 devstral-small-2507 and an api address under API Usage. Keep note of this address, this is used for OpenHands or Cline.
llama.cpp#

Expand</summary

Download the weights from huggingface:

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

Then run Devstral using the llama.cpp server.

./llama-server -m mistralai/Devstral-Small-2507_gguf/Devstral-Small-2507-Q4_K_M.gguf -c 0 # -c configure the context size, 0 means model's default, here 128k.
Launch a server to deploy Devstral Small 1.1#

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.1.

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

vllm serve mistralai/Devstral-Small-2507 --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.48-nikolaik

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

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-2507
  • Base URL: http://<your-server-url>:8000/v1
  • API Key: token (or any other token you used to launch the server if any)

See settings

Image: OpenHands Settings

Cline#
Launch a server to deploy Devstral Small 1.1#

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.1.

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

vllm serve mistralai/Devstral-Small-2507 --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 Cline#

You can follow installation of Cline here. Then you can configure the server address in the settings.

See settings

Image: Cline Settings

Examples#
OpenHands: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: mistral common coverage - prompt

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

Image: mistral common coverage - dependencies

Finally, the agent writes necessary code to visualize the coverage, export the results and save the plots to a png. Image: mistral common coverage - visualization

At the end of the run, the following plots are produced: Image: mistral common coverage - coverage distribution Image: mistral common coverage - coverage pie Image: mistral common coverage - coverage summary

and the model is able to explain the results: Image: mistral common coverage - navigate

Cline: build a video game#

First initialize Cline inside VSCode and connect it to the server you launched earlier.

We give the following instruction to builde the video game:

Create a video game that mixes Space Invaders and Pong for the web.

Follow these instructions:
- There are two players one at the top and one at the bottom. The players are controling a bar to bounce a ball.
- The first player plays with the keys "a" and "d", the second with the right and left arrows.
- The invaders are located at the center of the screen. They shoud look like the ones in Space Invaders. Their goal is to shoot on the players randomly. They cannot be destroyed by the ball that pass through them. This means that invaders never die.
- The players goal is to avoid shootings from the space invaders and send the ball to the edge of the over player.
- The ball bounces on the left and right edges.
- Once the ball touch one of the player's edge, the player loses.
- Once a player is touched 3 times or more by a shooting, the player loses.
- The player winning is the last one standing.
- Display on the UI, the number of times a player touched the ball, and the remaining health.

Image: space invaders pong - prompt

The agent will first create the game:

Image: space invaders pong - structure

Then it will explain how to launch the game:

Image: space invaders pong - task completed

Finally, the game is ready to be played:

Image: space invaders pong - game

Don't hesitate to iterate or give more information to Devstral to improve the game!

Files

12 files · 14.9 GBWeights 14.9 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md20.3 KB76cc6af837f4fd96b0099aee7c3ca3864658cc091aa41687dcb15490dafb4a4e
chat_template.jinja9.84 KB039a4710e2aabaa79e85a233fa3daa4fbc030a4a8dc218cb7f34fb0c4b8c13b1
config.json1.31 KB0eab27fd523bfc75194dfa44177c11772526012a297f72127b619bdd58e7e8dd
generation_config.json157 B23bb111c67ffb1abc8784e51affcca2a58dd16dbdae39651fe8cc35cfb7ca9f7
model-00001-of-00003.safetensors4.98 GB1a35ab01e7235d1d8db1257e08b7d565e8e2c32cc92b9bff6dc35be8159f0941
model-00002-of-00003.safetensors4.96 GB5128df49aee210dd2245d4199267dac23e90b43f17608cc8f944a041d0ac1f04
model-00003-of-00003.safetensors4.96 GB9843acd69cb82e7c6d6b4275fa59eeeda0cc466aeed4693a1f24b2c067f0cbb2
model.safetensors.index.json164 KBc5e03257423d1130518e6efc8d141a801815946255b1104d6e48a19c3dfefc24
special_tokens_map.json21.4 KBeea95589f0339b15d91e77ae59d303331d81b46b9006a32f857a078312146ac0
tokenizer.json17.1 MB23ad081f384b2bdb3c97f6e5461dfce52c1174c7328854a55006988f0fef9da7
tokenizer_config.json208 KB1fcf41744d4316fea6673aae34fdd271a42c30c1025af3cda5d4b6d7f51e181f
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0578b9b523 pinned now2026-11-15 04:55 UTC12 files · 14.9 GB

Use it

$ fw get unsloth/Devstral-Small-2507-unsloth-bnb-4bit
# manifest sha256 46b709faccf6… · 14.9 GB · 12 files
$ fw verify ./Devstral-Small-2507-unsloth-bnb-4bit unsloth/Devstral-Small-2507-unsloth-bnb-4bit
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/unsloth/Devstral-Small-2507-unsloth-bnb-4bit.json --dir ./Devstral-Small-2507-unsloth-bnb-4bit $ python3 fw.py verify ./Devstral-Small-2507-unsloth-bnb-4bit ./unsloth__Devstral-Small-2507-unsloth-bnb-4bit.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/Devstral-Small-2507-unsloth-bnb-4bit --revision 0578b9b52309df8ae455eb860a6cebe50dc891cd --local-dir ./Devstral-Small-2507-unsloth-bnb-4bit
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("unsloth/Devstral-Small-2507-unsloth-bnb-4bit", revision="0578b9b52309df8ae455eb860a6cebe50dc891cd") model = AutoModelForCausalLM.from_pretrained("unsloth/Devstral-Small-2507-unsloth-bnb-4bit", revision="0578b9b52309df8ae455eb860a6cebe50dc891cd", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve unsloth/Devstral-Small-2507-unsloth-bnb-4bit --revision 0578b9b52309df8ae455eb860a6cebe50dc891cd

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
76cc6af837f4fd96b0099aee7c3ca3864658cc091aa41687dcb15490dafb4a4e
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: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.mistralSubject: Devstral-Small-2507-unsloth-bnb-4bitDate: 2026-11-15Commit: 0578b9bSigned: 2DC28CC7B26A283B ✓
Upstream
unsloth/Devstral-Small-2507-unsloth-bnb-4bit
Pinned commit
0578b9b52309df8ae455eb860a6cebe50dc891cd
Manifest
Devstral-Small-2507-unsloth-bnb-4bit.json · .minisig
Manifest sha256
46b709faccf6d3254eb3184fb26076c5a7a402c465acdecb91faf35d920d08e6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:55 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/Devstral-Small-2507-unsloth-bnb-4bit.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/Devstral-Small-2507-unsloth-bnb-4bit.json.minisig $ minisign -Vm Devstral-Small-2507-unsloth-bnb-4bit.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/Devstral-Small-2507 · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/Devstral-Small-2507-unsloth-bnb-4bit
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-2507-unsloth-bnb-4bit.json. Provenance. Takedown history: none.
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