group: PyTorch depends_on: - image-build steps: - label: ":nvidia: (H200 MIG 35GB) PyTorch Compilation" device: h200_35gb key: pytorch-compilation-unit-tests timeout_in_minutes: 30 source_file_dependencies: &pytorch-compilation-deps - vllm/__init__.py - vllm/_aiter_ops.py - vllm/_custom_ops.py - vllm/compilation/ - vllm/config/ - vllm/distributed/ - "!vllm/distributed/kv_transfer/" - vllm/engine/ - vllm/env_override.py - vllm/envs.py - vllm/forward_context.py - vllm/inputs/ - vllm/ir/ - vllm/kernels/ - vllm/logger.py - vllm/model_executor/ - vllm/multimodal/ - vllm/platforms/ - vllm/plugins/ - vllm/sampling_params.py - vllm/sequence.py - vllm/transformers_utils/ - vllm/triton_utils/ - vllm/utils/ - vllm/v1/ - tests/compile commands: # Run unit tests defined directly under compile/, # not including subdirectories, which are usually heavier # tests covered elsewhere. # Use `find` to launch multiple instances of pytest so that # they do not suffer from https://github.com/vllm-project/vllm/issues/28965 # However, find does not normally propagate error codes, so we combine it with xargs # (using -0 for proper path handling) - "find compile/ -maxdepth 1 -name 'test_*.py' -print0 | xargs -0 -n1 -I{} pytest -s -v '{}'" mirror: amd: label: ":amd: (MI300) PyTorch Compilation" dind: false device: mi300_1 timeout_in_minutes: 45 depends_on: - image-build-amd source_file_dependencies: - csrc/ - vllm/platforms/rocm.py - label: ":nvidia: (H200 MIG 35GB) PyTorch Compilation / Dynamic Shapes" device: h200_35gb key: pytorch-compilation-dynamic-shapes timeout_in_minutes: 30 source_file_dependencies: *pytorch-compilation-deps commands: - pytest -s -v compile/dynamic_shapes/ mirror: amd: label: ":amd: (MI300) PyTorch Compilation / Dynamic Shapes" dind: false device: mi300_1 timeout_in_minutes: 45 depends_on: - image-build-amd source_file_dependencies: - csrc/ - vllm/platforms/rocm.py - label: ":nvidia: (H200 MIG 18GB) PyTorch Compilation H100 Cases" key: pytorch-compilation-unit-tests-h100 timeout_in_minutes: 30 device: h200_18gb source_file_dependencies: - vllm/__init__.py - vllm/_aiter_ops.py - vllm/_custom_ops.py - vllm/compilation/ - vllm/config/ - vllm/distributed/ - "!vllm/distributed/kv_transfer/" - vllm/engine/ - vllm/env_override.py - vllm/envs.py - vllm/forward_context.py - vllm/inputs/ - vllm/ir/ - vllm/kernels/ - vllm/logger.py - vllm/model_executor/ - vllm/multimodal/ - vllm/platforms/ - vllm/plugins/ - vllm/sampling_params.py - vllm/sequence.py - vllm/transformers_utils/ - vllm/triton_utils/ - vllm/utils/ - vllm/v1/ - tests/compile/h100/ commands: - "find compile/h100/ -name 'test_*.py' -print0 | xargs -0 -n1 -I{} pytest -s -v '{}'" mirror: amd: label: ":amd: (MI355 DPX) PyTorch Compilation H100 Cases" dind: false device: mi355_dpx timeout_in_minutes: 45 working_dir: "/vllm-workspace/tests" depends_on: - image-build-amd source_file_dependencies: - tests/utils.py - csrc/ commands: - pytest -v -s compile/h100/test_startup.py - label: ":nvidia: (L4) PyTorch Compilation Passes" key: pytorch-compilation-passes-unit-tests automatic_shard: true device: l4 num_devices: 1 timeout_in_minutes: 45 source_file_dependencies: - vllm/__init__.py - vllm/_aiter_ops.py - vllm/_custom_ops.py - vllm/compilation/ - vllm/config/ - vllm/distributed/ - "!vllm/distributed/kv_transfer/" - vllm/engine/ - vllm/env_override.py - vllm/envs.py - vllm/forward_context.py - vllm/inputs/ - vllm/ir/ - vllm/kernels/ - vllm/logger.py - vllm/model_executor/ - vllm/multimodal/ - vllm/platforms/ - vllm/plugins/ - vllm/sampling_params.py - vllm/sequence.py - vllm/transformers_utils/ - vllm/triton_utils/ - vllm/utils/ - vllm/v1/ - tests/compile/passes commands: - pytest -s -v compile/passes --ignore compile/passes/distributed mirror: amd: label: ':amd: (MI300) PyTorch Compilation Passes' dind: false device: mi300_1 timeout_in_minutes: 80 working_dir: /vllm-workspace/tests depends_on: - image-build-amd source_file_dependencies: - vllm/ - tests/compile/passes - vllm/platforms/rocm.py commands: - pytest -s -v compile/passes --ignore compile/passes/distributed - label: ":nvidia: (H200 MIG 35GB) PyTorch Fullgraph" device: h200_35gb key: pytorch-fullgraph-test timeout_in_minutes: 90 source_file_dependencies: - vllm/__init__.py - vllm/_aiter_ops.py - vllm/_custom_ops.py - vllm/compilation/ - vllm/config/ - vllm/distributed/ - "!vllm/distributed/kv_transfer/" - vllm/engine/ - vllm/env_override.py - vllm/envs.py - vllm/forward_context.py - vllm/inputs/ - vllm/ir/ - vllm/kernels/ - vllm/logger.py - vllm/model_executor/ - vllm/multimodal/ - vllm/platforms/ - vllm/plugins/ - vllm/sampling_params.py - vllm/sequence.py - vllm/transformers_utils/ - vllm/triton_utils/ - vllm/utils/ - vllm/v1/ - tests/compile - csrc/ commands: # Run smoke tests under fullgraph directory, except test_full_cudagraph.py # as it is a heavy test that is covered in other steps. # Use `find` to launch multiple instances of pytest so that # they do not suffer from https://github.com/vllm-project/vllm/issues/28965 - "find compile/fullgraph/ -name 'test_*.py' -not -name 'test_full_cudagraph.py' -print0 | xargs -0 -n1 -I{} pytest -s -v '{}'" mirror: amd: label: ":amd: (MI355 DPX) PyTorch Fullgraph" dind: false device: mi355_dpx timeout_in_minutes: 90 # Remove once the ROCm Triton pin includes triton-lang/triton#11567. # Avoid overlapping LLVM codegen/LLD by disabling background precompilation. env: TORCHINDUCTOR_PRECOMPILATION_TIMEOUT_SECONDS: "0" depends_on: - image-build-amd # Hopper-only DeepSeek-V2-Lite cases in this file require two 29.3-GiB model # instances and cannot fit a 35GB MIG slice. L4 retains the original coverage: # those SM90 cases skip while the architecture-compatible cases still run. - label: ":nvidia: (L4) PyTorch Fullgraph CUDAGraph Compatibility" key: pytorch-fullgraph-cudagraph-l4-compatibility device: l4 num_devices: 1 timeout_in_minutes: 60 source_file_dependencies: - vllm/__init__.py - vllm/_aiter_ops.py - vllm/_custom_ops.py - vllm/compilation/ - vllm/config/ - vllm/distributed/ - "!vllm/distributed/kv_transfer/" - vllm/engine/ - vllm/env_override.py - vllm/envs.py - vllm/forward_context.py - vllm/inputs/ - vllm/ir/ - vllm/kernels/ - vllm/logger.py - vllm/model_executor/ - vllm/multimodal/ - vllm/platforms/ - vllm/plugins/ - vllm/sampling_params.py - vllm/sequence.py - vllm/transformers_utils/ - vllm/triton_utils/ - vllm/utils/ - vllm/v1/ - tests/compile commands: - pytest -s -v compile/fullgraph/test_full_cudagraph.py mirror: amd: label: ':amd: (MI250) PyTorch Fullgraph CUDAGraph Compatibility' dind: false device: mi250_1 timeout_in_minutes: 65 working_dir: /vllm-workspace/tests depends_on: - image-build-amd source_file_dependencies: - vllm/compilation/ - vllm/model_executor/ - vllm/v1/attention/ - vllm/config/compilation.py - csrc/ - tests/compile - vllm/platforms/rocm.py commands: - pytest -s -v compile/fullgraph/test_full_cudagraph.py - label: ":nvidia: (H200 MIG 18GB) PyTorch Nightly Dependency Override Check" key: pytorch-nightly-dependency-override-check # if this test fails, it means the nightly torch version is not compatible with some # of the dependencies. Please check the error message and add the package to whitelist # in /vllm/tools/pre_commit/generate_nightly_torch_test.py device: h200_18gb soft_fail: true source_file_dependencies: - requirements/test/nightly-torch.txt commands: - bash standalone_tests/pytorch_nightly_dependency.sh mirror: amd: label: ":amd: (MI300) PyTorch Nightly Dependency Override Check" dind: false device: mi300_1 timeout_in_minutes: 30 depends_on: - image-build-amd source_file_dependencies: - requirements/test/nightly-torch.txt - vllm/platforms/rocm.py