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

Saving GGUF for Ollama: CUDA driver error: out of memory #1389

Open
criogennn opened this issue Dec 5, 2024 · 1 comment
Open

Saving GGUF for Ollama: CUDA driver error: out of memory #1389

criogennn opened this issue Dec 5, 2024 · 1 comment

Comments

@criogennn
Copy link

Is it possible that my video memory is sufficient for training the model but insufficient for saving it in the GGUF format? I have an RTX 3050 with 8 GB of VRAM. I receive the error "CUDA driver error: out of memory" when running:

model.save_pretrained_gguf("model", tokenizer, quantization_method="q4_k_m")

Does this error necessarily indicate a lack of memory, or could it mean something else? I would appreciate any assistance.

@danielhanchen
Copy link
Contributor

@criogennn Much apologies on the delay - could you try

model.save_pretrained_gguf("model", tokenizer, quantization_method="q4_k_m", maximum_memory_usage = 0.7)

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