Hướng dẫn LysandreJik
<h2>New Models</h2> <h3>Mistral Large 4 (Le Chonk)</h3> <a target="_blank" rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/30755778/688928428-1cff9ca7-19e3-4622-8db6-fb1cfa842579.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwNjk4MjUsIm5iZiI6MTc5NTA2OTUyNSwicGF0aCI6Ii8zMDc1NTc3OC82ODg5Mjg0MjgtMWNmZjljYTctMTllMy00NjIyLThkYjYtZmIxY2ZhODQyNTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE5VDA2MjUyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiNTZmZDRmODg0MjFiNTViNTY4MTE2NWJjNzczNTE2ZTY1OThmMjFhZGE5MDQ4ZjlkNmEwOTljZDIxOGJmMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.ZHIRL1cGCOR-hUHVLPO0TrfN7dAbIPNA8cRSoa3k1J0"><img width="1329" height="780" alt="image" src="https://private-user-images.githubusercontent.com/30755778/688928428-1cff9ca7-19e3-4622-8db6-fb1cfa842579.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwNjk4MjUsIm5iZiI6MTc5NTA2OTUyNSwicGF0aCI6Ii8zMDc1NTc3OC82ODg5Mjg0MjgtMWNmZjljYTctMTllMy00NjIyLThkYjYtZmIxY2ZhODQyNTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE5VDA2MjUyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiNTZmZDRmODg0MjFiNTViNTY4MTE2NWJjNzczNTE2ZTY1OThmMjFhZGE5MDQ4ZjlkNmEwOTljZDIxOGJmMDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.ZHIRL1cGCOR-hUHVLPO0TrfN7dAbIPNA8cRSoa3k1J0" content-type-secured-asset="image/png" style="max-width: 100%; height: auto; max-height: 780px;"></a> <p>Mistral Large 4 is Mistral's largest and most capable model to date: a 1 trillion-parameter natively multimodal Mixture-of-Experts model with 49 billion active parameters per token (52 billion including embeddings and output layers), trained from scratch on 3,800 NVIDIA Grace Blackwell GPUs in Mistral's own datacenters in Europe.</p> <p>Mistral Large 4 unifies instruction following, reasoning, coding, and agentic workflows in a single set of weights. While a generalist model, it shows especially good performance on workloads such as cybersecurity, finance, and law, and it surpasses frontier closed models on visual grounding. It is natively fluent in 160+ languages, including every official language of the European Union.</p> <h4>Key Features</h4> <p>Mistral Large 4 includes the following architectural choices:</p> <ul> <li><strong>~1T total / ~52B active parameters</strong>: granular Mixture-of-Experts with 128 routed experts (4 active per token) and 1 shared expert.</li> <li><strong>1M context length</strong>, for long-context workloads.</li> <li><strong>Multimodal input</strong>: accepts text and image input, with text output. Pixtral-style vision encoder trained to handle variable image sizes and aspect ratios.</li> <li><strong>Instruct and Reasoning functionalities</strong> with function calls, reasoning effort configurable per request.</li> </ul> <p>Mistral Large 4 offers the following capabilities:</p> <ul> <li><strong>Reasoning Mode</strong>: three reasoning efforts — <code>low</code>, <code>medium</code>, <code>high</code> (default) — so the same model can answer a quick chat reply or work through a complex agentic run.</li> <li><strong>Vision</strong>: analyzes images, charts, technical drawings, and documents, with state-of-the-art visual grounding among open weights.</li> <li><strong>Multilingual</strong>: natively fluent in 160+ languages, including all official languages of the European Union.</li> <li><strong>System Prompt</strong>: strong adherence and support for system prompts.</li> <li><strong>Agentic</strong>: native function calling, JSON output, and strict JSON schema enforcement.</li> <li><strong>Cybersecurity</strong>: state of the art among open-weight models for security work, while refusing malicious requests.</li> <li><strong>Large Context Window</strong>: supports a 1M context window.</li> </ul> <p>The model is released under the <a href="https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B/blob/main/LICENSE" rel="nofollow"><strong>Mistral Ecosystem Open-Weight License</strong></a>: a modified version of the MIT license, for both commercial and non-commercial use — operating a Model-as-a-Service business requires a separate commercial license with Mistral.</p> <h4>Recommended Settings</h4> <ul> <li><strong>Reasoning Effort</strong>: <ul> <li><code>'low'</code> / <code>'medium'</code> / <code>'high'</code> — default is <code>'high'</code>.</li> <li>Use <code>reasoning_effort="high"</code> for complex prompts and agentic usage, <code>'low'</code> for fast chat replies and <code>'medium'</code> for day to day usage.</li> </ul> </li> <li><strong>Sampling</strong>: for all reasoning efforts, we recommend the following sampling parameters: <ul> <li><code>temperature=1.0</code></li> <li><code>top_p=0.95</code></li> </ul> </li> <li><strong>System Prompt</strong>: define a clear environment and use case, including guidance on how to effectively leverage tools in agentic systems.</li> <li><strong>Tools</strong>: keep the set of tools well-defined and limit their number to the minimum required for the use case.</li> <li><strong>Context</strong>: the checkpoint supports a 1M context window.</li> </ul> <h2>Breaking changes</h2> <ul> <li>🚨 Separate EP logic into its own file (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5888393994" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/49679" data-hovercard-type="pull_request" data-hovercard-url="/huggingface/transformers/pull/49679/hovercard" href="https://githu
huggingface/transformers releases · 29 thg 10, 2026
Nguyên văn nguồn Chi tiết nguồn