Article complete

Mistral AI Releases First Mamba Model, Codestral Mamba, for Code Generation

Codestral Mamba is one of the first open source models with a Mamba 2 architecture. It is the best 7B code model available, and is trained with a context length of 256k tokens.

A robotic figure in a dynamic pose battles a large, stylized snake against a vibrant background of blue and orange.

Key takeaways

  • Mistral AI launches Codestral Mamba, a leading 7B model for efficient code generation.
  • Utilize advanced Mamba 2 architecture for handling long sequences with 256k token context length.
  • Access a wide range of programming languages, enhancing versatility across diverse coding projects.
  • Leverage rapid interaction capabilities for improved developer productivity and code assistance.
  • Deploy Codestral Mamba easily via the mistral-inference SDK or download weights from HuggingFace.

Takeaways drafted with AI from the article text.

https://twitter.com/_philschmid/status/1813222276617412943

Unlike traditional Transformer models, Codestral Mamba boasts efficient linear time inference, offering the theoretical ability to handle sequences of infinite length. This efficiency facilitates rapid interaction with the model, ensuring quick responses regardless of input size—a significant advantage for enhancing code productivity.

It supports a wide array of programming languages, including popular ones like Python, Java, C, C++, JavaScript, and Bash, as well as specialized languages such as Swift and Fortran. This extensive language support ensures that Codestral Mamba can be utilized across diverse coding environments and projects.

Mistral AI has conducted detailed benchmarks on Codestral Mamba, demonstrating its robust in-context retrieval capabilities up to 256k tokens. This capability positions Codestral Mamba as a promising tool for local code assistance, catering to diverse coding needs effectively.

Developers can deploy Codestral Mamba using the mistral-inference SDK, leveraging reference implementations from its GitHub repository. Additionally, deployment through TensorRT-LLM is supported, with plans for local inference capabilities through llama.cpp underway. For accessibility, raw weights of Codestral Mamba can be downloaded from HuggingFace.

Codestral Mamba is now available on la Plateforme (codestral-mamba-2407), alongside its counterpart Codestral 22B. While Codestral Mamba is licensed under Apache 2.0, Codestral 22B offers options for commercial deployment or community testing.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

More in this story

mistral · 5 stories
  1. Mistral’s ‘Le Big Model’ Beats Google’s Gemini Pro, Signs Multi-Year Deal with Microsoft
  2. You are here: Mistral AI Releases First Mamba Model, Codestral Mamba, for Code Generation
  3. Mistral Unveils Its Most Powerful Open Model Yet with Mistral 3
  4. Mistral AI Launches Agents API to Build the Future of Enterprise AI Workflows
  5. Mistral Medium 3 Outperforms Llama 4; Open Model Launch Planned Next
About the author

Senior Technology Journalist

Siddharth is a media graduate who loves to explore tech through journalism and putting forward ideas worth pondering about in the era of artificial intelligence.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.