File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 33
33
gpu-arch-version : " 12.1"
34
34
- name : CUDA Nightly
35
35
runs-on : linux.g5.12xlarge.nvidia.gpu
36
- torch-spec : ' --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121'
36
+ torch-spec : ' --pre torch==2.5.0.dev20240709+cu121 --index-url https://download.pytorch.org/whl/nightly/cu121'
37
37
gpu-arch-type : " cuda"
38
38
gpu-arch-version : " 12.1"
39
39
- name : CPU 2.2.2
48
48
gpu-arch-version : " "
49
49
- name : CPU Nightly
50
50
runs-on : linux.4xlarge
51
- torch-spec : ' --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu'
51
+ torch-spec : ' --pre torch==2.5.0.dev20240709+cpu --index-url https://download.pytorch.org/whl/nightly/cpu'
52
52
gpu-arch-type : " cpu"
53
53
gpu-arch-version : " "
54
54
Original file line number Diff line number Diff line change 4
4
PerChannelSymmetricWeightUInt4Tensor ,
5
5
)
6
6
import unittest
7
- from unittest import TestCase , main
8
7
from torch .ao .quantization .quantize_pt2e import prepare_pt2e , convert_pt2e
9
8
from torch .ao .quantization .quantizer import QuantizationSpec , Quantizer
10
9
11
10
from torch ._export import capture_pre_autograd_graph
12
- from torch ._export import dynamic_dim
13
11
from torch .testing ._internal .common_quantization import (
14
12
NodeSpec as ns ,
15
13
QuantizationTestCase ,
16
14
)
17
- from torchao .quantization .utils import (
18
- compute_error ,
19
- )
20
15
from torchao .quantization .quant_api import (
21
16
_replace_with_custom_fn_if_matches_filter ,
22
17
)
30
25
QuantizationAnnotation ,
31
26
)
32
27
import copy
33
- from packaging import version
34
28
35
29
36
30
def _apply_weight_only_uint4_quant (model ):
@@ -229,4 +223,4 @@ def forward(self, x):
229
223
)
230
224
231
225
if __name__ == "__main__" :
232
- main ()
226
+ unittest . main ()
You can’t perform that action at this time.
0 commit comments