mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat: load scaled FP8 weights without upfront conversion (#1913)
This commit is contained in:
1 parent
50d6405683
commit
be0e34480d
9 files changed
+73
-101
No files matched your search
@@ -1569,6 +1569,11 @@ std::string convert_tensor_name(std::string name, SDVersion version) {
|
||||
}
|
||||
}
|
||||
|
||||
static const std::vector<std::pair<std::string, std::string>> generic_name_map = {
|
||||
{".scale_weight", ".weight_scale"},
|
||||
};
|
||||
replace_with_name_map(name, generic_name_map);
|
||||
|
||||
if (is_lora) {
|
||||
name = "lora." + name;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user