tech

Codestral

We introduce Codestral, our first-ever code model. Codestral is an open-weight generative AI model explicitly designed for code generation tasks. It helps developers write and interact with code through a shared instruction and completion API endpoint. As it masters code and English, it can be used to design advanced AI applications for software developers.

Codestral

TL;DR

  • Codestral is an open-weight generative AI model for code generation tasks.
  • It supports over 80 programming languages, including popular ones like Python, Java, C++, and JavaScript.
  • Codestral offers superior performance and lower latency compared to existing code generation models.
  • It features a 32k context window, outperforming competitors in long-range code generation evaluations.
  • The model can complete coding functions, write tests, and fill in partial code using a fill-in-the-middle mechanism.
  • Codestral is available under a Mistral AI Non-Production License for research and testing, with commercial licenses available on demand.
  • It can be accessed via a dedicated endpoint (codestral.mistral.ai) and the standard API endpoint (api.mistral.ai).
  • Integrations are available with application frameworks like LlamaIndex and LangChain, and IDEs like VSCode and JetBrains through partners such as Continue.dev and Tabnine.