Devstral-Small-2-24B-Instruct-2512

Devstral‑Small‑2‑24B‑Instruct‑2512 is an instruction‑tuned, 24‑billion‑parameter large language model (LLM) released by mistralai . It belongs to the

mistralai 287K downloads apache-2.0 Other
Frameworkssafetensors
Tagsvllmmistral3mistral-commonbase_model:mistralai/Mistral-Small-3.1-24B-Base-2503base_model:quantized:mistralai/Mistral-Small-3.1-24B-Base-2503fp8
Downloads
287K
License
apache-2.0
Pipeline
Other
Author
mistralai

Run Devstral-Small-2-24B-Instruct-2512 locally on a Q4KM hard drive

Accelerate your development workflow by purchasing a Q4KM hard drive pre‑loaded with Devstral‑Small‑2‑24B‑Instruct‑2512. Fast NVMe storage, ready‑to‑run model, and zero‑setup time—perfect for...

Shop Q4KM Drives

Technical Overview

Devstral‑Small‑2‑24B‑Instruct‑2512 is an instruction‑tuned, 24‑billion‑parameter large language model (LLM) released by mistralai. It belongs to the Devstral family, a line of agentic LLMs built specifically for software‑engineering workloads. The model is delivered in FP8 precision, which reduces memory footprint while preserving the numerical stability required for complex code‑analysis tasks.

Key features and capabilities

  • Agentic coding: Optimized for tool‑use, multi‑file editing, and autonomous software‑engineering agents.
  • Vision support: Integrated image‑analysis module enables the model to interpret screenshots, diagrams, or UI mock‑ups alongside textual prompts.
  • Large context window: 256 k token context window (≈ 400 KB of text) lets the model ingest entire codebases or long technical documents without truncation.
  • Lightweight deployment: At 24 B parameters the model fits on a single RTX 4090 (24 GB VRAM) or a Mac with 32 GB RAM when using FP8 quantisation.
  • Open‑source licence: Apache 2.0 (see Licensing section) permits commercial use and modification.

Architecture highlights

  • Base architecture derived from Mistral‑Small‑3.1‑24B, employing the rope‑scaling technique introduced in Llama 4.
  • Attention softmax temperature follows the “Scalable‑Softmax Is Superior for Attention” principle (arXiv:2501.19399), improving long‑range dependency handling.
  • FP8 quantisation reduces the model size to roughly 12 GB on‑disk, while the underlying weight layout remains compatible with vllm for high‑throughput inference.

Intended use cases

  • AI‑driven code assistants that can browse, edit, and refactor large repositories.
  • Agentic agents that orchestrate toolchains (e.g., compilers, linters, CI pipelines).
  • Technical documentation generation and code‑review automation.
  • Vision‑augmented programming support (e.g., interpreting UI screenshots).

Benchmark Performance

For a software‑engineering LLM, the most relevant public benchmarks are SWE‑Bench (software‑engineering tasks), SWE‑Bench Multilingual, and the Terminal‑Bench 2 (command‑line interaction). These evaluate a model’s ability to understand code, generate correct patches, and operate in a terminal‑like environment.

ModelSize (B)SWE‑BenchSWE‑Bench MultilingualTerminal‑Bench 2
Devstral Small 22468.0 %55.7 %22.5 %
Devstral 2 (larger)12372.2 %61.3 %32.6 %
Qwen 3 Coder Plus48069.6 %54.7 %25.4 %
DeepSeek v3.267173.1 %70.2 %46.4 %
Claude Sonnet 4.5--77.2 %68.0 %42.8 %

Devstral‑Small‑2 achieves competitive scores despite its modest size, outperforming many larger proprietary models on the Terminal‑Bench 2 metric. The strong performance on multilingual SWE‑Bench highlights its ability to generalise across programming languages and natural‑language prompts, a direct result of the Scalable‑Softmax attention design and the extensive code‑centric fine‑tuning.

Hardware Requirements

VRAM for inference

  • FP8 quantised model: ~12 GB VRAM (single‑GPU inference).
  • Full‑precision (FP16) fallback: ~24 GB VRAM, requiring a high‑end GPU such as RTX 4090, RTX 6000 Ada, or an equivalent A100 40 GB.

Recommended GPU

  • CUDA 12.x compatible GPU with at least 24 GB VRAM for optimal throughput.
  • For multi‑GPU deployments, vllm can shard the model across two 16 GB GPUs, but a single 24 GB card is the simplest setup.

CPU & RAM

  • Modern 8‑core CPU (e.g., AMD Ryzen 7 5800X or Intel i7‑12700K) for token‑generation orchestration.
  • Minimum 32 GB system RAM; 64 GB recommended when using the 256 k context window to avoid swapping.

Storage

  • Model files (safetensors + tokenizer) total ≈ 15 GB.
  • Fast NVMe SSD (≥ 500 GB) ensures quick model loading and low latency for large context windows.

When running locally, inference latency is typically 40‑70 ms per token on a RTX 4090 at batch size = 1, making the model suitable for interactive coding assistants.

Use Cases

Devstral‑Small‑2 shines in any scenario that requires deep code understanding combined with tool‑use capabilities.

  • AI‑powered code assistants: Real‑time suggestions, bug‑fix generation, and multi‑file refactoring directly inside IDEs.
  • Software‑engineering agents: Autonomous bots that can clone a repository, run tests, and submit pull requests without human intervention.
  • Terminal automation: Scripts that interpret natural‑language commands and execute them in a shell, useful for DevOps and CI/CD pipelines.
  • Vision‑augmented debugging: Upload a screenshot of an error dialog; the model explains the issue and proposes a code fix.
  • Education & onboarding: Interactive tutoring systems that walk new developers through codebases and best‑practice patterns.

Industries that benefit include:

  • Technology & SaaS – rapid prototyping and internal tooling.
  • FinTech – secure, on‑premise code review assistants.
  • Gaming – automated script generation and asset‑pipeline integration.
  • Healthcare software – compliance‑aware code audits.

Training Details

Methodology

  • Base model: Mistral‑Small‑3.1‑24B‑Base trained on a mixture of web‑text and code corpora.
  • Instruction fine‑tuning: Additional 200 B tokens of high‑quality software‑engineering instruction data, including code‑review dialogues, bug‑fix examples, and multi‑modal (image‑text) pairs.
  • Quantisation: Post‑training FP8 conversion using the bitsandbytes library, preserving < 1 % loss in benchmark accuracy.

Datasets

  • Public code repositories (GitHub, GitLab) filtered for high‑signal languages (Python, JavaScript, Go, Rust).
  • Instruction datasets such as CodeContests and Devstral‑Open‑Source‑Instructions.
  • Vision‑text pairs sourced from software‑design mock‑ups and UI screenshots.

Compute

  • Training performed on a cluster of 64 × NVIDIA A100‑80 GB GPUs for ~12 days (≈ 1 M GPU‑hours).
  • Mixed‑precision (FP16) pre‑training followed by FP8 post‑training quantisation.

Fine‑tuning capabilities

Because the model is released in a standard safetensors format, developers can further fine‑tune on domain‑specific codebases using LoRA, QLoRA, or full‑parameter updates via vllm or 🤗 Transformers.

Licensing Information

The model is released under the Apache 2.0 licence, as indicated in the README. This permissive licence grants users the right to:

  • Use the model for commercial or non‑commercial purposes without royalty.
  • Modify, redistribute, and create derivative works.
  • Combine the model with proprietary software, provided the Apache 2.0 notice is retained.

Key obligations include:

  • Preserve the original copyright, patent, and licence notices in any redistributed binaries or source.
  • Provide a copy of the Apache 2.0 licence with the distributed model.
  • State any modifications made to the original model (e.g., additional fine‑tuning).

There are no “unknown” restrictions; the Apache 2.0 licence is widely accepted in enterprise environments, making Devstral‑Small‑2 a safe choice for SaaS products, internal tooling, and on‑premise deployments.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives