Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOM error when i tried to save model in q_8 gguf #1721

Open
Mracobes9 opened this issue Feb 15, 2025 · 1 comment
Open

OOM error when i tried to save model in q_8 gguf #1721

Mracobes9 opened this issue Feb 15, 2025 · 1 comment

Comments

@Mracobes9
Copy link

Hi. I'm facing the following problem. After training a model, I get an OOM error when I try to save the result in GGUF Q_8 format. Could you please advise how this can be avoided ?

@shimmyshimmer
Copy link
Collaborator

You can followthis and see if it works: https://docs.unsloth.ai/basics/errors#saving-to-gguf-vllm-16bit-crashes

"You can try reducing the maximum GPU usage during saving by changing maximum_memory_usage.

The default is model.save_pretrained(..., maximum_memory_usage = 0.75). Reduce it to say 0.5 to use 50% of GPU peak memory or lower. This can reduce OOM crashes during saving."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants