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

RuntimeError: [enforce fail at CPUAllocator.cpp:68] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 90177536 bytes. Error code 12 (Cannot allocate memor y) #152

Open
armitamani opened this issue Apr 11, 2024 · 0 comments

Comments

@armitamani
Copy link

While running /alpaca_finetuning_v1$ ./finetuning.sh, I am getting error: "RuntimeError: [enforce fail at CPUAllocator.cpp:68] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 90177536 bytes. Error code 12 (Cannot allocate memor
y)
RuntimeError: [enforce fail at CPUAllocator.cpp:68] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 90177536 bytes. Error code 12 (Cannot allocate memor
y)"

I tried to change cpu from gpu in llama_adapter.py code, but then got error: "RuntimeErrorRuntimeError: don't know how to restore data location of torch.BFloat16Storage (tagged with gpu):
don't know how to restore data location of torch.BFloat16Storage (tagged with gpu)"

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

1 participant