Mistral AI logo

Codestral

Mistral AIOpen WeightsVerified

Mistral AI's first-ever code model. An open-weight generative AI model explicitly designed for code generation tasks. Trained on a diverse dataset of 80+ programming languages including Python, Java, C, C++, JavaScript, Bash, Swift, and Fortran. Helps developers write and interact with code through shared instruction and completion API endpoints.

2024-05-29
22B
Decoder-only Transformer
Mistral AI Non-Production License

Specifications

Parameters
22B
Architecture
Decoder-only Transformer
License
Mistral AI Non-Production License
Context Window
32,768 tokens
Type
text
Modalities
text

Benchmark Scores

Evaluates code generation capabilities by asking models to complete Python functions based on docstr...

view all (+2)

Advanced Specifications

Model Family
Codestral
API Access
Available
Chat Interface
Available
Multilingual Support
Yes
Hardware Support
CUDACPU

Capabilities & Limitations

Capabilities
code generationcode completionfill-in-the-middletest generationmulti-language programmingfunction completionrepository-level code completionSQL generationcode understanding
Known Limitations
Non-production license for free useCommercial use requires separate license
Notable Use Cases
IDE integrationcoding assistantautomated test generationcode completionrepository analysis
Function Calling Support
Yes
Tool Use Support
Yes

Related Models