File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 15
15
import torch
16
16
import torch .nn as nn
17
17
import torch .nn .functional as F
18
- from build .utils import (
19
- find_multiple ,
20
- get_device_str ,
21
- get_precision ,
22
- name_to_dtype ,
23
- state_dict_device ,
24
- )
18
+ from build .utils import get_device_str , name_to_dtype , state_dict_device
25
19
26
- from quantization .qops import (
27
- LinearAct8Int4DQ ,
28
- LinearInt8 as WeightOnlyInt8Linear ,
29
- QuantizedEmbedding ,
30
- )
31
- from torch .ao .quantization .fx ._decomposed import quantized_decomposed_lib # noqa
20
+ from quantization .qops import LinearInt8 as WeightOnlyInt8Linear , QuantizedEmbedding
21
+ # AttributeError: '_OpNamespace' 'quantized_decomposed' object has no attribute 'quantize_per_channel_group'
22
+ from torch .ao .quantization .fx ._decomposed import quantized_decomposed_lib # noqa
32
23
from torchao .quantization .quant_api import (
33
24
Int4WeightOnlyQuantizer ,
34
25
Int8DynActInt4WeightQuantizer ,
You can’t perform that action at this time.
0 commit comments