feat: load scaled FP8 weights without upfront conversion (#1913)

This commit is contained in:
leejet
2026-08-27 20:50:47 +08:00
committed by GitHub
parent 50d6405683
commit be0e34480d
9 changed files with 73 additions and 101 deletions
+5
View File
@@ -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;
}