-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Add Mistral Small 4 (Pixtral) support #20708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Kangyan-Zhou
merged 30 commits into
sgl-project:main
from
JustinTong0323:mistral4-support
Mar 18, 2026
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
7eeffcb
Add Mistral4/Pixtral support changes
JustinTong0323 c3297fc
lint
JustinTong0323 296fcd5
Add special handling for mistral 4
JustinTong0323 c7457c9
add reasoning parser for mistral
JustinTong0323 557d6fd
Set default reasoning_effort to None in ChatCompletionRequest
JustinTong0323 2c4349f
fix: Add activation type mapping for FlashInfer in moe_runner
JustinTong0323 0322d01
fix: add reasoning request handling for mistral 4
JustinTong0323 4802ecc
fix: streamline vision config handling in get_processor function
JustinTong0323 04a8673
fix: adjust patch grid size calculation to incorporate spatial merge …
JustinTong0323 3ae9d1e
fix(pixtral): use effective_patch_size for image resize and simplify …
JustinTong0323 07744ec
feat(mmmu): add --model and --reasoning-effort flags to benchmark
JustinTong0323 0f1471e
cleanup: remove redundant activation_type mapping and unused ncols va…
JustinTong0323 e10aa5a
fix reasoning trace having answer and benchmark getting no answers ev…
2041c65
possible fix for -HF chkpt
01c72d6
LeanStral works
0da0ae3
Merge branch 'main' into mistral4-support
JustinTong0323 afe8772
lint
JustinTong0323 d508481
fix: update model name in MistralDetector docstring (2602 -> 2603)
JustinTong0323 34a699f
fix: expose mistral load format and update MistralDetector docstring
JustinTong0323 7da7666
fix: use correct custom op name for trtllm_fp8_per_tensor_scale_moe_w…
JustinTong0323 c04df33
feat: auto-detect Mistral native format and set load_format='mistral'
JustinTong0323 e22540b
lint
JustinTong0323 bbc7267
fix: add defaults to PretrainedConfig subclass annotations for transf…
JustinTong0323 638f439
fix: only pass reasoning_effort to chat template when explicitly set
JustinTong0323 77675d1
fix: support multiple consecutive compact tool calls in Mistral detector
JustinTong0323 a644402
fix: workaround Mistral tokenizer marking [THINK]/[/THINK] as special…
JustinTong0323 943abd5
Merge branch 'main' into mistral4-support
JustinTong0323 773f851
fix: support dense EAGLE speculative decoding for Mistral Small 4
JustinTong0323 2daf4cc
fix: respect apply_scale=false in Mistral yarn RoPE config
dbari 5d7e3d5
Merge branch 'main' into mistral4-support
JustinTong0323 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.