Skip to content

saving model as GGUF file is not working #3

@aykutcayir34

Description

@aykutcayir34

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions