Added dynamo-torchao test suite under the full CI lane - #4601
Open
micwill755 wants to merge 1 commit into
Open
Conversation
Run TorchAO compile tests as their own job instead of mixed into dynamo-models, and install torchao in linux-test so CI does not skip them.
There was a problem hiding this comment.
There are some changes that do not conform to Python style guidelines:
--- /home/runner/work/TensorRT/TensorRT/tests/py/dynamo/conversion/test_cumsum_aten.py 2026-08-26 23:57:45.614516+00:00
+++ /home/runner/work/TensorRT/TensorRT/tests/py/dynamo/conversion/test_cumsum_aten.py 2026-08-26 23:58:16.228472+00:00
@@ -31,13 +31,11 @@
immutable_weights=False,
use_dynamo_tracer=True,
)
return
- self.run_test(
- Cumsum(), inputs, immutable_weights=False, use_dynamo_tracer=True
- )
+ self.run_test(Cumsum(), inputs, immutable_weights=False, use_dynamo_tracer=True)
@parameterized.expand(
[
((3, 1), 0),
((3, 1), 1),
@@ -106,14 +104,11 @@
has_static_trip_count = (
min_shape[positive_dim]
== opt_shape[positive_dim]
== max_shape[positive_dim]
)
- if (
- has_static_trip_count
- and not is_tensorrt_rtx_version_supported("1.7")
- ):
+ if has_static_trip_count and not is_tensorrt_rtx_version_supported("1.7"):
with self.assertRaises(UnsupportedOperatorException):
self.run_test_with_dynamic_shape(
Cumsum(),
inputs,
immutable_weights=False,There was a problem hiding this comment.
There are some changes that do not conform to Python style guidelines:
--- /home/runner/work/TensorRT/TensorRT/tests/py/dynamo/conversion/test_cumsum_aten.py 2026-08-26 23:58:31.775617+00:00
+++ /home/runner/work/TensorRT/TensorRT/tests/py/dynamo/conversion/test_cumsum_aten.py 2026-08-26 23:58:57.173559+00:00
@@ -31,13 +31,11 @@
immutable_weights=False,
use_dynamo_tracer=True,
)
return
- self.run_test(
- Cumsum(), inputs, immutable_weights=False, use_dynamo_tracer=True
- )
+ self.run_test(Cumsum(), inputs, immutable_weights=False, use_dynamo_tracer=True)
@parameterized.expand(
[
((3, 1), 0),
((3, 1), 1),
@@ -106,14 +104,11 @@
has_static_trip_count = (
min_shape[positive_dim]
== opt_shape[positive_dim]
== max_shape[positive_dim]
)
- if (
- has_static_trip_count
- and not is_tensorrt_rtx_version_supported("1.7")
- ):
+ if has_static_trip_count and not is_tensorrt_rtx_version_supported("1.7"):
with self.assertRaises(UnsupportedOperatorException):
self.run_test_with_dynamic_shape(
Cumsum(),
inputs,
immutable_weights=False,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a dedicated
dynamo-torchaosuite on thefullandnightlylanes so TorchAO compile tests are their own CI job instead of mixed intodynamo-models.tests/py/dynamo/models/test_torchao*.pyis auto-markedtorchao.dynamo-modelsis now-m "not critical and not torchao"so those tests do not double-run. linux-test installstorchaoafter the pinned torch reinstall so the suite actually executes (tests skip if the extra is missing).Locally:
cd tests && TRT_PYTEST_RERUNS=0 python3 -m ci run dynamo-torchao --variant standard(5 passed: FP8 WOQ, static FP8, INT4 WOQ, NVFP4 WOQ, MXFP4).Stacked on #4595 (MXFP4) → #4593 (NVFP4) → #4590 (INT4) → #4589 (FP8). Stack: https://github.com/pytorch/TensorRT/stack/4591
Fixes # (issue)
Type of change
Checklist:
dynamo-torchao5 passed locally