zxdu20 commited on
Commit
0101afd
1 Parent(s): c3dece3

Update quantization

Browse files
Files changed (1) hide show
  1. quantization.py +5 -1
quantization.py CHANGED
@@ -7,7 +7,11 @@ import base64
7
  import ctypes
8
 
9
  from typing import List
10
- from cpm_kernels.kernels.base import LazyKernelCModule, KernelFunction, round_up
 
 
 
 
11
 
12
 
13
  class W8A16Linear(torch.autograd.Function):
 
7
  import ctypes
8
 
9
  from typing import List
10
+
11
+ try:
12
+ from cpm_kernels.kernels.base import LazyKernelCModule, KernelFunction, round_up
13
+ except:
14
+ pass
15
 
16
 
17
  class W8A16Linear(torch.autograd.Function):