Update utils.py
This commit is contained in:
parent
306fd3009e
commit
4b2b345cdd
1 changed files with 2 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ pass
|
|||
|
||||
def matmul_lora(X, W, W_quant, A, B, s, out = None):
|
||||
dtype = X.dtype
|
||||
W = fast_dequantize(W.t(), W_quant, use_global_buffer = True)
|
||||
W = fast_dequantize(W.t(), W_quant, use_global_buffer = False)
|
||||
|
||||
if X.dim() == 3:
|
||||
batch, seq_len, d = X.shape
|
||||
|
|
@ -461,6 +461,7 @@ def matmul_lora(X, W, W_quant, A, B, s, out = None):
|
|||
reshape = False
|
||||
pass
|
||||
|
||||
print(X.device, W.device, torch.cuda.current_device())
|
||||
out = torch_matmul(X, W, out = out)
|
||||
if W_quant is not None: del W
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue