Convert safetensors to GGUF q4_0, q4_1, q5_0, q5_1, q8_0 on Windows
Conversion will be done on the CPU in a single thread, takes 5-20 minutes. The model will be fully loaded in RAM, you need at least 24GB of RAM for Flux models.
Usage (drag and drop model to this bat file):
to-gguf.bat "c:\stable-diffusion\model.safetensors"
Getting started
-
Go to https://github.com/leejet/stable-diffusion.cpp/releases
-
Download any of the sd-master- ... -bin-win- ... .zip
-
Unzip it to any folder.
-
Put in the folder where you unpacked the sd-master- ... .zip this "to_GGUF.bat" file
-
Drag and drop the .safetensors model you want to convert onto to_GGUF.bat.
All the work is done by stable-diffusion.cpp: sd.exe -M convert -m from.safetensors -o to.q4_1.gguf --type q4_1
Конвертирование происходит на процессоре в один поток, занимает 5-20 минут и требует не менее 24 Гб оперативной памяти для моделей Flux
Как пользоваться
-
Перейдите по адресу https://github.com/leejet/stable-diffusion.cpp/releases
-
Скачайте любой из файлов sd-master- ... -bin-win- ... .zip
-
Распакуйте его в любую папку
-
Положите в папку, куда вы распоковали архив sd-master- ... данный to_GGUF.bat файл
-
Перетащите на to_GGUF.bat модель .safetensors, которую Вы хотите сконвертировать
Всю работу делает stable-diffusion.cpp: sd.exe -M convert -m from.safetensors -o to.q4_1.gguf --type q4_1