You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e045dcc
Browse filesBrowse the repository at this point in the historyBrowse files
Problem:
trtllm-bench sets disable_mm_encoder for text-only runs, so a serving
config with encoder_attention_backend failed at startup. Under
modeling_v2 auto or require, the Qwen4-Exp target built its own vision
tower and ignored the selection. The Nemotron-H RADIO vision default was
FLASHINFER, whose plan build for a new image shape can stall during
CUDA graph replay. Backend names were repeated outside the config
Literal, and this PR also carried a MiniCPM-V 4.6 fix owned by another
change.
Solution:
Skip the encoder-presence check with one info log when the encoder is
disabled; model support checks still run. Decline the Qwen4-Exp target
when an encoder backend is selected, so auto uses the built-in model and
require names the setting. Default RADIO vision to TRTLLM; VANILLA and
FLASHINFER stay selectable. Read backend names from a named Literal and
document the ModelConfig helpers. Drop the MiniCPM-V 4.6 max_seq_len
change and a test that restated model declarations.
Validation:
CPU suites of the PR and touched files match the previous head apart
from the changed tests, which pass; applicable pre-commit hooks pass and
the serve schemas are unchanged.
Signed-off-by: Yechan Kim <161688079+yechank-nvidia@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/source/features/multi-modality.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,9 +91,9 @@ The table covers every registered multimodal model implementation; model aliases
91
91
|`WhisperForConditionalGeneration`|`audio`| Not supported |
92
92
<!-- encoder-attention-backends:end -->
93
93
94
-
For MiniCPM-V 4.6, the selection applies to its TensorRT-LLM attention layers; its fixed window-merger attention is unchanged.
94
+
For MiniCPM-V 4.6, the selection applies to its TensorRT-LLM attention layers; its fixed window-merger attention is unchanged. The Nemotron-H RADIO vision encoder defaults to `TRTLLM`, and `VANILLA` and `FLASHINFER` remain selectable.
95
95
96
-
Supported entries use TensorRT-LLM's `Attention` and apply encoder overrides explicitly. Other encoders keep their fixed implementation, including Hugging Face attention, direct SDPA, and custom attention paths. Overrides for entries marked "Not supported" fail during initialization, even if the requested value is `VANILLA`. Unknown encoder names and unsupported backends also fail during initialization; Hugging Face `attn_implementation` names are not accepted.
96
+
Supported entries use TensorRT-LLM's `Attention` and apply encoder overrides explicitly. Other encoders keep their fixed implementation, including Hugging Face attention, direct SDPA, and custom attention paths. Overrides for entries marked "Not supported" fail during initialization, even if the requested value is `VANILLA`. Unknown encoder names and unsupported backends also fail during initialization; Hugging Face `attn_implementation` names are not accepted. With `disable_mm_encoder=True`, encoders that the model skips do not use the setting, so text-only runs can reuse a serving configuration.
0 commit comments