Papers › Mistral 7B

Mistral 7B

10 Oct 2023arXiv:2310.06825archive 2025-07-28

Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de Las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed

We introduce Mistral 7B v0.1, a 7-billion-parameter language model engineered for superior performance and efficiency. Mistral 7B outperforms Llama 2 13B across all evaluated benchmarks, and Llama 1 34B in reasoning, mathematics, and code generation. Our model leverages grouped-query attention (GQA) for faster inference, coupled with sliding window attention (SWA) to effectively handle sequences of arbitrary length with a reduced inference cost. We also provide a model fine-tuned to follow instructions, Mistral 7B -- Instruct, that surpasses the Llama 2 13B -- Chat model both on human and automated benchmarks. Our models are released under the Apache 2.0 license.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.06825")

Code

Syntology Ran 9 of 11 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 9 ran; community (archive-listed): 1 sample from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mistralai/mistral-src officialmentioned in paperpytorchApache-2.0 report
facebookresearch/fairseq2 mentioned on GitHubpytorchMIT report
mgmalek/efficient_cross_entropy mentioned on GitHubpytorchMIT report
ninglab/ecellm mentioned on GitHubpytorchCC-BY-4.0 report
pwc-1/Paper-9 mindspore report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 9 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
2unverified

Licence: 1 of the 11 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_cache_sizes mistralai/mistral-src/src/mistral_inference/cache.py official repository ran Apache-2.0 (permissive) · ef46cbe416befd2d · report
get_sub_grids mistralai/mistral-src/src/mistral_inference/vision_encoder.py official repository ran Apache-2.0 (permissive) · b5c578acc311d56e · report
interleave_list mistralai/mistral-src/src/mistral_inference/cache.py official repository ran fingerprinted Apache-2.0 (permissive) · c7a274c6f99bd04a · report
position_meshgrid mistralai/mistral-src/src/mistral_inference/vision_encoder.py official repository ran Apache-2.0 (permissive) · 61a59ec493b9ba5a · report
precompute_freqs_cis mistralai/mistral-src/src/mistral_inference/rope.py official repository ran Apache-2.0 (permissive) · 99e0ca21ba709107 · report
precompute_freqs_cis_2d mistralai/mistral-src/src/mistral_inference/rope.py official repository ran Apache-2.0 (permissive) · acf80db8b8e014ad · report
repeat_kv mistralai/mistral-src/src/mistral_inference/transformer_layers.py official repository ran Apache-2.0 (permissive) · a034294fb9d68dfa · report
sample mistralai/mistral-src/src/mistral_inference/generate.py official repository ran Apache-2.0 (permissive) · 8e0352e68edf6866 · report
unrotate mistralai/mistral-src/src/mistral_inference/cache.py official repository ran fingerprinted Apache-2.0 (permissive) · 231f8bcb0c0c8bab · report
apply_rotary_emb mistralai/mistral-src/src/mistral_inference/rope.py official repository unverified Apache-2.0 (permissive) · 0539a5035c30fa83 · report
get_log_writer facebookresearch/fairseq2/src/fairseq2/logging.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 29195f3023e17f2d · report

Tasks

Arithmetic ReasoningChatbotCode GenerationCommon Sense ReasoningLanguage ModelingLanguage ModellingMathMath Word Problem SolvingMathematical ReasoningMulti-task Language UnderstandingQuestion AnsweringSentence CompletionWorld KnowledgeZero-Shot Video Question Answeranswerability prediction

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Arithmetic Reasoning GSM8K Mistral 7B (maj@8) Accuracy 52.2 #131 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K Mistral 7B (maj@8) Parameters (Billion) 7 #131 of 164 Archive leaderboard report
Code Generation MBPP Mistral 7B (3-shot) Accuracy 47.5 #68 of 99 Archive leaderboard report
Common Sense Reasoning ARC (Challenge) Mistral 7B (0-shot) Accuracy 55.5 #30 of 54 Archive leaderboard report
Common Sense Reasoning ARC (Easy) Mistral 7B (0-shot) Accuracy 80.0 #16 of 47 Archive leaderboard report
Common Sense Reasoning WinoGrande Mistral 7B (0-shot) Accuracy 75.3 #26 of 77 Archive leaderboard report
Math Word Problem Solving MATH Mistral 7B (maj@4) Accuracy 13.1 #111 of 135 Archive leaderboard report
Math Word Problem Solving MATH Mistral 7B (maj@4) Parameters (Billions) 7 #111 of 135 Archive leaderboard report
Multi-task Language Understanding MML Mistral 7B (5-shot) Average (%) 60.1 #18 of 44 Archive leaderboard report
Question Answering Natural Questions Mistral 7B (5-shot) EM 28.8 #37 of 47 Archive leaderboard report
Question Answering PIQA Mistral 7B (0-shot) Accuracy 83.0 #16 of 67 Archive leaderboard report
Question Answering PeerQA Mistral-v02-7B-32k AlignScore 0.0827 #2 of 6 Archive leaderboard report
Question Answering PeerQA Mistral-v02-7B-32k Prometheus-2 Answer Correctness 3.4245 #2 of 6 Archive leaderboard report
Question Answering PeerQA Mistral-v02-7B-32k Rouge-L 0.1922 #2 of 6 Archive leaderboard report
Question Answering TriviaQA Mistral 7B (5-shot) EM 69.9 #32 of 56 Archive leaderboard report
Sentence Completion HellaSwag Mistral 7B (0-shot) Accuracy 81.3 #41 of 89 Archive leaderboard report
Zero-Shot Video Question Answer IntentQA Mistral (7B) Accuracy 50.4 #12 of 13 Archive leaderboard report
Zero-Shot Video Question Answer NExT-GQA Mistral (7B) Acc@GQA 9.2 #9 of 9 Archive leaderboard report
Zero-Shot Video Question Answer NExT-QA Mistral (7B) Accuracy 51.1 #27 of 27 Archive leaderboard report
answerability prediction PeerQA Mistral-IT-v02-7B-32k Macro F1 0.4703 #1 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AttentionDense ConnectionsFeedforward NetworkGrouped-query attentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections