Share this article

Latest news

With KB5043178 to Release Preview Channel, Microsoft advises Windows 11 users to plug in when the battery is low

Copilot in Outlook will generate personalized themes for you to customize the app

Microsoft will raise the price of its 365 Suite to include AI capabilities

Death Stranding Director’s Cut is now Xbox X|S at a huge discount

Outlook will let users create custom account icons so they can tell their accounts apart easier

Mistral AI’s Codestral LLM can handle over 80 programming languages

Codestral performed better than some other models in benchmarks

3 min. read

Published onMay 31, 2024

published onMay 31, 2024

Share this article

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Mistral AI, the French company, developed Codestral, its first coding large language model (LLM). The AI is fluent in over 80 programming languages, including Python, C, C++, Java, and JavaScript. Despite being a French model, Codestral masters English. So, if you are a developer, you can use it without any limitations to create AI applications.

How is Codestral different than other coding LLMs?

How is Codestral different than other coding LLMs?

Codestral is a 22B model, and it is accessible through an API endpoint. Developers can use this LLM to write and interact with code. Besides, it can generate code from scratch, complete coding functions, write tests, and use its fill-in-the-middle feature to deal with partial codes.

In addition, developers will get code suggestions based on their queries, and its variety of programming languages will also help them code in different environments. Besides, the LLM from Mistral AI reduces the chances of encountering bugs and errors.

According tobenchmarks, Codestral is better than the previous coding LLMs, such as CodeLlama 70B, Llama 3 79B, and DeepSeek Coder 33B. The coding LLM sets new standards in the performance/latency space. Compared to the others, it performed better in most Python benchmarks. However, DeepSeek Coder 33B scored better than Codestral in MBPP, andLlama 370B outperformed the new LLM by 3.6% in the Spider benchmark for SQL.

Codestral also fell slightly behind Llama 3 70B in the HumanEval benchmark for C+, C#, and Typescript. However, Codestral performed better than the other LLMs in Bash, Java, and PHP. On top of that, its average score in HumanEval was 0.3% better than Llama’s, which had 61.2%.

The coding LLM from Mistral AI works with some tools for developer productivity and AI application-making. For example, Llama Index and LangChain integrated the model to help you build agentic applications. In addition, Continue.dev and Tabrine let you use Codestral in VSCode and JetBrains environments to develop code.

How can you start using the Mistral AI coding LLM?

To start using Codestral for non-commercial research and test purposes, download it fromHuggingFace. You can also find the coding LLM on two API endpoints: codestral.mistral.ai and api.mistral.ai.

The codestral.mistral.ai API endpoint is for users looking to use the Instruct or Fill-In-the-Middle routes inside their IDE. It also comes with an API key managed at a personal level. Yet, it will be free for eight weeks during the beta period. On top of that, MistralAI gated it behind awaitlist.

The api.mistral.ai. is a bit different because you need to buy tokens to use queries. Also, you don’t have to use an API key, and it is mostly for research, batch queries, or third-party application development. You can also use Codestral onLeChat, Mistral AI’s free conversational interface.

Ultimately, Codestral from Mistral AI has great potential to become one of the best coding LLMs on the market. However, the competition is fierce, especially since developers useChatGPTandGitHub Copilot. Additionally, there are other small coding models available as well.

Will you try Codestral? Let us know in the comments.

More about the topics:AI,Programming tools and tips

Sebastian Filipoiu

Sebastian is a content writer with a desire to learn everything new about AI and gaming. So, he spends his time writing prompts on various LLMs to understand them better. Additionally, Sebastian has experience fixing performance-related problems in video games and knows his way around Windows. Also, he is interested in anything related to quantum technology and becomes a research freak when he wants to learn more.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Sebastian Filipoiu

Sebastian is a content writer with a desire to learn everything new about AI and gaming.