Repository navigation
[TRTLLM-14616][feat] add VisualGen fp8 row-wise quant + autotuner - #16847
Conversation
Signed-off-by: Olivia Stoner <[email protected]>
|
/bot run --disable-fail-fast |
|
PR_Github #61636 [ run ] triggered by Bot. Commit: |
|
PR_Github #61636 [ run ] completed with state
|
… support Signed-off-by: Olivia Stoner <[email protected]>
|
/bot run --disable-fail-fast |
|
PR_Github #63152 [ run ] triggered by Bot. Commit: |
|
PR_Github #63152 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds vectorized CUDA per-token FP8 quantization for BF16, FP16, and FP32 inputs. Adds Torch autotuning between TRT-LLM and vectorized tactics. Adds dynamic row-wise FP8 weight quantization and visual-generation integration coverage. ChangesFP8 quantization integration
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The PR adds VisualGen FP8 row-wise quantization and autotuning with associated tests; no actionable merge-blocking risk remains based on the supplied current-head evidence. Sequence Diagram(s)sequenceDiagram
participant FP8RowwiseLinearMethod
participant tunable_fp8_per_token_quant
participant Fp8PerTokenQuantRunner
participant vectorized_per_token_fp8_quant
FP8RowwiseLinearMethod->>tunable_fp8_per_token_quant: quantize activation rows
tunable_fp8_per_token_quant->>Fp8PerTokenQuantRunner: select TRT-LLM or vectorized tactic
Fp8PerTokenQuantRunner->>vectorized_per_token_fp8_quant: launch vectorized CUDA quantization
vectorized_per_token_fp8_quant-->>Fp8PerTokenQuantRunner: return FP8 values and scales
Fp8PerTokenQuantRunner-->>FP8RowwiseLinearMethod: return quantized activations and float32 scales
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 7
🧹 Nitpick comments (6)
cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorization.cuh (1)
12-44: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAdd
#include <type_traits>forstd::is_same_v.
q8_n_tusesstd::is_same_vat Line 34. The file includes only the two c10 FP8 headers. The build currently works through transitive includes. An explicit include makes the header self-contained.♻️ Proposed include addition
`#include` <c10/util/Float8_e4m3fn.h> `#include` <c10/util/Float8_e4m3fnuz.h> +#include <type_traits>🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorization.cuh` around lines 12 - 44, Add an explicit <type_traits> include to vectorization.cuh so q8_n_t can use std::is_same_v without relying on transitive includes; leave the vectorization types and static assertion unchanged.cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_quant_compat.cuh (1)
64-68: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueConstrain the fallback
vec_conversiontemplate.The primary template returns
xunchanged for anyTout/Tinpair. A call with an unsupported type pair compiles and silently returns the wrong type or an implicit conversion instead of failing. Only thefloat→c10::Float8_e4m3fnspecialization is intended here. Consider replacing the primary template body with astatic_assert(sizeof(Tin) == 0, ...)style hard error, or delete the primary definition and keep only the declaration.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_quant_compat.cuh` around lines 64 - 68, Constrain the fallback vec_conversion template so unsupported Tout/Tin pairs fail at compile time instead of returning x through implicit conversion. Replace its current return body with a dependent static assertion or remove the primary definition while retaining the intended float-to-c10::Float8_e4m3fn specialization.tests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.py (2)
122-128: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueJustify or tighten the absolute tolerance on the dequantized comparison.
atol=0.5withrtol=0.0is an absolute bound applied to dequantized activations of arbitrary magnitude. For a standard normal input the values stay near ±4, where one FP8 E4M3 step is roughly 0.25, so the test passes. The tolerance does not scale with the input distribution, so this assertion would not catch a real regression on a larger-magnitude input. Use a relative tolerance based on the FP8 step, or state the input range assumption in the docstring.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.py` around lines 122 - 128, Update the dequantized comparison in the test around recon_trt and recon_vec to use a relative tolerance tied to the expected FP8 quantization step, or explicitly document the standard-normal input range assumption if retaining atol=0.5. Ensure the assertion remains strict enough to detect regressions on larger-magnitude activations.
18-73: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd a case with a hidden size that is not a multiple of the vector width.
Every test uses a hidden size of 3072, 4096, or 2048. All are multiples of 16.
vectorize_read_with_alignmentandvectorize_with_alignmentincpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_vectorization_utils.cuhtake the fast vectorized branch only whenlen % VEC_SIZE == 0and both pointers are aligned. The scalar prefix path, the output-misalignment fallback, and the tail loop are therefore never executed by these tests. Those branches carry the highest risk of an off-by-one error in this kernel.Add a case with a hidden size such as 3079, and compare the result against
torch.ops.tensorrt_llm.quantize_e4m3_activation.As per path instructions: "Act as a QA engineer reviewing test changes and coverage for TensorRT-LLM."
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.py` around lines 18 - 73, Add a test near test_scale_matches_trtllm_kernel using a hidden size that is not divisible by 16, such as 3079, and invoke both vectorized_per_token_fp8_quant and quantize_e4m3_activation on the same CUDA input. Validate matching output shapes and compare the vectorized scales with the TRT-LLM scales using the existing dtype conversion and numerical tolerance pattern, covering scalar-prefix, misalignment, and tail handling.Source: Path instructions
tensorrt_llm/_torch/modules/linear.py (1)
962-965: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winMark
use_tunable_quantizeasClassVarand note the process-global effect.Line 960 declares
supports_nccl_symmetric_memory_window_outputasClassVar[bool].use_tunable_quantizeis a plain annotated class attribute, so a type checker treats it as an instance field while Line 1005 reads it from the class. AddClassVar[bool]for consistency.The flag is also process-global. A visual generation pipeline that sets
FP8RowwiseLinearMethod.use_tunable_quantize = Truechanges the activation quantization path for every otherFP8RowwiseLinearMethodinstance in the same process, including LLM models. Prefer carrying this switch on the module or the quantization config. If the global switch is intentional for now, record that constraint in the comment.♻️ Proposed change
- # When True, use tunable_fp8_per_token_quant (AutoTuner selects TRT-LLM vs - # vectorized kernel). Visual gen pipelines set this to True before model - # construction; LLM paths leave it False. - use_tunable_quantize: bool = False + # When True, use tunable_fp8_per_token_quant (AutoTuner selects TRT-LLM vs + # vectorized kernel). Visual gen pipelines set this to True before model + # construction; LLM paths leave it False. Note: this is process-global and + # applies to every FP8RowwiseLinearMethod instance. + use_tunable_quantize: ClassVar[bool] = False🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tensorrt_llm/_torch/modules/linear.py` around lines 962 - 965, Declare FP8RowwiseLinearMethod.use_tunable_quantize as ClassVar[bool] to match its class-level access and prevent type checkers from treating it as an instance field. Update the surrounding comment to explicitly state that this flag is process-global and affects every FP8RowwiseLinearMethod instance; retain the current behavior if the global switch remains intentional.cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_cub_helpers.h (1)
12-22: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winNamespace the aliases and include
<cuda/functional>.Place
CubAddOpandCubMaxOpinnamespace vllmto avoid global-scope declarations. Include<cuda/functional>whenCUB_VERSION >= 200800; it definescuda::maximum<>.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_cub_helpers.h` around lines 12 - 22, Update the CUB alias declarations in the header by including <cuda/functional> for CUB_VERSION >= 200800, then place both CubAddOp and CubMaxOp inside namespace vllm while preserving their existing version-specific type mappings.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_per_token_quant_kernel.cuh`:
- Around line 42-44: The kernel and launcher duplicate the 256-thread block size
without enforcing consistency. In vectorized_fp8_per_token_quant_kernel.cuh,
update dynamic_per_token_scaled_fp8_quant_kernel_strided to use a shared named
block-size constant or template parameter for BlockReduce and assert blockDim.x
matches; in cpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cu
lines 32-38, use that same constant or template parameter for dim3 block instead
of the literal 256.
In `@tensorrt_llm/_torch/custom_ops/torch_custom_ops.py`:
- Around line 2890-2898: Update the return annotation of Fp8PerTokenQuantTactic
forward to represent the two-tensor tuple returned by both underlying
quantization operators, using the project’s preferred built-in generic type
syntax. Leave the operator calls and tactic branching unchanged.
In `@tensorrt_llm/_torch/visual_gen/config.py`:
- Around line 619-622: Remove the process-global assignment to
FP8RowwiseLinearMethod.use_tunable_quantize in the VisualGen configuration flow.
Store the tuner setting on the VisualGen model or relevant linear module, then
propagate it explicitly into the quantization call so VisualGen behavior is
enabled without affecting later LLM row-wise linear operations.
In `@tests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.py`:
- Around line 10-16: Add a class-level CUDA availability skip to both test
classes, TestVectorizedPerTokenFP8Quant and the second test class referenced in
the diff, so the suites are skipped when torch.cuda.is_available() is false.
Keep the existing setup and test behavior unchanged when CUDA is available.
In `@tests/unittest/_torch/visual_gen/test_quant_ops.py`:
- Around line 148-154: In test_fp8_rowwise_zero_weight, replace the unused scale
binding returned by quantize_fp8_rowwise with the conventional ignored binding
_, leaving the qweight assertions unchanged.
In `@tests/unittest/_torch/visual_gen/test_qwen_image_pipeline_config.py`:
- Around line 173-179: Update the expected force_dynamic_quantization value in
the dynamic-fp8-rowwise pytest.param case within
test_qwen_pipeline_quant_config_parses_from_args from False to True, matching
the value assigned by DiffusionPipelineConfig.from_pretrained() for
FP8_PER_CHANNEL_PER_TOKEN.
In `@tests/unittest/_torch/visual_gen/test_wan22_t2v_pipeline.py`:
- Around line 311-321: Add a test in test_wan22_t2v_pipeline.py that consumes
the existing wan22_t2v_fp8_rowwise fixture and exercises the corresponding
text-to-video generation path, ensuring the FP8_PER_CHANNEL_PER_TOKEN
configuration is actually covered.
---
Nitpick comments:
In `@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorization.cuh`:
- Around line 12-44: Add an explicit <type_traits> include to vectorization.cuh
so q8_n_t can use std::is_same_v without relying on transitive includes; leave
the vectorization types and static assertion unchanged.
In `@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_cub_helpers.h`:
- Around line 12-22: Update the CUB alias declarations in the header by
including <cuda/functional> for CUB_VERSION >= 200800, then place both CubAddOp
and CubMaxOp inside namespace vllm while preserving their existing
version-specific type mappings.
In `@cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_quant_compat.cuh`:
- Around line 64-68: Constrain the fallback vec_conversion template so
unsupported Tout/Tin pairs fail at compile time instead of returning x through
implicit conversion. Replace its current return body with a dependent static
assertion or remove the primary definition while retaining the intended
float-to-c10::Float8_e4m3fn specialization.
In `@tensorrt_llm/_torch/modules/linear.py`:
- Around line 962-965: Declare FP8RowwiseLinearMethod.use_tunable_quantize as
ClassVar[bool] to match its class-level access and prevent type checkers from
treating it as an instance field. Update the surrounding comment to explicitly
state that this flag is process-global and affects every FP8RowwiseLinearMethod
instance; retain the current behavior if the global switch remains intentional.
In `@tests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.py`:
- Around line 122-128: Update the dequantized comparison in the test around
recon_trt and recon_vec to use a relative tolerance tied to the expected FP8
quantization step, or explicitly document the standard-normal input range
assumption if retaining atol=0.5. Ensure the assertion remains strict enough to
detect regressions on larger-magnitude activations.
- Around line 18-73: Add a test near test_scale_matches_trtllm_kernel using a
hidden size that is not divisible by 16, such as 3079, and invoke both
vectorized_per_token_fp8_quant and quantize_e4m3_activation on the same CUDA
input. Validate matching output shapes and compare the vectorized scales with
the TRT-LLM scales using the existing dtype conversion and numerical tolerance
pattern, covering scalar-prefix, misalignment, and tail handling.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: c6645bec-64db-424d-879e-98fb6d1228af
📒 Files selected for processing (24)
cpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cucpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorization.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_cub_helpers.hcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_per_token_quant_kernel.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_quant_compat.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_vectorization_utils.cuhcpp/tensorrt_llm/thop/fp8Op.cppcpp/tensorrt_llm/thop/fp8Op.htensorrt_llm/_torch/custom_ops/torch_custom_ops.pytensorrt_llm/_torch/modules/linear.pytensorrt_llm/_torch/visual_gen/config.pytensorrt_llm/_torch/visual_gen/quantization/__init__.pytensorrt_llm/_torch/visual_gen/quantization/loader.pytensorrt_llm/_torch/visual_gen/quantization/ops.pytests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.pytests/unittest/_torch/visual_gen/test_cosmos3_transformer.pytests/unittest/_torch/visual_gen/test_flux_pipeline.pytests/unittest/_torch/visual_gen/test_ltx2_pipeline.pytests/unittest/_torch/visual_gen/test_model_loader.pytests/unittest/_torch/visual_gen/test_quant_ops.pytests/unittest/_torch/visual_gen/test_qwen_image_pipeline_config.pytests/unittest/_torch/visual_gen/test_wan21_t2v_pipeline.pytests/unittest/_torch/visual_gen/test_wan22_t2v_pipeline.py
|
PR_Github #63180 [ run ] triggered by Bot. Commit: |
|
PR_Github #63180 [ run ] completed with state
|
Signed-off-by: Olivia Stoner <[email protected]>
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
/bot run --disable-fail-fast |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tensorrt_llm/_torch/custom_ops/torch_custom_ops.py (1)
2872-2896: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winComplete the type annotations for
Fp8PerTokenQuantRunner.Annotate
unique_id()with-> tuple[()]and replace theListandTuplealiases inget_valid_tactics()andforward()with Python 3.10 built-in generics.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tensorrt_llm/_torch/custom_ops/torch_custom_ops.py` around lines 2872 - 2896, Complete the annotations in Fp8PerTokenQuantRunner: change unique_id() to return tuple[()], update get_valid_tactics() to use list[torch.Tensor] for inputs and list[int] for its return type, and update forward() to use list[torch.Tensor] for inputs and tuple[torch.Tensor, torch.Tensor] for its return type.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tensorrt_llm/_torch/modules/linear.py`:
- Around line 984-987: The class-level use_tunable_quantize setting in
FP8RowwiseLinearMethod must not be shared across instances. Move this selection
to per-instance state or pipeline configuration, update the logic around
tunable_fp8_per_token_quant to read that state, and add coverage for
constructing VisualGen followed by LLM in one process so the LLM path retains
its default.
---
Nitpick comments:
In `@tensorrt_llm/_torch/custom_ops/torch_custom_ops.py`:
- Around line 2872-2896: Complete the annotations in Fp8PerTokenQuantRunner:
change unique_id() to return tuple[()], update get_valid_tactics() to use
list[torch.Tensor] for inputs and list[int] for its return type, and update
forward() to use list[torch.Tensor] for inputs and tuple[torch.Tensor,
torch.Tensor] for its return type.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 1cc5574f-a5aa-427e-85d8-6592d7b47b4d
📒 Files selected for processing (23)
cpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cucpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorization.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_cub_helpers.hcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_per_token_quant_kernel.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_quant_compat.cuhcpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_vectorization_utils.cuhcpp/tensorrt_llm/thop/fp8Op.cppcpp/tensorrt_llm/thop/fp8Op.htensorrt_llm/_torch/custom_ops/torch_custom_ops.pytensorrt_llm/_torch/modules/linear.pytensorrt_llm/_torch/visual_gen/config.pytensorrt_llm/_torch/visual_gen/quantization/__init__.pytensorrt_llm/_torch/visual_gen/quantization/loader.pytensorrt_llm/_torch/visual_gen/quantization/ops.pytests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.pytests/unittest/_torch/visual_gen/test_cosmos3_transformer.pytests/unittest/_torch/visual_gen/test_flux_pipeline.pytests/unittest/_torch/visual_gen/test_ltx2_pipeline.pytests/unittest/_torch/visual_gen/test_model_loader.pytests/unittest/_torch/visual_gen/test_quant_ops.pytests/unittest/_torch/visual_gen/test_qwen_image_pipeline_config.pytests/unittest/_torch/visual_gen/test_wan21_t2v_pipeline.py
🚧 Files skipped from review as they are similar to previous changes (19)
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cu
- tests/unittest/_torch/visual_gen/test_qwen_image_pipeline_config.py
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_cub_helpers.h
- tests/unittest/_torch/visual_gen/test_model_loader.py
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_quant_compat.cuh
- tests/unittest/_torch/visual_gen/test_flux_pipeline.py
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/fp8_per_token_quant.cuh
- tensorrt_llm/_torch/visual_gen/quantization/ops.py
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorization.cuh
- cpp/tensorrt_llm/thop/fp8Op.h
- tests/unittest/_torch/visual_gen/test_cosmos3_transformer.py
- tensorrt_llm/_torch/visual_gen/quantization/loader.py
- tests/unittest/_torch/visual_gen/test_ltx2_pipeline.py
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_fp8_per_token_quant_kernel.cuh
- cpp/tensorrt_llm/thop/fp8Op.cpp
- tensorrt_llm/_torch/visual_gen/quantization/init.py
- tests/unittest/_torch/thop/parallel/test_fp8_per_token_quant_autotuner.py
- tensorrt_llm/_torch/visual_gen/config.py
- cpp/tensorrt_llm/kernels/fp8PerTokenQuant/vectorized_vectorization_utils.cuh
|
PR_Github #65159 [ run ] triggered by Bot. Commit: |
|
PR_Github #69597 [ run ] triggered by Bot. Commit: |
|
PR_Github #69597 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #69763 [ run ] triggered by Bot. Commit: |
|
PR_Github #69763 [ run ] completed with state
|
mzweilz
left a comment
There was a problem hiding this comment.
LGTM from the infra side.
|
/bot run --disable-fail-fast |
|
PR_Github #70399 [ run ] triggered by Bot. Commit: |
|
PR_Github #70399 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #70412 [ run ] triggered by Bot. Commit: |
|
PR_Github #70412 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #70457 [ run ] triggered by Bot. Commit: |
|
PR_Github #70457 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #70482 [ run ] triggered by Bot. Commit: |
|
PR_Github #70482 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #70749 [ run ] triggered by Bot. Commit: |
|
PR_Github #70749 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #71029 [ run ] triggered by Bot. Commit: |
|
PR_Github #71029 [ run ] completed with state |
Dev Engineer Review
TRTLLM_FP8_QUANT_TACTICoverrides.FP8_PER_CHANNEL_PER_TOKEN.QA Engineer Review
Test-code changes were added.
FP8_PER_CHANNEL_PER_TOKEN.test-db/orqa/registrations were shown for the modified test functions.Verdict: needs follow-up.
Description
tunable_fp8_per_token_quant) that profiles the TRT-LLM kernel (dynamicQuantizeMatrixPerToken) against it at warmup and caches the winner per input shape; VisualGen enables this viaFP8RowwiseLinearMethod.use_tunable_quantize; LLM paths leave it disabled;TRTLLM_FP8_QUANT_TACTIC=trtllm|vectorizedforces a specific kernelPerf/quality report example for dynamic FP8 row-wise quant on FLUX.2-dev + Wan 2.2 T2V: https://sc.talos.nvidia.com/view/home/scratch.ostoner_coreai_1/TensorRT-LLM-3/TensorRT-LLM/examples/visual_gen/fp8_rowwise_quant_study.html
Test Coverage
New unit tests:
Extended existing tests (parametrize additions):
Pre-existing tests covering linear.py change:
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.