feat: support for merging LoRA weights on model conversion (#2079)

Co-authored-by: leejet <leejet714@gmail.com>
This commit is contained in:
Wagner Bruna
2026-10-06 17:50:16 +08:00
committed by GitHub
co-authored by leejet
parent bbdcad48dd
commit f4b5326da7
7 changed files with 279 additions and 23 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ void convert_tensor(void* src,
ggml_type dst_type,
int nrows,
int n_per_row,
std::vector<float> imatrix = {}) {
std::vector<float> imatrix) {
int n = nrows * n_per_row;
if (src_type == dst_type) {
size_t nbytes = n * ggml_type_size(src_type) / ggml_blck_size(src_type);