Update utils.py
This commit is contained in:
parent
050c61bc0b
commit
e1cbc9e423
1 changed files with 1 additions and 0 deletions
|
|
@ -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(out.shape, X.shape)
|
||||
if lora_A is not None:
|
||||
dtype = X.dtype
|
||||
temp_lora = torch.matmul(X, lora_A.to(dtype).t(), out = temp_lora)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue