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

CUDA out of memory when exporting llama7b #65

Closed
kRo0T opened this issue Jul 25, 2023 · 3 comments
Closed

CUDA out of memory when exporting llama7b #65

kRo0T opened this issue Jul 25, 2023 · 3 comments

Comments

@kRo0T
Copy link

kRo0T commented Jul 25, 2023

I'm trying to export llama7b model on my local machine (it has rtx 3060 12gb which is not enough) using export_meta_llama_bin.py script and receiving cuda out of memory.
I see that in generation.py from llama module (in Meta repo) they hardcoded cuda usage.
Anyone knows how to make it run on cpu with minimal script modification?

@abdelhadi-azouni
Copy link

Facing a related issue
and would love help to make this cpu only

@kRo0T
Copy link
Author

kRo0T commented Jul 25, 2023

Made a PR #78

@karpathy
Copy link
Owner

try with updated code

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

3 participants