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

This commit is contained in:
Wagner Bruna
2026-06-16 12:54:42 -03:00
committed by GitHub
parent 5a34bc7f6e
commit 710bc91c8f
4 changed files with 13 additions and 4 deletions

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);