Update utils.py

This commit is contained in:
Daniel Han-Chen 2024-01-22 22:31:38 +11:00
commit 31f0c9c08d

View file

@ -180,6 +180,7 @@ pass
def fast_linear_forward(proj, X, temp_lora = None, out = None):
W, W_quant, lora_A, lora_B, lora_S = get_lora_parameters(proj)
out = fast_gemv(X, W, W_quant, out = out)
print(X.shape, W.shape, out.shape)
if lora_A is not None:
dtype = X.dtype
temp_lora = torch.matmul(X, lora_A.to(dtype).t(), out = temp_lora)