Apply suggestions from code review
Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
parent
b704448afb
commit
9175f4b77c
1 changed files with 2 additions and 2 deletions
|
@ -7886,7 +7886,7 @@ static struct ggml_tensor * llm_build_lora_mm(
|
||||||
ctx0, lora->b,
|
ctx0, lora->b,
|
||||||
ggml_mul_mat(ctx0, lora->a, cur)
|
ggml_mul_mat(ctx0, lora->a, cur)
|
||||||
);
|
);
|
||||||
ab_cur = ggml_scale_inplace(ctx0, ab_cur, scale);
|
ab_cur = ggml_scale(ctx0, ab_cur, scale);
|
||||||
res = ggml_add(ctx0, res, ab_cur);
|
res = ggml_add(ctx0, res, ab_cur);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
@ -7913,7 +7913,7 @@ static struct ggml_tensor * llm_build_lora_mm_id(
|
||||||
ggml_mul_mat_id(ctx0, lora->a, cur, ids),
|
ggml_mul_mat_id(ctx0, lora->a, cur, ids),
|
||||||
ids
|
ids
|
||||||
);
|
);
|
||||||
ab_cur = ggml_scale_inplace(ctx0, ab_cur, scale);
|
ab_cur = ggml_scale(ctx0, ab_cur, scale);
|
||||||
res = ggml_add(ctx0, res, ab_cur);
|
res = ggml_add(ctx0, res, ab_cur);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue