Skip to content

Commit 1110405

Browse files
authored
Merge branch 'main' into skipROCmTest
2 parents 88448d2 + ea7910e commit 1110405

22 files changed

+285
-299
lines changed

.github/workflows/float8_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
gpu-arch-type: "cuda"
3030
gpu-arch-version: "12.1"
3131

32+
permissions:
33+
id-token: write
34+
contents: read
3235
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3336
with:
3437
timeout: 60

.github/workflows/nightly_smoke_test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
env:
14-
HF_TOKEN: ${{ secrets.HF_TOKEN }}
14+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
1515

1616
jobs:
1717
test:
@@ -25,7 +25,9 @@ jobs:
2525
gpu-arch-type: "cuda"
2626
gpu-arch-version: "12.1"
2727

28-
28+
permissions:
29+
id-token: write
30+
contents: read
2931
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
3032
with:
3133
runner: ${{ matrix.runs-on }}

.github/workflows/regression_test.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ concurrency:
1717
env:
1818
HF_TOKEN: ${{ secrets.HF_TOKEN }}
1919

20-
permissions:
21-
id-token: write
22-
contents: read
23-
2420
jobs:
2521
test-nightly:
2622
strategy:
@@ -37,16 +33,13 @@ jobs:
3733
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cpu'
3834
gpu-arch-type: "cpu"
3935
gpu-arch-version: ""
40-
- name: ROCM Nightly
41-
runs-on: linux.rocm.gpu.2
42-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3'
43-
gpu-arch-type: "rocm"
44-
gpu-arch-version: "6.3"
4536

37+
permissions:
38+
id-token: write
39+
contents: read
4640
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
4741
with:
4842
timeout: 120
49-
no-sudo: ${{ matrix.gpu-arch-type == 'rocm' }}
5043
runner: ${{ matrix.runs-on }}
5144
gpu-arch-type: ${{ matrix.gpu-arch-type }}
5245
gpu-arch-version: ${{ matrix.gpu-arch-version }}
@@ -81,6 +74,7 @@ jobs:
8174
torch-spec: 'torch==2.5.1 --index-url https://download.pytorch.org/whl/cu121'
8275
gpu-arch-type: "cuda"
8376
gpu-arch-version: "12.1"
77+
8478
- name: CPU 2.3
8579
runs-on: linux.4xlarge
8680
torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu'
@@ -108,6 +102,8 @@ jobs:
108102
conda create -n venv python=3.9 -y
109103
conda activate venv
110104
echo "::group::Install newer objcopy that supports --set-section-alignment"
105+
yum install -y devtoolset-10-binutils
106+
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
111107
python -m pip install --upgrade pip
112108
pip install ${{ matrix.torch-spec }}
113109
pip install -r dev-requirements.txt

test/__init__.py

Whitespace-only changes.

test/dtypes/test_affine_quantized.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def test_tensor_core_layout_transpose(self):
9090
aqt_shape = aqt.shape
9191
self.assertEqual(aqt_shape, shape)
9292

93-
@skip_if_rocm("ROCm development in progress")
9493
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
9594
@common_utils.parametrize(
9695
"apply_quant", get_quantization_functions(True, True, "cuda", True)
@@ -170,7 +169,6 @@ def apply_uint6_weight_only_quant(linear):
170169

171170
deregister_aqt_quantized_linear_dispatch(dispatch_condition)
172171

173-
@skip_if_rocm("ROCm development in progress")
174172
@common_utils.parametrize("apply_quant", get_quantization_functions(True, True))
175173
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
176174
def test_print_quantized_module(self, apply_quant):
@@ -183,7 +181,6 @@ class TestAffineQuantizedBasic(TestCase):
183181
COMMON_DEVICES = ["cpu"] + (["cuda"] if torch.cuda.is_available() else [])
184182
COMMON_DTYPES = [torch.bfloat16]
185183

186-
@skip_if_rocm("ROCm development in progress")
187184
@common_utils.parametrize("device", COMMON_DEVICES)
188185
@common_utils.parametrize("dtype", COMMON_DTYPES)
189186
def test_flatten_unflatten(self, device, dtype):

test/dtypes/test_floatx.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def test_to_copy_device(self, ebits, mbits):
108108
@parametrize("ebits,mbits", _Floatx_DTYPES)
109109
@parametrize("bias", [False, True])
110110
@parametrize("dtype", [torch.half, torch.bfloat16])
111-
@skip_if_rocm("ROCm development in progress")
112111
@unittest.skipIf(is_fbcode(), reason="broken in fbcode")
113112
def test_fpx_weight_only(self, ebits, mbits, bias, dtype):
114113
N, OC, IC = 4, 256, 64

test/float8/test_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,6 @@ def test_linear_from_config_params(
424424
@pytest.mark.parametrize("x_shape", [(16, 16), (2, 16, 16), (3, 2, 16, 16)])
425425
@pytest.mark.parametrize("linear_bias", [True, False])
426426
@unittest.skipIf(not torch.cuda.is_available(), "CUDA not available")
427-
@skip_if_rocm("ROCm development in progress")
428427
def test_linear_from_recipe(
429428
self,
430429
recipe_name,

test/hqq/test_hqq_affine.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def test_hqq_plain_5bit(self):
111111
ref_dot_product_error=0.000704,
112112
)
113113

114-
@skip_if_rocm("ROCm development in progress")
115114
def test_hqq_plain_4bit(self):
116115
self._test_hqq(
117116
dtype=torch.uint4,

test/integration/test_integration.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ def test_per_token_linear_cpu(self):
570570
self._test_per_token_linear_impl("cpu", dtype)
571571

572572
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
573-
@skip_if_rocm("ROCm development in progress")
574573
def test_per_token_linear_cuda(self):
575574
for dtype in (torch.float32, torch.float16, torch.bfloat16):
576575
self._test_per_token_linear_impl("cuda", dtype)
@@ -689,7 +688,6 @@ def test_dequantize_int8_weight_only_quant_subclass(self, device, dtype):
689688
@parameterized.expand(COMMON_DEVICE_DTYPE)
690689
@unittest.skipIf(not TORCH_VERSION_AT_LEAST_2_3, "int4 requires torch nightly.")
691690
# @unittest.skipIf(TORCH_VERSION_AT_LEAST_2_5, "int4 skipping 2.5+ for now")
692-
@skip_if_rocm("ROCm development in progress")
693691
def test_dequantize_int4_weight_only_quant_subclass(self, device, dtype):
694692
if device == "cpu":
695693
self.skipTest(f"Temporarily skipping for {device}")
@@ -709,7 +707,6 @@ def test_dequantize_int4_weight_only_quant_subclass(self, device, dtype):
709707
@parameterized.expand(COMMON_DEVICE_DTYPE)
710708
@unittest.skipIf(not TORCH_VERSION_AT_LEAST_2_3, "int4 requires torch nightly.")
711709
# @unittest.skipIf(TORCH_VERSION_AT_LEAST_2_5, "int4 skipping 2.5+ for now")
712-
@skip_if_rocm("ROCm development in progress")
713710
def test_dequantize_int4_weight_only_quant_subclass_grouped(self, device, dtype):
714711
if device == "cpu":
715712
self.skipTest(f"Temporarily skipping for {device}")
@@ -903,7 +900,6 @@ def test_aq_float8_dynamic_quant_tensorwise_scaling_subclass(self, device, dtype
903900
@parameterized.expand(COMMON_DEVICE_DTYPE)
904901
@unittest.skipIf(not TORCH_VERSION_AT_LEAST_2_3, "int4 requires torch nightly.")
905902
# @unittest.skipIf(TORCH_VERSION_AT_LEAST_2_5, "int4 skipping 2.5+ for now")
906-
@skip_if_rocm("ROCm development in progress")
907903
def test_int4_weight_only_quant_subclass(self, device, dtype):
908904
if device == "cpu":
909905
self.skipTest(f"Temporarily skipping for {device}")
@@ -923,7 +919,6 @@ def test_int4_weight_only_quant_subclass(self, device, dtype):
923919
@parameterized.expand(COMMON_DEVICE_DTYPE)
924920
@unittest.skipIf(not TORCH_VERSION_AT_LEAST_2_3, "int4 requires torch nightly.")
925921
# @unittest.skipIf(TORCH_VERSION_AT_LEAST_2_5, "int4 skipping 2.5+ for now")
926-
@skip_if_rocm("ROCm development in progress")
927922
def test_int4_weight_only_quant_subclass_grouped(self, device, dtype):
928923
if dtype != torch.bfloat16:
929924
self.skipTest(f"Fails for {dtype}")
@@ -1827,7 +1822,7 @@ def test_autoquant_int4wo(self, device, dtype):
18271822
self.assertGreater(compute_error(ref, out), 20)
18281823

18291824
@parameterized.expand(COMMON_DEVICE_DTYPE)
1830-
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
1825+
@unittest.skipIf(not is_sm_at_least_90(), "Need cuda arch greater than SM90")
18311826
@unittest.skipIf(
18321827
not TORCH_VERSION_AT_LEAST_2_5, "autoquant int4 option requires 2.5+."
18331828
)

test/kernel/test_galore_downproj.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
@pytest.mark.skipif(not torch.cuda.is_available(), reason="requires GPU")
3232
@pytest.mark.parametrize("M, N, rank, allow_tf32, fp8_fast_accum, dtype", TEST_CONFIGS)
33-
@skip_if_rocm("ROCm development in progress")
3433
def test_galore_downproj(M, N, rank, allow_tf32, fp8_fast_accum, dtype):
3534
torch.backends.cuda.matmul.allow_tf32 = allow_tf32
3635
MAX_DIFF = MAX_DIFF_tf32 if allow_tf32 else MAX_DIFF_no_tf32

0 commit comments

Comments
 (0)