mamba-codestral-7B-v0.1

我要开发同款
匿名用户2024年07月31日
12阅读
开发技术Pytorch
所属分类ai
开源地址https://modelscope.cn/models/LLM-Research/mamba-codestral-7B-v0.1
授权协议apache-2.0

作品详情

Model Card for Mamba-Codestral-7B-v0.1

Codestral Mamba is an open code model based on the Mamba2 architecture. It performs on par with state-of-the-art Transformer-based code models. \ You can read more in the official blog post.

Installation

It is recommended to use mistralai/mamba-codestral-7B-v0.1 with mistral-inference

在魔搭镜像环境中使用

wget "https://modelscope.oss-cn-beijing.aliyuncs.com/releases/causal_conv1d-1.4.0%2Bcu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"
wget "https://modelscope.oss-cn-beijing.aliyuncs.com/releases/mamba_ssm-2.2.2%2Bcu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"
pip install mistral_inference
pip install mamba_ssm-2.2.2%2Bcu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
pip install causal_conv1d-1.4.0%2Bcu122torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

Download

modelscope download --model=LLM-Research/mamba-codestral-7B-v0.1 --local_dir ./mamba-codestral-7B-v0.1

Chat

After installing mistral_inference, a mistral-demo CLI command should be available in your environment.

export XFORMERS_FORCE_DISABLE_TRITON=1
mistral-chat mamba-codestral-7B-v0.1/ --instruct  --max_tokens 256

Evaluation

We evaluate Codestral Mamba, Codestral and open-weight models of similar size on industry-standard benchmarks.

Benchmarks HumanEval MBPP Spider CruxE HumanEval C++ HumanEvalJava HumanEvalJS HumanEval Bash
CodeGemma 1.1 7B 61.0% 67.7% 46.3% 50.4% 49.1% 41.8% 52.2% 9.4%
CodeLlama 7B 31.1% 48.2% 29.3% 50.1% 31.7% 29.7% 31.7% 11.4%
DeepSeek v1.5 7B 65.9% 70.8% 61.2% 55.5% 59.0% 62.7% 60.9% 33.5%
Codestral Mamba (7B) 75.0% 68.5% 58.8% 57.8% 59.8% 57.0% 61.5% 31.1%
Codestral (22B) 81.1%% 78.2%% 63.5%% 51.3% 65.2% 63.3% - 42.4%
CodeLlama 34B 43.3% 75.1% 50.8% 55.2% 51.6% 57.0% 59.0% 29.7%

The Mistral AI Team

Albert Jiang, Alexandre Sablayrolles, Alexis Tacnet, Alok Kothari, Antoine Roux, Arthur Mensch, Audrey Herblin-Stoop, Augustin Garreau, Austin Birky, Bam4d, Baptiste Bout, Baudouin de Monicault, Blanche Savary, Carole Rambaud, Caroline Feldman, Devendra Singh Chaplot, Diego de las Casas, Eleonore Arcelin, Emma Bou Hanna, Etienne Metzger, Gaspard Blanchet, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Harizo Rajaona, Henri Roussez, Hichem Sattouf, Ian Mack, Jean-Malo Delignon, Jessica Chudnovsky, Justus Murke, Kartik Khandelwal, Lawrence Stewart, Louis Martin, Louis Ternon, Lucile Saulnier, Lélio Renard Lavaud, Margaret Jennings, Marie Pellat, Marie Torelli, Marie-Anne Lachaux, Marjorie Janiewicz, Mickaël Seznec, Nicolas Schuhl, Niklas Muhs, Olivier de Garrigues, Patrick von Platen, Paul Jacob, Pauline Buche, Pavan Kumar Reddy, Perry Savas, Pierre Stock, Romain Sauvestre, Sagar Vaze, Sandeep Subramanian, Saurabh Garg, Sophia Yang, Szymon Antoniak, Teven Le Scao, Thibault Schueller, Thibaut Lavril, Thomas Wang, Théophile Gervet, Timothée Lacroix, Valera Nemychnikova, Wendy Shang, William El Sayed, William Marshall

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论