Skip to content

Commit 83176cd

Browse files
authored
Add 2.3 RC for CUDA and CPU. (#106)
1 parent 7b5a097 commit 83176cd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/regression_test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
torch-spec: 'torch==2.2.2'
1919
- name: CUDA 2.3 RC
2020
runs-on: 4-core-ubuntu-gpu-t4
21-
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121'
21+
torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/test/cu121'
2222
- name: CUDA Nightly
2323
runs-on: 4-core-ubuntu-gpu-t4
2424
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cu121'
25-
- name: CPU
25+
- name: CPU 2.2.2
26+
runs-on: 32-core-ubuntu
27+
torch-spec: 'torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu'
28+
- name: CPU 2.3 RC
2629
runs-on: 32-core-ubuntu
27-
torch-spec: 'torch --index-url https://download.pytorch.org/whl/cpu'
30+
torch-spec: 'torch==2.3.0 --index-url https://download.pytorch.org/whl/test/cpu'
2831
- name: Nightly CPU
2932
runs-on: 32-core-ubuntu
3033
torch-spec: '--pre torch --index-url https://download.pytorch.org/whl/nightly/cpu'

test/quantization/test_quant_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
)
2727
from torchao.quantization.utils import (
2828
TORCH_VERSION_AFTER_2_3,
29+
TORCH_VERSION_AFTER_2_4,
2930
)
3031
from pathlib import Path
3132
from sentencepiece import SentencePieceProcessor
@@ -136,7 +137,7 @@ def test_dynamic_quant_gpu_unified_api_eager_mode_impl(self):
136137
compiled = m(*example_inputs)
137138
torch.testing.assert_close(quantized, compiled, atol=0, rtol=0)
138139

139-
@unittest.skipIf(not TORCH_VERSION_AFTER_2_3, "skipping when torch verion is 2.3 or lower")
140+
@unittest.skipIf(not TORCH_VERSION_AFTER_2_4, "skipping when torch verion is 2.4 or lower")
140141
def test_8da4w_quantizer(self):
141142
from torchao.quantization.quant_api import Int8DynActInt4WeightQuantizer
142143
from torchao.quantization.GPTQ import Int8DynActInt4WeightLinear

0 commit comments

Comments
 (0)