File tree Expand file tree Collapse file tree
recipes/esm2_native_te_nvfsdp_thd Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616from pathlib import Path
1717
1818import pytest
19+ import torch
1920from hydra import compose , initialize_config_dir
2021
2122from train import main
2223
2324
24- @pytest .mark .xfail (reason = "CUDNN padded packed sequences not supported on all hardware currently." )
25+ @pytest .mark .xfail (
26+ torch .cuda .get_device_capability () != (10 , 0 ),
27+ reason = "CUDNN padded packed sequences not supported on all hardware currently (nvbugs/5458694)." ,
28+ )
2529def test_main_invocation (monkeypatch , tmp_path ):
2630 """Test that the main function can be invoked with the correct arguments."""
2731
@@ -43,7 +47,10 @@ def test_main_invocation(monkeypatch, tmp_path):
4347 main (sanity_config )
4448
4549
46- @pytest .mark .xfail (reason = "CUDNN padded packed sequences not supported on all hardware currently." )
50+ @pytest .mark .xfail (
51+ torch .cuda .get_device_capability () != (10 , 0 ),
52+ reason = "CUDNN padded packed sequences not supported on all hardware currently (nvbugs/5458694)." ,
53+ )
4754def test_main_invocation_ddp (monkeypatch , tmp_path ):
4855 """Test that the main function can be invoked wrapping the model in DDP."""
4956
You can’t perform that action at this time.
0 commit comments