Skip to content

Commit 521da10

Browse files
committed
Test on torch latest version
1 parent cf9f173 commit 521da10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/float8_test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
include:
2424
- name: SM-89
2525
runs-on: amz2023.linux.g6.4xlarge.experimental.nvidia.gpu
26-
torch-spec: '--pre torch==2.5.0.dev20240728+cu121 --index-url https://download.pytorch.org/whl/nightly/cu121'
2726
gpu-arch-type: "cuda"
2827
gpu-arch-version: "12.1"
2928

@@ -40,7 +39,7 @@ jobs:
4039
yum install -y devtoolset-10-binutils
4140
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
4241
python -m pip install --upgrade pip
43-
pip install ${{ matrix.torch-spec }}
42+
pip install torch
4443
pip install -r dev-requirements.txt
4544
pip install .
4645
pytest test/float8 --verbose -s

test/float8/test_fsdp2/test_fsdp2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
)
3838

3939
is_H100 = torch.cuda.is_available() and torch.cuda.get_device_capability() >= (9, 0)
40-
if not is_H100:
40+
is_cuda_8_9 = torch.cuda.is_available() and torch.cuda.get_device_capability() >= (8, 9)
41+
if not is_cuda_8_9:
4142
pytest.skip("Unsupported CUDA device capability version", allow_module_level=True)
4243

4344
class TestFloat8Common:

0 commit comments

Comments
 (0)