AIsaAIsaStudio English 打开 AIsa Studio

Mistral 发布开源权重多模态大模型 Mistral Large 4,Hugging Face 提供部署与微调支持

原标题:Welcome Le Chonk: Mistral Large 4 on Hugging Face

Mistral 发布 Mistral Large 4(Le Chonk),一个 1T 总参数、49B 激活参数的多模态 MoE 开源权重模型,上下文窗口 1M token,提供 FP8 和 NVFP4 两种官方变体,采用 Mistral Ecosystem Open-Weight License。模型在 Artificial Analysis Cyber Index 的漏洞复现并修复测试中得分 82%,为该指数内已报告最高分,Cybench 解题率 93%,Coding Agent Index 得分 49.8%,领先 DeepSeek V4 Pro 0813 和 Qwen3.8 Max,截至 2026 年 10 月 29 日在 Artificial Analysis Intelligence 指数开源权重模型中排第五。架构上采用 MLA 加 DeepSeek Sparse Attenti…

为什么值得看

原文除发布信息外给出架构细节、安全能力基准和多套部署实测数据,读者可以据此评估模型用途与部署成本。

阅读原文 ↗10月30日 AI 日报

本页的摘要、推荐理由与解读出自 AIsa Studio 的 AI 风向智能体,原文版权归原作者所有。

深度解读

发生了什么

Mistral 发布了开源权重的多模态大模型 Mistral Large 4(别名 Le Chonk)。这是一个多模态、多语言的 MoE(混合专家)模型,接受文本和图像输入并生成文本,总参数量约 1T,激活参数 49B,上下文窗口 1M tokens。模型提供 FP8 和 NVFP4 两个官方变体,另有 Unsloth 和 llama.cpp 团队制作的 GGUF 版本,采用 Mistral Ecosystem Open-Weight License(一个 MIT 衍生许可证,对 model-as-a-service 设有限制)发布。

关键细节

  • 架构:文本解码器共 72 层,隐藏维度 6,144,64 个注意力头,结合多头潜在注意力(MLA)与 DeepSeek Sparse Attention(DSA)索引器,DSA 为每个 query 选择最多 2,048 个 key 位置。除第一层为稠密前馈网络外,其余 71 层均为 MoE 结构,路由器从 128 个专家中为每个 token 选择 4 个,外加 1 个共享专家。RoPE 采用 3:1 的 RoPE-NoPE 交替模式,并使用带每频率可学习乘子的 LeRope。视觉侧配备 1.6B 参数的 Pixtral 编码器。
  • 性能:在 Artificial Analysis Intelligence 指数上位列开源权重模型第五。编码代理综合指数得分 49.8%,超过 DeepSeek V4 Pro 0813 和 Qwen3.8 Max;在漏洞复现与修补测试中得分 82%,为该测试最高报告分;Cybench 40 个安全竞赛题解题率 93%;Lakera B3 基准上抗攻击率 93.3%。
  • 安全能力定位:模型在 Artificial Analysis Cyber Index 中位列全球前五。Mistral 报告称多个闭源前沿模型在该测试中因拒绝尝试而接近零分。模型主打防御性安全工作,同时在 JailbreakBench、StrongREJECT 和 AgentHarm 的网络提示上,拒绝率高于任何其他开源权重模型。
  • 生态支持:transformers、vLLM、llama.cpp 均获 day-0 支持;TRL 提供微调支持(示例在 8xB300 节点上运行);Inference Endpoints 提供 8 x H200 部署配方,借助内置 DSpark 草稿头实现投机解码加速;Dell Enterprise Hub 也有部署方案。

为什么重要

开源权重模型在网络安全领域能力的意义在于部署可控性。原文指出:「Vulnerability research and incident response often appear like attacks in model input, so closed source filters can block them」,且依赖 API 的团队可能在事件响应中途失去访问权限。开放权重让使用策略和部署都由用户掌控,也使研究者可以直接测量模型的拒绝行为而非依赖厂商描述。此外,「reproduce-then-patch tasks use a verifiable reward」,适合构建 RL 环境来训练更小的安全模型,例如用 TRL 基于 Mistral Large 4 的轨迹微调小模型来修补自己的代码库。1M 上下文、多模态输入加上 MoE 稀疏架构,也使其在开源生态中成为编码、代理工作流的竞争性选择。

对谁有影响

  • 安全从业者:可围绕自身代码库、崩溃日志和恶意软件样本构建系统,用于漏洞分析、漏洞优先级排序和编写检测规则。
  • 社区开发者与研究者:可基于模型轨迹微调更小的安全模型,构建 RL 环境,或直接测量拒绝行为。
  • 自部署团队:可通过 llama.cpp 本地运行(2-bit 量化可在单台 512GB 统一内存的 Apple Silicon Ultra 上运行),或通过 vLLM、Inference Endpoints、Dell Enterprise Hub 部署。
全文翻译

以下翻译只覆盖原文的前一部分,其余内容请看下方原文。

Mistral Large 4(又名 Le Chonk)是 Mistral 推出的一款多模态、多语言、混合专家(MoE)模型。它接受文本和图像作为输入,并生成文本。该模型拥有约 1T 总参数,49B 活跃参数,上下文窗口为 100 万 tokens。

该模型发布了两个官方变体:

  1. FP8
  2. 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 集合 中找到所有检查点。

网络安全能力

在 Artificial Analysis 网络安全指数测试中,Mistral Large 4 得分 82%。该测试要求模型复现开源软件中的真实漏洞,然后修补该软件。Mistral 报告称,几个封闭的前沿模型在同一测试中得分接近零,因为它们拒绝尝试执行此类工作。这对防御者来说至关重要,因为修复漏洞通常需要复现漏洞。在 Mistral 的内部测试中,Mistral Large 4 还用于恶意软件分析、漏洞优先级排序和编写检测规则,而这些并非模型显式训练的内容。

Mistral 主要将该模型定位为用于防御性安全工作。漏洞研究和事件响应在模型输入中往往看起来像攻击,因此闭源过滤器可能会阻止它们。依赖 API 的团队也可能在事件处理过程中失去访问权限。至关重要的是,开放权重模型让用户同时掌控使用策略和部署。尽管如此,该模型仍然会拒绝有害请求:在 JailbreakBench、StrongREJECT 和 AgentHarm 的网络安全提示下,其平均拒绝率高于任何其他开放权重模型。

对于社区建设者而言,像 Mistral Large 4 这样的开放权重模型解锁了大量下游用例。你可以围绕自己的代码库、崩溃日志和恶意软件样本来构建自己的网络安全系统。例如,使用 TRL 你可以从 Mistral Large 4 的数据中微调 较小的模型以修补你的代码库。事实上,复现后修补任务使用可验证的奖励,因此适合用于进一步强化小型安全模型的 RL 环境。开放权重还允许研究人员直接测量模型的拒绝行为,而不是依赖提供商的描述。

简而言之,像 ML4 这样公开的网络安全能力极大地推动了社区的发展。

我们采访了 Pierre Stock,讨论了该模型的网络安全能力,你可以在此观看。

架构

ML4

Mistral Large 4 的文本解码器有 72 层,隐藏维度为 6,144,包含 64 个注意力头。其注意力块结合了多头潜在注意力(MLA)与 DeepSeek 稀疏注意力(DSA)索引器(这是 GLM 5.3 等其他模型中的一个方向)。MLA 保持压缩的 KV 表示,而 DSA 为每个查询选择多达 2,048 个键位置。

Attention
对于每个解码器块,存在 3:1 的 RoPE 到 NoPE 模式,即 3 个解码器层使用 RoPE,每第四个层使用 NoPE。该模型还在层之间共享 KV 状态。 第一个解码器层使用密集前馈网络。其余 71 层使用 MoE 块,其中 softmax 路由为每个 token 从 128 个专家中选择四个。一个共享专家始终与选定的专家一起运行,因此每个 token 共有 5 个活跃专家。

关于 RoPE,Mistral 使用了 LeRope,这是一种经过 YaRN 缩放的 RoPE,每个频率有一个学习到的乘数。

Experts

视觉编码器

Mistral Large 4 采用了 1.6B 参数的 Pixtral 编码器。Pixtral 有 30 层,隐藏维度为 2,048,包含 16 个注意力头。它使用 14 × 14 的补丁,并带有空间合并大小为 2 的补丁合并投影器。你可以在下面看到编码器流水线。

Image Encoder

基准测试结果

Mistral Large 4 在编码、网络安全、多模态理解和智能体工作流方面提供了强大的基准性能,使其成为开放权重生态系统中具有竞争力的补充。截至 2026 年 10 月 29 日,该模型在 Artificial Analysis 智力指数上排名第五的最佳开放权重模型。

在编码方面,ML4 在 DeepSWE v1.1 上达到 61.7%,在 SWE-Atlas-QnA 上达到 59.4%,在 Terminal-Bench 4 上达到 28.3%。其综合 编码代理指数得分为 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。GGUF 量化版本可从 GGUF 和 llama.cpp 团队 获取。我们提供通过推理端点远程部署的选项,并通过推理提供商使用无服务器推理。

Transformers

Transformers 实现提供了 AutoModelForMultimodalLM,AutoProcessor 负责准备对话和图像输入。Mistral Large 4 可以接受 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 草稿生成器,以在 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

查看原文

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:

  1. FP8
  2. 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

ML4

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.

Attention
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.

Experts

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.

Image Encoder

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,
)

# only text
text_messages = [
    {
        "role": "user",
        "content": "Who are you?"
    }
]

# text + image
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 <your-key>" \
    -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.

# torchrun --nproc-per-node 8 sft.py
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")
# the assistant turns carry reasoning, so render them in reasoning mode
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!

原文版权归 Hugging Face Blog 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。

事件综述

Mistral 发布开源万亿参数多模态模型 Mistral Large 4(Le Chonk)

2026 年 10 月 29 日,Mistral 发布开源权重多模态大模型 Mistral Large 4(昵称 Le Chonk),权重上线 Hugging Face。模型为总参数约 1 万亿(激活参数约 49B–52B)的 MoE 架构,支持 1M token 上下文、文本与图像输入及 160+ 种语言,在 Mistral 位于欧洲的自有数据中心用 3,800 块 NVIDIA Grace Blackwell GPU 训练,采用修改版 MIT 许可(Mistral Ecosystem Open-Weight License),商用需另行授权。定价为输入 $0.70/M、输出 $2.10/M token,支持 Low/Medium/High 三档推理模式,可通过 Hugging Face、Microsoft Foundry、OpenRouter、NVIDIA NIM 获取;Hugging Face 提供 transformers 和 llama.cpp 的 day-0 支持及量化版本。官方称其在 FrontierCode 开放模型中排名第一、Terminal-Bench 4.0 得分 41%(此前预览版为 28%)、Coding Agent Index 得分约 48–49.8%,与 GLM-5.3 基本持平且少用 47% token,但整体智能指数(26 分)仍低于 DeepSeek V4.1 Flash 和 GLM-5.3(均 32 分)。网络安全方向上,官方称恶意请求平均拒绝率 96.6%,并经 CrowdStrike、Cloudflare 等厂商测试;早先报道称 Artificial Analysis Cyber Index 得分 82%(该指数已报告最高分),Mistral 官方博客则称该指数得分为 51%,两者不一致。10 月 30 日,Mistral 宣布完成三周集中训练的更新版本,第三方评测称其编码能力位居开源模型第二。

其他来源的报道 8