Repository navigation
[None][doc] Mistral Large 4: install from the release container or wheel - #21425
yizhang-nv merged 1 commit into
Conversation
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]>
|
/bot skip -m "Doc changes" |
GitHub Bot Help
Provide a user friendly way for developers to interact with a Jenkins server. Run See details below for each supported subcommand. Details
Launch build/test pipelines. All previously running jobs will be killed.
kill
Kill all running builds associated with pull request. skip
Skip testing for latest commit on pull request. 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. |
|
/bot skip --comment "Doc changes" |
|
PR_Github #81962 [ skip ] triggered by Bot. Commit: |
|
PR_Github #81962 [ skip ] completed with state |
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
@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(commit9df1a00ebc):nvcr.io/nvidia/tensorrt-llm/release:feat-mistral-large-4-1.4.0a0.dev202610310501(x86_64 and aarch64);tensorrt_llm==1.4.0a0.dev202610310501on thehttps://pypi.nvidia.com/trtllm_ngcpytorch_preview/index, built fornvcr.io/nvidia/pytorch:26.09-py3.This PR updates the guide:
enroot import), the wheel (installed in the NGC PyTorch container and saved with pyxis--container-save), and the existing source build as subsections.PATHchange. The source-build launch command is kept unchanged as an alternative, and the quickstart script no longer has to live in the repository.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-NVFP4checkpoint and the TEP4 + DSpark configuration from the guide:sha256:42dacaa1…)srun ... --container-savecommandtrtllm-servelaunch commandfece87edc4test_gsm8k(NVFP4 TEP4)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 (setuptoolsfor nvidia-modelopt,nvidia-cudnn-frontendfor 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-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin 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