Mistral Large 4(又名 Le Chonk)是 Mistral 推出的一款多模态、多语言混合专家(MoE)模型。它以文本和图像作为输入,并生成文本。该模型总参数量约为 1T,激活参数为 49B,上下文窗口为 100 万 token。
该模型提供两个官方变体:
FP8
NVFP4
此外,Unsloth 和 llama.cpp 团队也创建了 GGUF 格式版本。它根据 Mistral 生态系统开放权重许可证(Mistral Ecosystem Open-Weight License,一种 MIT 衍生许可证,对模型即服务(Model-as-a-Service)提供设定了限制)进行分发。
Mistral Large 4 在网络安全、编码代理和多模态方面表现尤为出色。在这篇文章中,我们将探讨该模型的工作原理、能力、架构等更多内容!
目录
Mistral Large 4 有哪些新特性
Mistral Large 4 将大量专家池与稀疏注意力机制以及 Pixtral 视觉编码器相结合。语言模型为每个 token 选择一小组专家,而其注意力索引器则决定关注哪些早期的 token 位置。这是两种不同形式的稀疏性:一种用于选择前馈网络,另一种用于选择上下文位置。
你可以在 Mistral Large 4 集合中找到所有的检查点(checkpoints)。
网络安全能力
在 Artificial Analysis 网络安全指数测试中,Mistral Large 4 取得了 82% 的得分。该测试要求模型复现开源软件中的真实漏洞,然后修补该软件。Mistral 报告称,几个闭源前沿模型在同一测试中的得分接近零,因为它们拒绝尝试执行此项工作。这对防御者来说至关重要,因为修复漏洞通常需要复现该漏洞。在 Mistral 的内部测试中,Mistral Large 4 还对恶意软件分析、漏洞优先级排序以及编写检测规则有用,而这些并非该模型明确训练过的任务。
Mistral 主要将该模型定位为用于防御性安全工作。漏洞研究和事件响应通常表现为模型输入中的攻击内容,因此闭源过滤器可能会拦截它们。依赖 API 的团队也可能在事件处理过程中失去访问权限。关键在于,开放权重模型让用户同时掌控使用策略和部署。话虽如此,该模型仍然会拒绝有害请求:在来自 JailbreakBench、StrongREJECT 和 AgentHarm 的网络安全提示中,其平均拒绝率高于任何其他开放权重模型。
对于社区建设者而言,像 Mistral Large 4 这样的开放权重模型解锁了大量下游用例。你可以围绕自己的代码库、崩溃日志和恶意软件样本构建自己的网络安全系统。例如,使用 TRL(Transformer Reinforcement Learning),你可以从 Mistral Large 4 的补丁数据中微调较小的模型。事实上,复现后修补任务使用可验证的奖励机制,因此非常适合用于进一步强化小型安全模型的 RL 环境。开放权重还允许研究人员直接测量模型的拒绝行为,而不是依赖提供商的描述。
简而言之,将 ML4 等网络安全能力公开,对社区来说是一个巨大的推动。
我们采访了 Pierre Stock,讨论该模型的网络安全能力,你可以在此观看视频。
架构
Mistral Large 4 的文本解码器包含 72 层,隐藏维度为 6,144,注意力头数为 64。其注意力块结合了多头潜在注意力(MLA)与 DeepSeek 稀疏注意力(DSA)索引器(这是 GLM 5.3 等其他模型中的一个方向)。MLA 保持压缩的 KV 表示,而 DSA 为每个查询选择多达 2,048 个键位置。
对于每个解码器块,存在 3:1 的 RoPE 到 NoPE 模式,即每三个解码器层使用 RoPE,而第四个层使用 NoPE。该模型还在层之间共享 KV 状态。
第一个解码器层使用密集前馈网络。其余 71 层使用 MoE 块,其中 softmax 路由器为每个 token 从 128 个专家中选择四个。一个共享专家始终与选定的专家并行运行,因此每个 token 共有 5 个激活专家。
关于 RoPE,Mistral 使用了 LeRope,这是一种经过 YaRN 缩放的 RoPE,每个频率对应一个可学习的乘数。
视觉编码器
Mistral Large 4 采用了 16 亿参数规模的 Pixtral 编码器。Pixtral 拥有 30 层结构,隐藏层维度为 2,048,并包含 16 个注意力头。它使用 14 × 14 的图像块(patches),并采用具有空间合并大小为 2 的图像块合并投影器。你可以看到下方的编码器流水线示意图。
基准测试结果
Mistral Large 4 在编码、网络安全、多模态理解和智能体工作流方面均展现出强劲的基准性能,使其成为开放权重生态系统中极具竞争力的补充。截至 2026 年 10 月 29 日,该模型在 Artificial Analysis Intelligence 指数中排名第五,位列所有开放权重模型之首。
在编码方面,ML4 在 DeepSWE v1.1 上取得 61.7% 的成绩,在 SWE-Atlas-QnA 上取得 59.4% 的成绩,在 Terminal-Bench 4 上取得 28.3% 的成绩。其综合编码智能体指数(Coding Agent Index)得分为 49.8%,领先于 DeepSeek V4 Pro 0813 和 Qwen3.8 Max。
ML4 的编码能力延伸至知识工作领域,在 AutomationBench 上取得 59.9% 的成绩,在 AA-Briefcase 上获得 1,393 的 Elo 分数,这两项指标分别评估了业务流程和长周期专业任务的表现。
网络安全是 Mistral Large 4 的突出能力之一,在真实世界漏洞评估和安全竞赛任务中均取得了优异成果。以下三项基准测试突显了该模型在网络领域的表现:
Artificial Analysis Cyber Index:在该独立评估模型发现并修复软件漏洞能力的指标中,ML4 位列全球前五名。
漏洞复现与修补:它在此索引内的测试中取得了 82% 的成绩,为目前报告的最高分数。该任务要求复现开源软件中的真实漏洞,然后对其进行修补,从而同时考察调查和修复能力。
Cybench:ML4 解决了来自安全竞赛的一组 40 个挑战中的 93%,展示了在实操性安全问题上的强劲表现。
Mistral Large 4 在 Lakera 的 B3 基准测试中展现出 93.3% 的攻击抵御能力,进一步证明了其对抗提示注入攻击的鲁棒性。除基准测试外,内部测试显示其在恶意软件分析、漏洞优先级排序和检测规则生成方面取得了令人鼓舞的成果。
推理支持
Mistral Large 4 提供对 transformers、vLLM 和 llama.cpp 的 Day-0(首发)支持。GGUF 量化版本可从 GGUF 和 llama.cpp 团队获取。我们提供通过 Inference Endpoints 进行远程部署的选项,以及通过 Inference Providers 使用无服务器推理的功能。
Transformers
Transformers 实现提供了 AutoModelForMultimodalLM,其中 AutoProcessor 用于准备对话和图像输入。Mistral Large 4 支持将推理努力程度(reasoning effort)设置为 low、medium 或 high。默认值为 high,请注意推理无法禁用,因此使用 reasoning_effort: none 仍会使用 high 级别。
要运行该模型,请升级 transformers 包:
pip install --upgrade transformers
import os
from transformers import AutoProcessor, AutoModelForMultimodalLM, DistributedConfig
distributed_config = DistributedConfig(
tp_size= int (os.environ[ "WORLD_SIZE" ]),
ep_size= int (os.environ[ "WORLD_SIZE" ]),
)
model_id = "mistralai/Mistral-Large-4-1T-A52B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
distributed_config=distributed_config,
)
text_messages = [
{
"role" : "user" ,
"content" : "Who are you?"
}
]
multimodal_messages = [
{
"role" : "user" ,
"content" : [
{
"type" : "image" ,
"image" : "https://huggingface.co/datasets/huggingface/cats-image/resolve/main/cats_image.jpeg" ,
},
{
"type" : "text" ,
"text" : "How many cats are in the image?" ,
},
],
},
]
for messages in [text_messages, multimodal_messages]:
inputs = processor.apply_chat_template(
messages,
add_generation_prompt= True ,
tokenize= True ,
return_dict= True ,
return_tensors= "pt" ,
reasoning_effort= "medium" ,
).to(model.device).to(model.dtype)
input_len = inputs[ "input_ids" ].shape[- 1 ]
outputs = model.generate(**inputs, max_new_tokens=100)
if int(os.environ["RANK"]) == 0:
print(processor.decode(outputs[0][input_len:], skip_special_tokens=False))
您可以通过将上述脚本保存为 Python 文件 script.py,然后运行以下命令来执行该脚本:
torchrun --nproc-per-node 8 script.py
vLLM
vLLM 支持高质量的 NVFP4 Mistral Large 4 检查点,它具有更小的内存占用,并且需要 NVIDIA Blackwell GPU。该模型还附带了 DSpark drafter,以在 vLLM 中实现额外的加速。像这样启动服务器:
vllm serve mistralai/Mistral-Large-4-1T-A52B-NVFP4 \
--config-format mistral \
--load-format mistral \
--tensor-parallel-size 8 \
--decode-context-parallel-size 8 \
--enable-expert-parallel \
--dtype bfloat16 \
--max-model-len 131072 \
--max-num-seqs 16 \
--max-num-batched-tokens 2048 \
--gpu-memory-utilization 0.85 \
--enable-prefix-caching \
--enforce-eager \
--mm_processor_cache_gb 0.0
服务器启动并运行后,您可以运行以下命令。
curl -s http://127.0.0.1:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"messages":[{"role":"user","content":"What is 17*23?"}],"max_tokens":512}'
Llama.cpp
Llama.cpp 和 Llama App 已经支持 Mistral Large 4。
您可以使用以下命令安装 Llama App:
curl -LsSf https://llama.app/install.sh | sh
然后,您可以按如下方式启动服务器,在模型 ID 后指定量化后缀:
llama serve -hf ggml-org/Mistral-Large-4-1T-A52B-GGUF:Q2_K
以下是源自 FP8 检查点的量化版本仓库,以及从官方 NVFP4 仓库转换而来的 NVFP4 版本。
服务器启动后,您可以访问 localhost:9931 使用内置的 WebUI 进行聊天。在 Web UI 中,您可以添加图像以进行推理并调整推理层级。
您还可以按如下方式查询服务器。欢迎查看 API 参考文档,了解多模态、工具调用等更多信息。
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a limerick about python exceptions"}
]
}'
您可以按如下方式运行图像文本推理。
curl -s http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer
-d '{
"model": "muse-spark-open",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,..."
}
}
]
}
],
"temperature": 0
}'
llama.cpp 团队提供以下量化版本:IQ2_XXS、Q2_K、Q4_K_M、NVFP4、Q8_0 和 BF16,以供进一步转换。2-bit 量化可在配备 512 GB 统一内存的单台 Apple Silicon Ultra 计算机上运行。其他量化版本需要分布式推理。您也可以在多张 NVIDIA 或 AMD 显卡上运行。
在单台 M3 Ultra 上运行 Q2_K,我们获得了约每秒 90 个 token 的预填充吞吐量,以及每秒 15 个 token 的生成速度。在 4 张 RTX6000 Pro 上,我们观察到以下结果:
NVFP4:32K 上下文大小,预填充 130-590 t/s,生成速度约 10 t/s
IQ2_XXS:800K 上下文大小。在短上下文大小下,预填充为 500 tok/s,生成运行在 30 tok/s。然而,使用长上下文时,性能下降到 129 tok/s(预填充)和 3 tok/s(生成)。
使用 TRL 进行微调
我们还提供使用 TRL 微调 Mistral Large 4 的 Day 0 支持。您所需要做的就是升级到最新版本的 transformers、trl 和 peft。
pip install --upgrade transformers trl peft
在以下示例中,我们训练模型执行多语言思维。微调后的模型将能够用系统提示要求的语言进行推理!
该脚本在由 8 台 B300 组成的节点上运行 FP8 变体。包含 Slurm 启动器的完整示例位于 TRL 的 examples 中。
import os
from datasets import load_dataset
from peft import LoraConfig
from transformers import AutoModelForImageTextToText, DistributedConfig
from trl import SFTConfig, SFTTrainer
world_size = int (os.environ[ "WORLD_SIZE" ])
model_id = "mistralai/Mistral-Large-4-1T-A52B"
model = AutoModelForImageTextToText.from_pretrained(
model_id,
distributed_config=DistributedConfig(fsdp_size=world_size, ep_size=world_size),
dtype= "auto" ,
)
dataset = load_dataset ( "HuggingFaceH4/Multilingual-Thinking" , split= "train" )
dataset = dataset. map ( lambda x: { "chat_template_kwargs" : { "reasoning_effort" : "high" }})
trainer = SFTTrainer(
model=model,
args=SFTConfig(
packing= True ,
max_length= 4096 ,
assistant_only_loss= True ,
learning_rate= 1e-4 ,
lr_scheduler_type= "cosine" ,
warmup_steps= 10 ,
),
train_dataset=dataset,
peft_config=LoraConfig(
r= 16 ,
lora_alpha= 32 ,
target_modules= r".language_model..(q_proj|kv_a_proj_with_mqa|kv_b_proj|o_proj|gate_proj|up_proj|down_proj)" ,
),
)
trainer.train()
推理端点(Inference Endpoints)
Mistral Large 4 也可在 Inference Endpoints 上使用,并提供了适用于 8 张 NVIDIA H200 GPU 的即用型部署配方。该配方使用 vLLM,通过张量并行和专家并行将 FP8 权重分布在所有八张 GPU 上,并利用模型内置的 DSpark 草稿头(draft head)通过推测解码实现更快的生成速度。它支持高达 131K token 的上下文,并每次处理多达 16 个请求,我们观察到以下结果:
单个请求:对于 1K token 的提示词,首个 token 的生成时间约为 0.6 秒,生成速度约为 65 tok/s;在 DSpark 草稿被接受的聊天提示词场景中,速度可达 120–138 tok/s。
长提示词:同时处理 4 个 16K token 的提示词,总预填充速度约为 4,300 tok/s,首个 token 生成时间为 8–9 秒。
高负载下:在 1,000 条 ShareGPT 对话中,总生成速度约为 480 tok/s。
您可以使用 hf CLI 按以下方式部署它:
hf endpoints catalog deploy --repo mistralai/Mistral-Large-4-1T-A52B --name mistral-large-4
端点运行后,您可以使用端点 URL 和您的 Hugging Face token 查询其兼容 OpenAI 的 API。reasoning_effort 字段控制模型在回答前进行推理的程度,可以设置为 low(低)、medium(中)或 high(高,默认值)。
curl " $(hf endpoints describe mistral-large-4 --json | jq -r .status.url) /v1/chat/completions" \
-H "Authorization: Bearer $(hf auth token 2>/dev/null) " \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/Mistral-Large-4-1T-A52B",
"messages": [
{"role": "user", "content": "Write a limerick about python exceptions"}
],
"reasoning_effort": "medium"
}'
答案返回在 choices[0].message.content 中,推理过程返回在 choices[0].message.reasoning 中。该端点还支持通过标准的 Chat Completions 字段进行工具调用、结构化输出、图像输入和流式传输。
戴尔企业中心(Dell Enterprise Hub)
在您的 Dell AI 服务器(NVIDIA H200、B200、GB200 或 GB300)上快速上手的最简单方法是安装 dell-ai CLI:
pip install dell-ai && dell-ai login
然后使用它来运行针对 Mistral Large 4 优化的配方,例如在 NVIDIA B300 节点上。
dell-ai models deploy --model-id mistralai/Mistral-Large-4-1T-A52B-NVFP4 \
--engine docker \
--platform-id xe9780-nvidia-b300 \
--gpus 4
您可以在戴尔企业中心(DEH)中了解更多关于此次发布的信息。
试一试
从 Mistral Large 4 集合中获取权重,使用 GGUF 在本地运行,或通过 Inference Endpoints 进行部署。我们迫不及待想看到您用 Le Chonk 构建的内容!请在 Hub 上分享您的微调模型、量化模型和其他工件!
Mistral Large 4 (aka Le Chonk) is a multimodal, multilingual, Mixture-of-Experts (MoE) model from Mistral. It takes text and images as input and generates text. It has about 1T total, 49B active parameter , and a context window of 1M tokens .
The model is released in two official variants:
FP8
NVFP4
There are also GGUFs created by Unsloth and the llama.cpp team. It’s distributed under the Mistral Ecosystem Open-Weight License (an MIT derivative that establishes limitations for model-as-a-service offerings).
Mistral Large 4 is particularly strong for cybersecurity, coding agents, and multimodality. In this post, we look at how the model works, its capabilities, architecture and more!
Table of Contents
What is new with Mistral Large 4
Mistral Large 4 combines a large pool of experts with sparse attention and a Pixtral vision encoder. The language model selects a small group of experts for each token, while its attention indexer selects which earlier token positions to attend to. These are two different forms of sparsity, where one selects feed-forward networks, the other selects context positions.
You can find all the checkpoints in the Mistral Large 4 collection .
Cybersecurity Capabilities
Mistral Large 4 scores 82% on the Artificial Analysis Cyber Index test that asks a model to reproduce a real vulnerability in open-source software and then patch the software. Mistral reports that several closed frontier models score near zero on the same test because they refuse to attempt the work. This is super important for defenders, because fixing a vulnerability usually requires reproducing the vulnerability. In Mistral’s internal testing, Mistral Large 4 was also useful for malware analysis, vulnerability prioritisation and writing detection rules, which the model was not explicitly trained for.
Mistral mainly positions the model for defensive security work. Vulnerability research and incident response often appear like attacks in model input, so closed source filters can block them. A team that depends on an API can also lose access in the middle of an incident. Crucially, open weight models put both the usage policy and the deployment under the user’s control. That said, the model still declines harmful requests: on cyber prompts from JailbreakBench, StrongREJECT and AgentHarm, its average refusal rate is higher than any other open weight model.
For community builders, an open weight model like Mistral Large 4 unlocks a load of downstream use cases. You could build your own cyber system around your code base, crash logs, and malware samples. For example, with TRL you could fine-tune smaller models from Mistral Large 4 traces patching your code base. In fact, reproduce-then-patch tasks use a verifiable reward, so it fits with RL environments that could be used to further RL smaller security models. Open weights also let researchers measure the model’s refusal behaviour directly instead of relying on the provider’s description.
In short, cyber capabilities like ML4’s in the open are a huge boost for the community.
We have interviewed Pierre Stock about the cyber capabilities of the model, you can watch it here .
Architecture
Mistral Large 4’s text decoder has 72 layers, a hidden dimension of 6,144, and 64 attention heads. Its attention blocks combine Multi-head Latent Attention (MLA) with a DeepSeek Sparse Attention (DSA) indexer (a direction in other models such as GLM 5.3). MLA keeps a compressed KV representation, and DSA selects up to 2,048 key positions for each query.
For each decoder block, there’s a 3:1 RoPE to NoPE pattern, i.e. 3 decoder layers employ RoPE and every fourth layer uses NoPE. The model also shares KV state across layers.
The first decoder layer uses a dense feed-forward network. The other 71 layers use MoE blocks, in which a softmax router selects four of the 128 experts for each token. One shared expert always runs alongside the selected experts, for a total of 5 active experts per token.
Regarding RoPE, Mistral uses LeRope , a YaRN-scaled RoPE with one learned multiplier per frequency.
Vision encoder
Mistral Large 4 employs a 1.6B Pixtral encoder. Pixtral has 30 layers, a hidden dimension of 2,048, and 16 attention heads. It uses 14 × 14 patches and a patch-merge projector with spatial merge size 2. You can see the encoder pipeline below.
Benchmark Results
Mistral Large 4 delivers strong benchmark performance across coding, cybersecurity, multimodal understanding, and agentic workflows, positioning it as a competitive addition to the open-weight ecosystem. As of October 29, 2026, the model is the fifth best open weights model on Artificial Analysis Intelligence index.
On coding, ML4 achieves 61.7% on DeepSWE v1.1 , 59.4% on SWE-Atlas-QnA , and 28.3% on Terminal-Bench 4 . Its combined Coding Agent Index score of 49.8% places it ahead of DeepSeek V4 Pro 0813 and Qwen3.8 Max.
Coding capabilities of ML4 extend to knowledge work, with 59.9% on AutomationBench and 1,393 Elo on AA-Briefcase , which evaluate business workflows and long-horizon professional tasks.
Cybersecurity is one of Mistral Large 4’s standout capabilities, with strong results across real-world vulnerability assessment and security competition tasks. Three benchmarks highlight the model’s cyber performance:
Artificial Analysis Cyber Index: ML4 ranks among the top five models globally on this independent evaluation of models’ ability to find and fix software vulnerabilities.
Vulnerability reproduction and patching: It achieves 82% , the highest reported score on this test within the index. The task requires reproducing a real vulnerability in open-source software and then patching it, testing both investigation and remediation.
Cybench: ML4 solves 93% of a suite of 40 challenges drawn from security competitions , demonstrating strong performance on hands-on security problems.
Mistral Large 4 also demonstrates 93.3% attack resistance on Lakera’s B3 benchmark , adding evidence of robustness against prompt-injection attacks. Beyond benchmarks, internal testing showed promising results in malware analysis, vulnerability prioritization, and detection-rule generation.
Inference Support
Mistral Large 4 is shipped with day-0 support for transformers, vLLM and llama.cpp. GGUF quants are available from GGUF and the llama.cpp team . We provide options to deploy remotely with Inference Endpoints, and use serverless inference through Inference Providers.
Transformers
The Transformers implementation provides AutoModelForMultimodalLM , with AutoProcessor preparing the conversation and image inputs. Mistral Large 4 can take low , medium , high as reasoning effort. The default is high , and note that reasoning cannot be disabled, so using reasoning_effort : none would still use high .
To run the model, upgrade the transformers package
pip install --upgrade transformers
import os
from transformers import AutoProcessor, AutoModelForMultimodalLM, DistributedConfig
distributed_config = DistributedConfig(
tp_size= int (os.environ[ "WORLD_SIZE" ]),
ep_size= int (os.environ[ "WORLD_SIZE" ]),
)
model_id = "mistralai/Mistral-Large-4-1T-A52B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
distributed_config=distributed_config,
)
text_messages = [
{
"role" : "user" ,
"content" : "Who are you?"
}
]
multimodal_messages = [
{
"role" : "user" ,
"content" : [
{
"type" : "image" ,
"image" : "https://huggingface.co/datasets/huggingface/cats-image/resolve/main/cats_image.jpeg" ,
},
{
"type" : "text" ,
"text" : "How many cats are in the image?" ,
},
],
},
]
for messages in [text_messages, multimodal_messages]:
inputs = processor.apply_chat_template(
messages,
add_generation_prompt= True ,
tokenize= True ,
return_dict= True ,
return_tensors= "pt" ,
reasoning_effort= "medium" ,
).to(model.device).to(model.dtype)
input_len = inputs[ "input_ids" ].shape[- 1 ]
outputs = model.generate(**inputs, max_new_tokens= 100 )
if int (os.environ[ "RANK" ]) == 0 :
print (processor.decode(outputs[ 0 ][input_len:], skip_special_tokens= False ))
You can run the script above by saving it in a python file script.py and then run
torchrun --nproc-per-node 8 script.py
vLLM
vLLM supports the high-quality NVFP4 Mistral Large 4 checkpoint, which has a smaller memory footprint and requires NVIDIA Blackwell GPUs. The model also ships with a DSpark drafter for additional speed-ups with vLLM. Launch the server like this:
vllm serve mistralai/Mistral-Large-4-1T-A52B-NVFP4 \
--config-format mistral \
--load-format mistral \
--tensor-parallel-size 8 \
--decode-context-parallel-size 8 \
--enable-expert-parallel \
--dtype bfloat16 \
--max-model-len 131072 \
--max-num-seqs 16 \
--max-num-batched-tokens 2048 \
--gpu-memory-utilization 0.85 \
--enable-prefix-caching \
--enforce-eager \
--mm_processor_cache_gb 0.0
Once the server is up and running, you can run the following.
curl -s http://127.0.0.1:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"messages":[{"role":"user","content":"What is 17*23?"}],"max_tokens":512}'
Llama.cpp
Llama.cpp and Llama App already support Mistral Large 4.
You can install Llama App with the following command:
curl -LsSf https://llama.app/install.sh | sh
Then you can start the server as follows, indicating the quant suffix after the model ID:
llama serve -hf ggml-org/Mistral-Large-4-1T-A52B-GGUF:Q2_K
Here’s the repository with the quants derived from the FP8 checkpoint, and this is the NVFP4 one , converted from the official NVFP4 repo.
Once the server has started, you can head to localhost:9931 to chat using the built-in WebUI. From the web UI you can add images for inference and adjust the reasoning lever.
You can also query the server as follows. Feel free to check out the API reference for multimodality, tool calls and more.
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a limerick about python exceptions"}
]
}'
You can run image-text inference as follows.
curl -s http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer
-d '{
"model": "muse-spark-open",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,..."
}
}
]
}
],
"temperature": 0
}'
The llama.cpp team ships the following quants: IQ2_XXS , Q2_K , Q4_K_M , NVFP4 , Q8_0 , and BF16 for further conversions. The 2-bit quants run on a single Apple Silicon Ultra computer with 512 GB of unified RAM. The others require distributed inference. You can also run on multiple NVIDIA or AMD cards.
Running Q2_K on a single M3 Ultra, we got a prefill throughput of about 90 tokens per second, and a generation speed of 15 tok/s. On 4 x RTX6000 Pro, we observed the following results:
NVFP4: 32K context size, prefill 130-590 t/s, gen speed ~10 t/s
IQ2_XXS: 800K context size. At short context sizes, prefill is 500 tok/s and generation runs at 30 tok/s. However, using long contexts performance drops to 129 tok/s (prefill) and 3 tok/s (generation).
Fine-tuning with TRL
We also ship day 0 support of fine tuning Mistral Large 4 using TRL. All you have to do is upgrade to the latest version of transformers , trl and peft .
pip install --upgrade transformers trl peft
In the following example we train the model to perform multilingual thinking. The fine tuned model would be able to reason in the language the system prompt asks for!
The script runs on the FP8 variant on a node of 8xB300s. The full example, with a Slurm launcher, is in TRL's examples .
import os
from datasets import load_dataset
from peft import LoraConfig
from transformers import AutoModelForImageTextToText, DistributedConfig
from trl import SFTConfig, SFTTrainer
world_size = int (os.environ[ "WORLD_SIZE" ])
model_id = "mistralai/Mistral-Large-4-1T-A52B"
model = AutoModelForImageTextToText.from_pretrained(
model_id,
distributed_config=DistributedConfig(fsdp_size=world_size, ep_size=world_size),
dtype= "auto" ,
)
dataset = load_dataset( "HuggingFaceH4/Multilingual-Thinking" , split= "train" )
dataset = dataset. map ( lambda x: { "chat_template_kwargs" : { "reasoning_effort" : "high" }})
trainer = SFTTrainer(
model=model,
args=SFTConfig(
packing= True ,
max_length= 4096 ,
assistant_only_loss= True ,
learning_rate= 1e-4 ,
lr_scheduler_type= "cosine" ,
warmup_steps= 10 ,
),
train_dataset=dataset,
peft_config=LoraConfig(
r= 16 ,
lora_alpha= 32 ,
target_modules= r".language_model..(q_proj|kv_a_proj_with_mqa|kv_b_proj|o_proj|gate_proj|up_proj|down_proj)" ,
),
)
trainer.train()
Inference Endpoints
Mistral Large 4 is also available on Inference Endpoints, with a ready-to-deploy recipe on 8 x NVIDIA H200 GPUs. The recipe runs vLLM with the FP8 weights split across all eight GPUs using tensor and expert parallelism, and uses the model's built-in DSpark draft head for faster generation through speculative decoding. It serves up to 131K tokens of context and processes up to 16 requests at a time, and we observed the following results:
Single request: time to first token of about 0.6 seconds for a 1K-token prompt, and a generation speed of ~65 tok/s, reaching 120–138 tok/s on chat prompts where DSpark's drafts are accepted.
Long prompts: 16K-token prompts, four at a time, are prefilled at about 4,300 tok/s in total, with a time to first token of 8–9 seconds.
Under load: about 480 tok/s of total generation across 1,000 ShareGPT conversations.
You can deploy it with the hf CLI as follows:
hf endpoints catalog deploy --repo mistralai/Mistral-Large-4-1T-A52B --name mistral-large-4
Once the endpoint is running, you can query its OpenAI-compatible API, using the endpoint URL and your Hugging Face token. The reasoning_effort field controls how much the model reasons before answering, and can be set to low , medium , or high (default).
curl " $(hf endpoints describe mistral-large-4 --json | jq -r .status.url) /v1/chat/completions" \
-H "Authorization: Bearer $(hf auth token 2>/dev/null) " \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/Mistral-Large-4-1T-A52B",
"messages": [
{"role": "user", "content": "Write a limerick about python exceptions"}
],
"reasoning_effort": "medium"
}'
The answer comes back in choices[0].message.content , and the reasoning in choices[0].message.reasoning . The endpoint also supports tool calls, structured outputs, image inputs, and streaming through the standard Chat Completions fields.
Dell Enterprise Hub
The easiest way to get up and running with your Dell AI Servers (NVIDIA H200, B200, GB200 or GB300) is by installing the dell-ai CLI:
pip install dell-ai && dell-ai login
And use it to run an optimized recipe for Mistral Large 4 on e.g., a NVIDIA B300 node.
dell-ai models deploy --model-id mistralai/Mistral-Large-4-1T-A52B-NVFP4 \
--engine docker \
--platform-id xe9780-nvidia-b300 \
--gpus 4
You can find more about this release in the Dell Enterprise Hub (DEH) .
Try it out
Grab the weights from the Mistral Large 4 collection , run them locally with the GGUFs , or deploy them with Inference Endpoints. We can't wait to see what you build with Le Chonk. Share your fine-tunes, quants and other artefacts on the Hub!
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-11-02 | 8.49 | 19 | 入选 |
| 2026-11-01 | 8.77 | 33 | 未入选 |
| 2026-10-31 | 9.22 | 43 | 未入选 |
| 2026-10-30 | 9.95 | 27 | 未入选 |