mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-09-27 08:27:46 -05:00
feat: load scaled FP8 weights without upfront conversion (#1913)
This commit is contained in:
@@ -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