Skip to content

[None][doc] Mistral Large 4: install from the release container or wheel - #21425

Merged
yizhang-nv merged 1 commit into
NVIDIA:feat/mistral-large-4from
yizhang-nv:claude/ml4-doc-release-container
Nov 2, 2026
Merged

yizhang-nv merged 1 commit into
NVIDIA:feat/mistral-large-4from
yizhang-nv:claude/ml4-doc-release-container

Conversation

@yizhang-nv

Copy link
Copy Markdown
Member

@coderabbitai summary

Description

The Mistral Large 4 deployment guide said that Mistral Large 4 support requires TensorRT LLM built from source. Mistral Large 4 support from this branch is now released as 1.4.0a0.dev202610310501 (commit 9df1a00ebc):

  • the NGC container nvcr.io/nvidia/tensorrt-llm/release:feat-mistral-large-4-1.4.0a0.dev202610310501 (x86_64 and aarch64);
  • the wheel tensorrt_llm==1.4.0a0.dev202610310501 on the https://pypi.nvidia.com/trtllm_ngcpytorch_preview/ index, built for nvcr.io/nvidia/pytorch:26.09-py3.

This PR updates the guide:

  • "Build TensorRT LLM from Source" becomes "Install TensorRT LLM", with the release container (and its enroot import), the wheel (installed in the NGC PyTorch container and saved with pyxis --container-save), and the existing source build as subsections.
  • The server and quickstart launch commands run in the installed image without a repository mount or PATH change. The source-build launch command is kept unchanged as an alternative, and the quickstart script no longer has to live in the repository.
  • Prerequisites, the accuracy section (the tests need a checkout with requirements-dev.txt) and one troubleshooting row are adjusted to match.

Test Coverage

Documentation only. The new commands were run verbatim on one 4x GB300 node, using the public mistralai/Mistral-Large-4-1T-A52B-NVFP4 checkpoint and the TEP4 + DSpark configuration from the guide:

Check Release container (aarch64 digest sha256:42dacaa1…) Wheel installed with the guide's srun ... --container-save command
trtllm-serve launch command ready in about 6 min ready in about 6.5 min
Guide requests (chat, reasoning, tool call, structured output, image, streaming) all HTTP 200; outputs identical to a source build of fece87edc4 all HTTP 200; identical outputs
API behavior and limitation claims in the guide 10/10 as documented 10/10 as documented
Quickstart command passes, same output passes, same output
test_gsm8k (NVFP4 TEP4) PASSED, 91.547 (reference 91.926, threshold 90.430) PASSED, 91.547

The wheel installation keeps the container's PyTorch (2.14.0a0+b2c75dd062.nv26.09) and installs mistral-common 1.13.0, llguidance 1.7.6 and xgrammar 0.1.32. pip reports conflicts for two packages it downgrades that TensorRT LLM does not use (setuptools for nvidia-modelopt, nvidia-cudnn-frontend for Transformer Engine). The source-build path was not rerun; its commands are unchanged.

pre-commit passes on the changed file.

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

🤖 Generated with Claude Code

The deployment guide required a source build. Mistral Large 4 support is
now released as the NGC container
nvcr.io/nvidia/tensorrt-llm/release:feat-mistral-large-4-1.4.0a0.dev202610310501
and as a wheel on the trtllm_ngcpytorch_preview index. Document both,
make the launch and quickstart commands use the installed image, and
keep the source build as an alternative with its own launch command.

Signed-off-by: Yi Zhang <[email protected]>
@yizhang-nv
yizhang-nv requested a review from a team as a code owner November 2, 2026 07:42
@yizhang-nv
yizhang-nv requested review from arysef and chang-l November 2, 2026 07:42
@yizhang-nv

Copy link
Copy Markdown
Member Author

/bot skip -m "Doc changes"

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental) --high-priority]

Launch build/test pipelines. All previously running jobs will be killed.

--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.

--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Supports wildcard * for pattern matching (e.g., "*PerfSanity*" matches all stages containing PerfSanity). Examples: "A10-PyTorch-1, xxx", "PerfSanity". The patterns "*", "*Post-Merge*", and "*PerfSanity*", including equivalent escaped or repeated-star forms and their use in comma-separated lists, require the ci: post-merge approved PR label. Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Requires the ci: full pre-merge approved label on the PR (ask a member of NVIDIA/trt-llm-ci-approvers). Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline. Requires the ci: full pre-merge approved label on the PR (ask a member of NVIDIA/trt-llm-ci-approvers).

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline. Requires the ci: post-merge approved PR label applied by an active member of NVIDIA/trt-llm-ci-approvers. The approval label remains in place when new commits are pushed.

--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Supports wildcard * for pattern matching. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx", --extra-stage "Post-Merge". The patterns "*", "*Post-Merge*", and "*PerfSanity*", including equivalent escaped or repeated-star forms and their use in comma-separated lists, require the ci: post-merge approved PR label.

--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.

--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.

--high-priority (OPTIONAL) : Run the pipeline with high priority. This option is restricted to authorized users only and will route the job to a high-priority queue.

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

@yizhang-nv

Copy link
Copy Markdown
Member Author

/bot skip --comment "Doc changes"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81962 [ skip ] triggered by Bot. Commit: 1844bac Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81962 [ skip ] completed with state SUCCESS. Commit: 1844bac
Skipping testing for commit 1844bac

Link to invocation

@yizhang-nv
yizhang-nv merged commit 5f00308 into NVIDIA:feat/mistral-large-4 Nov 2, 2026
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 8, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main 19c1f46:

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the six infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- Per-rank spec-decoding stats travel in main's versioned rank-state
  frame (version -2 adds a spec snapshot); KVCacheManagerV2 keeps
  has_buffer next to main's mixed-precision get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds render_needs_media,
  forced_tool_call_decoding ("native" required-tool mode) and
  validate_chat_request. `store` follows main (accepted and ignored).
- Warmup/ADP dummies keep the joint-KV-reuse draft allocation on main's
  dummy request arguments.
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python 0.7.2 and xgrammar 0.2.8 from main;
  llguidance 1.7.6 and mistral-common>=1.13.0 (Python >= 3.11) from the
  feature branch.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 12, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main 19c1f46:

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the six infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- Per-rank spec-decoding stats travel in main's versioned rank-state
  frame (version -2 adds a spec snapshot); KVCacheManagerV2 keeps
  has_buffer next to main's mixed-precision get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds render_needs_media,
  forced_tool_call_decoding ("native" required-tool mode) and
  validate_chat_request. `store` follows main (accepted and ignored).
- Warmup/ADP dummies keep the joint-KV-reuse draft allocation on main's
  dummy request arguments.
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python 0.7.2 and xgrammar 0.2.8 from main;
  llguidance 1.7.6 and mistral-common>=1.13.0 (Python >= 3.11) from the
  feature branch.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 13, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main 19c1f46:

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds render_needs_media,
  forced_tool_call_decoding ("native" required-tool mode) and
  validate_chat_request. `store` follows main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python 0.7.2 and xgrammar 0.2.8 from main;
  llguidance 1.7.6 and mistral-common>=1.13.0 (Python >= 3.11) from the
  feature branch.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 17, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main (first 19c1f46, now 3705333 with NVIDIA#22185):

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds forced_tool_call_decoding
  ("native" required-tool mode) and validate_chat_request. `store` follows
  main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python and xgrammar from main; llguidance and
  mistral-common from NVIDIA#22185.

Stacked on NVIDIA#22185 (Mistral-native serving). The Mistral-native code that
selection, the xgrammar and llguidance Tekken tokenizers, mistral-common
chat rendering with images and the mistral_native serving extension, the
KV-cache-aware router, trtllm-bench and lm-eval's deferred native chat, and
passing history tool-call arguments to mistral-common as sent. On top of it,
Mistral Large 4 keeps:

- its model type among the native Mistral model types, with its
  placeholder metadata;
- MistralLarge4ServingExtension as a subclass of the Mistral-native one
  (which now registers for mistral_common only), adding the output-budget
  check, the forced tool-call grammar and the raw structured-output grammar;
- the llguidance JSON grammar that may open with a [THINK] section and the
  tool-call grammar, from mistral-common's grammar factory;
- a Mistral Large 4 prompt's token ids with one [IMG] per image expanded
  to the image grids (other checkpoints keep NVIDIA#22185's check);
- lm-eval's native chat token ids and scoring on the reasoning parser's
  content, and mistral-style tool-call ids.

The feature branch's own copies of these paths, its native_chat processor
branch and its coercion of malformed history tool-call arguments are
dropped.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 20, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main (first 19c1f46, now 3705333 with NVIDIA#22185):

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds forced_tool_call_decoding
  ("native" required-tool mode) and validate_chat_request. `store` follows
  main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python and xgrammar from main; llguidance and
  mistral-common from NVIDIA#22185.

Stacked on NVIDIA#22185 (Mistral-native serving). The Mistral-native code that
selection, the xgrammar and llguidance Tekken tokenizers, mistral-common
chat rendering with images and the mistral_native serving extension, the
KV-cache-aware router, trtllm-bench and lm-eval's deferred native chat, and
passing history tool-call arguments to mistral-common as sent. On top of it,
Mistral Large 4 keeps:

- its model type among the native Mistral model types, with its
  placeholder metadata;
- MistralLarge4ServingExtension as a subclass of the Mistral-native one
  (which now registers for mistral_common only), adding the output-budget
  check, the forced tool-call grammar and the raw structured-output grammar;
- the llguidance JSON grammar that may open with a [THINK] section and the
  tool-call grammar, from mistral-common's grammar factory;
- a Mistral Large 4 prompt's token ids with one [IMG] per image expanded
  to the image grids (other checkpoints keep NVIDIA#22185's check);
- lm-eval's native chat token ids and scoring on the reasoning parser's
  content, and mistral-style tool-call ids.

The feature branch's own copies of these paths, its native_chat processor
branch and its coercion of malformed history tool-call arguments are
dropped.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 23, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main (first 19c1f46, now 3705333 with NVIDIA#22185):

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds forced_tool_call_decoding
  ("native" required-tool mode) and validate_chat_request. `store` follows
  main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python and xgrammar from main; llguidance and
  mistral-common from NVIDIA#22185.

Stacked on NVIDIA#22185 (Mistral-native serving). The Mistral-native code that
selection, the xgrammar and llguidance Tekken tokenizers, mistral-common
chat rendering with images and the mistral_native serving extension, the
KV-cache-aware router, trtllm-bench and lm-eval's deferred native chat, and
passing history tool-call arguments to mistral-common as sent. On top of it,
Mistral Large 4 keeps:

- its model type among the native Mistral model types, with its
  placeholder metadata;
- MistralLarge4ServingExtension as a subclass of the Mistral-native one
  (which now registers for mistral_common only), adding the output-budget
  check, the forced tool-call grammar and the raw structured-output grammar;
- the llguidance JSON grammar that may open with a [THINK] section and the
  tool-call grammar, from mistral-common's grammar factory;
- a Mistral Large 4 prompt's token ids with one [IMG] per image expanded
  to the image grids (other checkpoints keep NVIDIA#22185's check);
- lm-eval's native chat token ids and scoring on the reasoning parser's
  content, and mistral-style tool-call ids.

The feature branch's own copies of these paths, its native_chat processor
branch and its coercion of malformed history tool-call arguments are
dropped.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 23, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main (first 19c1f46, now 3705333 with NVIDIA#22185):

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds forced_tool_call_decoding
  ("native" required-tool mode) and validate_chat_request. `store` follows
  main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python and xgrammar from main; llguidance and
  mistral-common from NVIDIA#22185.

Stacked on NVIDIA#22185 (Mistral-native serving). The Mistral-native code that
selection, the xgrammar and llguidance Tekken tokenizers, mistral-common
chat rendering with images and the mistral_native serving extension, the
KV-cache-aware router, trtllm-bench and lm-eval's deferred native chat, and
passing history tool-call arguments to mistral-common as sent. On top of it,
Mistral Large 4 keeps:

- its model type among the native Mistral model types, with its
  placeholder metadata;
- MistralLarge4ServingExtension as a subclass of the Mistral-native one
  (which now registers for mistral_common only), adding the output-budget
  check, the forced tool-call grammar and the raw structured-output grammar;
- the llguidance JSON grammar that may open with a [THINK] section and the
  tool-call grammar, from mistral-common's grammar factory;
- a Mistral Large 4 prompt's token ids with one [IMG] per image expanded
  to the image grids (other checkpoints keep NVIDIA#22185's check);
- lm-eval's native chat token ids and scoring on the reasoning parser's
  content, and mistral-style tool-call ids.

The feature branch's own copies of these paths, its native_chat processor
branch and its coercion of malformed history tool-call arguments are
dropped.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 24, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main (first 19c1f46, now 3705333 with NVIDIA#22185):

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds forced_tool_call_decoding
  ("native" required-tool mode) and validate_chat_request. `store` follows
  main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python and xgrammar from main; llguidance and
  mistral-common from NVIDIA#22185.

Stacked on NVIDIA#22185 (Mistral-native serving). The Mistral-native code that
selection, the xgrammar and llguidance Tekken tokenizers, mistral-common
chat rendering with images and the mistral_native serving extension, the
KV-cache-aware router, trtllm-bench and lm-eval's deferred native chat, and
passing history tool-call arguments to mistral-common as sent. On top of it,
Mistral Large 4 keeps:

- its model type among the native Mistral model types, with its
  placeholder metadata;
- MistralLarge4ServingExtension as a subclass of the Mistral-native one
  (which now registers for mistral_common only), adding the output-budget
  check, the forced tool-call grammar and the raw structured-output grammar;
- the llguidance JSON grammar that may open with a [THINK] section and the
  tool-call grammar, from mistral-common's grammar factory;
- a Mistral Large 4 prompt's token ids with one [IMG] per image expanded
  to the image grids (other checkpoints keep NVIDIA#22185's check);
- lm-eval's native chat token ids and scoring on the reasoning parser's
  content, and mistral-style tool-call ids.

The feature branch's own copies of these paths, its native_chat processor
branch and its coercion of malformed history tool-call arguments are
dropped.

Signed-off-by: Yi Zhang <[email protected]>
yizhang-nv added a commit to yizhang-nv/TensorRT-LLM that referenced this pull request Nov 26, 2026
Squash of the Mistral Large 4 work on feat/mistral-large-4 (3fb4be0),
applied on main (first 19c1f46, now 3705333 with NVIDIA#22185):

- fece87e [None][feat] Add Mistral Large 4 support
- 9df1a00 [None][fix] Keep requirements installable on Python 3.10
- 5f00308 [None][doc] Mistral Large 4: install from the release container
  or wheel (NVIDIA#21425)
- bed3750 [None][refactor] Mistral Large 4: own the checkpoint weight
  loader and mapper (NVIDIA#21548)
- 3fb4be0 [None][chore] Mistral Large 4: remove defensive checks and
  leftovers of removed paths (NVIDIA#21616)

Not carried: the runtime fixes main took in NVIDIA#21788 (FlashMLA GIL
release, attention-DP dummy paired draft KV, context warmup beside a
capturable guided decoder, per-rank spec-decoding stats), and the six
infra commits already on main (NVIDIA#21133, NVIDIA#19557,
(cf7ae79, 1.4.0a0).

Adapted to main:

- modeling_v2 routing: the family registers its route with
  @routes("MistralLarge4ForCausalLM") and models/__init__.py imports it;
  route takes (model_config, llm_args, compute_capability). The routing
  tests use main's per-family sm_103 fixture; the engine-config tests
  record the route through registered_routes and resolve on one rank.
- thop_attention call sites use main's argument names (workspace,
  spec_decoding_position_offsets); top_k kernels come from
  _torch/kernels/blackwell/top_k.
- Catalog: the targets' cells move into each op test's TARGET_CELLS
  (comm ops keep them in CELLS, as main's comm ops do); bmm_out keeps
  main's op.
- DSpark/DFlash: the native drafter's hooks sit on main's refactored
  worker (block placement, vocab-parallel drafting, Markov TP exchange);
  the recurrent Markov head takes its hidden states directly and the
  fused paged-latent path is not taken for drafters with their own block
  embedding.
- KVCacheManagerV2 keeps has_buffer next to main's mixed-precision
  get_buffers.
- Serving: the chat path runs on main's prompt pipeline and
  ServingExtension hooks; Mistral Large 4 adds forced_tool_call_decoding
  ("native" required-tool mode) and validate_chat_request. `store` follows
  main (accepted and ignored).
- Tests follow main's engine/runner refactor (ModelEngine,
  filter_prefill_capture_num_tokens, removed validate_feature_combination),
  main's scoped reference precision (true_fp32_matmul) and scoped engine
  environments (scoped_env_overrides).
- Dependencies: flashinfer-python and xgrammar from main; llguidance and
  mistral-common from NVIDIA#22185.

Stacked on NVIDIA#22185 (Mistral-native serving). The Mistral-native code that
selection, the xgrammar and llguidance Tekken tokenizers, mistral-common
chat rendering with images and the mistral_native serving extension, the
KV-cache-aware router, trtllm-bench and lm-eval's deferred native chat, and
passing history tool-call arguments to mistral-common as sent. On top of it,
Mistral Large 4 keeps:

- its model type among the native Mistral model types, with its
  placeholder metadata;
- MistralLarge4ServingExtension as a subclass of the Mistral-native one
  (which now registers for mistral_common only), adding the output-budget
  check, the forced tool-call grammar and the raw structured-output grammar;
- the llguidance JSON grammar that may open with a [THINK] section and the
  tool-call grammar, from mistral-common's grammar factory;
- a Mistral Large 4 prompt's token ids with one [IMG] per image expanded
  to the image grids (other checkpoints keep NVIDIA#22185's check);
- lm-eval's native chat token ids and scoring on the reasoning parser's
  content, and mistral-style tool-call ids.

The feature branch's own copies of these paths, its native_chat processor
branch and its coercion of malformed history tool-call arguments are
dropped.

Signed-off-by: Yi Zhang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants