Contact Support
    Mistral/Mistral Codestral
    License

    Model Card

    Mistral Codestral has been tested across a wide range of benchmarks, demonstrating state-of-the-art performance in multiple domains. Here are the results: (for more details read here)

    Base Benchmarks

    ModelContext LengthHumanEvalMBPPCruxEval-ORepoBenchSpiderHumanEvalFIM Avg.HumanEval Avg.
    Codestral 22B32k81.10%78.20%51.30%34.00%63.50%91.60%61.50%
    CodeLlama 70B4k67.10%70.80%47.30%11.40%37.00%-51.90%
    DeepSeek Coder 33B16k77.40%80.20%49.50%28.40%60.00%78.20%57.60%
    Llama 3 70B8k76.20%76.70%26.00%18.40%67.10%-61.20%

    Language-Specific Benchmarks

    ModelHumanEval PythonHumanEval C++HumanEval BashHumanEval JavaHumanEval PHPHumanEval TypeScriptHumanEval C#HumanEval Average
    Codestral 22B81%65.20%42.40%63.30%68.90%68.60%43.70%61.50%
    CodeLlama 70B67%54.00%28.50%57.60%62.10%60.40%36.10%51.90%
    DeepSeek Coder 33B77.40%67.10%39.90%60.10%54.70%62.90%43.70%57.60%
    Llama 3 70B76.20%67.70%39.20%60.80%66.50%74.20%46.20%61.20%

    Fill-in-the-Middle (FIM) Benchmarks

    ModelHumanEvalFIM PythonHumanEvalFIM JavaScriptHumanEvalFIM JavaHumanEvalFIM Average
    Codestral 22B89.40%95.10%90.30%91.60%
    CodeLlama 70B----
    DeepSeek Coder 33B65.40%82.50%86.60%78.20%
    Llama 3 70B----

    Benchmarks Glossary

    • HumanEval: Assesses general code generation performance.
    • MBPP: Evaluates Python programming tasks.
    • CruxEval-O: Measures output prediction accuracy for Python.
    • RepoBench: Tests long-range repository-level code completion.
    • Spider: SQL benchmark evaluation.
    • HumanEvalFIM: Evaluates fill-in-the-middle performance.
    • HumanEval Python: Performance on Python-specific tasks.
    • HumanEval C++: Performance on C++ programming tasks.
    • HumanEval Bash: Performance on Bash scripting tasks.
    • HumanEval Java: Performance on Java-specific tasks.
    • HumanEval PHP: Performance on PHP programming tasks.
    • HumanEval TypeScript: Performance on TypeScript programming tasks.
    • HumanEval C#: Performance on C# programming tasks.
    • HumanEval Average: Average performance across multiple languages.

    Meta data

    32,768 tokens
    $1 per million
    $3 per million
    Create an agent Pipe