feat: support safetensors export in convert mode (#1444)

This commit is contained in:
leejet
2026-04-20 00:22:11 +08:00
committed by GitHub
parent 0a7ae07f94
commit 44cca3d626
10 changed files with 257 additions and 120 deletions

View File

@@ -14,6 +14,9 @@ CLI Options:
--metadata-format <string> metadata output format, one of [text, json] (default: text)
--canny apply canny preprocessor (edge detection)
--convert-name convert tensor name (for convert mode)
convert mode writes `.gguf` or `.safetensors` based on the output extension.
`.safetensors` export currently supports f16, bf16, f32, and i32 tensor types only.
i32 is passthrough only; no f32 <-> i32 conversion is performed
-v, --verbose print extra info
--color colors the logging tags according to level
--taesd-preview-only prevents usage of taesd for decoding the final image. (for use with --preview tae)