Export to GGUF format
model.save_pretrained_gguf(
"model",
tokenizer,
quantization_method="q4_k_m"
)
print("Save GGUF: model.save_pretrained_gguf('model', tokenizer, quantization_method='q4_k_m')")
print("✓ Same API as Unsloth!")
When I execute this block of code, I'm getting "FileNotFoundError: [Errno 2] No such file or directory: 'model/config.json'" error. I couldn't solve the problem.
Export to GGUF format
model.save_pretrained_gguf(
"model",
tokenizer,
quantization_method="q4_k_m"
)
print("Save GGUF: model.save_pretrained_gguf('model', tokenizer, quantization_method='q4_k_m')")
print("✓ Same API as Unsloth!")
When I execute this block of code, I'm getting "FileNotFoundError: [Errno 2] No such file or directory: 'model/config.json'" error. I couldn't solve the problem.