fix: correct conversion from sd_type_t to ggml_type (#1519)

This commit is contained in:
Wagner Bruna authored and GitHub committed 2026-06-16 23:54:42 +08:00
1 parent 5a34bc7f6e
commit 710bc91c8f
4 files changed
+13 -4

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ bool convert(const char* input_path,
model_loader.convert_tensors_name();
}
ggml_type type = (ggml_type)output_type;
ggml_type type = sd_type_to_ggml_type(output_type);
bool output_is_safetensors = ends_with(output_path, ".safetensors");
TensorTypeRules type_rules = parse_tensor_type_rules(tensor_type_rules);