mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat: support for merging LoRA weights on model conversion (#2079)
Co-authored-by: leejet <leejet714@gmail.com>
This commit is contained in:
1 parent
bbdcad48dd
commit
f4b5326da7
7 files changed
+279
-23
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user