Mistral AI Unveils Codestral: A Large Language Model for Developers

Mistral AI debuts Codestral, a large language model optimized for software development tasks, amid rumors of a new funding round.
Mistral AI Unveils Codestral: A Large Language Model for Developers

Mistral AI Unveils Codestral: A Large Language Model for Developers

Artificial intelligence startup Mistral AI has debuted Codestral, a large language model optimized for software development tasks. The launch comes amid rumors that the company is in the process of raising a sizable new funding round. Earlier this month, sources told Wall Street Journal that Mistral is seeking $600 million from investors at a $6 billion valuation.

Understanding Codestral

Codestral understands more than 80 programming languages, including high-level languages such as Python that automate certain coding tasks to improve developer productivity. The model can also write software in several low-level syntaxes, which enable programmers to more directly interact with the underlying hardware. This feature is conducive to tasks such as optimizing programs’ performance but comes with a steep learning curve.

Codestral’s capabilities extend to a range of coding tasks.

Codestral’s Capabilities

Developers can upload a snippet of code and have the model explain what it does. Additionally, Codestral is capable of generating new code based on natural language instructions. The model can function as a kind of autocomplete tool and continue a snippet of code that a developer has started writing. It’s also capable of modifying components of an application that are already complete. A developer could, for example, ask Codestral to change the middle line of a code snippet written by a colleague.

Codestral can automatically scan code for flaws, speeding up the testing process.

Easing the Testing Process

Another task that the LLM promises to ease is the process of testing newly created software for bugs. Some bugs prevent an application from loading, while others only emerge when users perform a specific sequence of actions in the program’s interface. The latter type of issue can be highly challenging to detect using manual troubleshooting methods. According to Mistral, developers can use Codestral to automatically scan their code for flaws and thereby speed up the process.

Codestral’s Performance

Codestral features 22 billion parameters. In an internal evaluation, Mistral compared it against three other open-source LLMs, including Meta Platforms Inc.’s Llama 3 70B, which includes more than three times as many parameters. Codestral proved more adept than all three models at Python programming tasks and achieved the second highest score in a test that assessed their SQL prowess.

Codestral’s performance in Python programming tasks.

Availability

Codestral is available under an open-source license for research and testing purposes. Organizations that wish to use the model in commercial software projects can access it through a cloud-based application programming interface provided by Mistral.

Codestral is available under an open-source license for research and testing purposes.