Skip to content

[TRTLLM-17383][infra] Download Boost from AWS Artifactory - #21133

Merged
chzblych merged 1 commit into
NVIDIA:mainfrom
sharabeshj-nvda:TRTLLM-17383-migrate-boost-to-aws-artifactory
Oct 28, 2026
Merged

chzblych merged 1 commit into
NVIDIA:mainfrom
sharabeshj-nvda:TRTLLM-17383-migrate-boost-to-aws-artifactory

Conversation

@sharabeshj-nvda

@sharabeshj-nvda sharabeshj-nvda commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Download Boost in the CI image builds from sw-dl-triton-generic-local on artifactory.nvidia.com (AWS Artifactory) instead of the same repository on urm. Only the host in BOOST_URL in docker/common/install_base.sh changes. Builds without GITHUB_MIRROR still download Boost from archives.boost.io.

Why:

  • Since 2026-10-27, urm answers anonymous reads from sw-dl-triton-generic-local with HTTP 401. install_base.sh downloads Boost from there whenever GITHUB_MIRROR is set, which every CI image build does, so every image build fails in the devel stage's first RUN with Username/Password Authentication Failed. BuildDockerImages build 177 failed this way in all 14 attempts, on x86_64 and SBSA. Main's nightly image build, BuildDockerImages build 176, earlier the same day, still downloaded the file.
  • artifactory.nvidia.com has the same repository, with the file at the same path and readable anonymously. It is the same file: 136,670,223 bytes with SHA-256 4b2136f98bdd1f5857f1c3dea9ac2018effe65286cf251534b6ae20cc45e1847, the checksum boost.io publishes for boost_1_80_0.tar.gz.
  • Boost is the only file this repository downloads from sw-dl-triton-generic-local, on main and on release/1.3. The image builds' other urm downloads still work: BuildDockerImages build 177 pulled its base images from urm before it failed, and the github-go-remote mirror that GITHUB_MIRROR points to still answers anonymous reads.

Sibling PR on release/1.3: #21134. It makes the same change there, so the line reads the same on both branches.

Impact:

  • The images don't change, because the file is byte-identical.
  • artifactory.nvidia.com answers the download with a redirect to its CDN, which wget follows. No credential, Jenkins or Dockerfile change is needed.

Test Coverage

  • Outside CI, install_boost's wget command, run anonymously against the new URL, followed the redirect and downloaded the 136,670,223-byte file with the SHA-256 above. The archive contains boost_1_80_0/boost/, the directory install_boost installs.
  • /bot run --stage-list "Build-Docker-Images" builds every image family on x86_64 and SBSA: the CI images (Ubuntu and Rocky Linux), the internal release images, and the NGC devel and release images. Each runs install_base.sh. In each make …_push stage's log, BOOST_URL should be the artifactory.nvidia.com URL, and wget should report [136670223/136670223] -> "/tmp/boost.tar.gz". The Register NGC Image For Security Check stage fails in pre-merge image builds whatever the images do (it failed in BuildDockerImages build 169, where every image built), so judge the run by its make …_push stages, not its overall result.

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

Dev Engineer Review

When GITHUB_MIRROR is set, BOOST_URL now uses artifactory.nvidia.com. Without the mirror, it still uses archives.boost.io. Both paths feed the existing install_boost function, which extracts Boost 1.80.0 and installs its headers. No other code changes are reported.

The PR author reports that the Artifactory archive matches the expected size and SHA-256 checksum. The requested Docker image build has no reported outcome, so CI validation remains unconfirmed.

QA Engineer Review

No test changes.

Per-File QA Perspective

  • docker/common/install_base.sh: Verify Boost downloads in builds with and without GITHUB_MIRROR, and confirm that both paths install Boost 1.80.0 headers. The requested Docker image build has no reported result.

urm's sw-dl-triton-generic-local has refused anonymous reads (HTTP 401)
since 2026-10-27, and install_base.sh downloads Boost from it whenever
GITHUB_MIRROR is set, as it is in every CI image build. So every devel
image build now fails. Download the same file from that repository on
artifactory.nvidia.com, which serves it to anonymous reads. Its SHA-256
matches the boost.io release.

Signed-off-by: Sharabesh Jayaraman <[email protected]>
@sharabeshj-nvda

Copy link
Copy Markdown
Collaborator Author

/bot run --stage-list "Build-Docker-Images"

@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between b542326 and f0d90a4.

Files selected for processing: 1
  • docker/common/install_base.sh

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Walkthrough

When GITHUB_MIRROR is set, the Boost archive URL now uses artifactory.nvidia.com. The non-mirror URL is unchanged.

Changes

Boost mirror URL

Layer / File(s) Summary
Update mirrored Boost archive host
docker/common/install_base.sh
The mirror branch’s Boost archive URL now uses artifactory.nvidia.com instead of urm.nvidia.com.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: tburt-nv

Merge Risk: Minimal · up to f0d90

The mirror URL update is limited in scope, with no identified merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the infrastructure change: downloading Boost from AWS Artifactory.
Description check Passed The description explains the issue, solution, impact, and validation plan. It includes the required Description, Test Coverage, and PR Checklist sections, with the checklist marked as reviewed.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #80978 [ run ] triggered by Bot. Commit: f0d90a4 Link to invocation

@github-actions

Copy link
Copy Markdown

Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements.

@chzblych
chzblych disabled auto-merge October 28, 2026 01:32
@chzblych
chzblych merged commit eb6fc51 into NVIDIA:main Oct 28, 2026
22 checks passed
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #80978 [ run ] completed with state ABORTED. Commit: f0d90a4

Link to invocation

chang-l pushed a commit that referenced this pull request Oct 28, 2026
Signed-off-by: Sharabesh Jayaraman <[email protected]>
(cherry picked from commit eb6fc51)
Signed-off-by: Chang Liu <[email protected]>
chzblych pushed a commit that referenced this pull request Oct 28, 2026
Signed-off-by: Sharabesh Jayaraman <[email protected]>
(cherry picked from commit eb6fc51)
Signed-off-by: Yanchao Lu <[email protected]>
chzblych pushed a commit that referenced this pull request Oct 28, 2026
Signed-off-by: Sharabesh Jayaraman <[email protected]>
(cherry picked from commit eb6fc51)
Signed-off-by: Yanchao Lu <[email protected]>
chzblych pushed a commit that referenced this pull request Oct 28, 2026
Signed-off-by: Sharabesh Jayaraman <[email protected]>
(cherry picked from commit eb6fc51)
Signed-off-by: Yanchao Lu <[email protected]>
EmmaQiaoCh pushed a commit that referenced this pull request Oct 30, 2026
Signed-off-by: Sharabesh Jayaraman <[email protected]>
(cherry picked from commit eb6fc51)
Signed-off-by: EmmaQiaoCh <[email protected]>
brnguyen2 pushed a commit that referenced this pull request Nov 4, 2026
…#21133 to feat/minimax-m3.1-flash) (#21653)

Signed-off-by: Sharabesh Jayaraman <[email protected]>
Signed-off-by: Pranav Shrestha <[email protected]>
Co-authored-by: Sharabesh Jayaraman <[email protected]>
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]>
Tabrizian pushed a commit that referenced this pull request Nov 13, 2026
Signed-off-by: Sharabesh Jayaraman <[email protected]>
(cherry picked from commit eb6fc51)
Signed-off-by: Iman Tabrizian <[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants