Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

fix save_to_gguf_generic quantization_method type error (#3173)

Roland Tannous208f68f16497
diff --git a/unsloth/save.py b/unsloth/save.py
index 0317c4856c1..e6d09b78fab 100644
--- a/unsloth/save.py
+++ b/unsloth/save.py
@@ -2240,6 +2240,7 @@ from unsloth_zoo.llama_cpp import (
def save_to_gguf_generic(
model,
save_directory,
+ tokenizer,
quantization_method = None,
quantization_type = "Q8_0",
repo_id = None,