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

Apple Studio m1 max out of memory? #1890

Closed
JasonOSX opened this issue Jun 16, 2023 · 5 comments
Closed

Apple Studio m1 max out of memory? #1890

JasonOSX opened this issue Jun 16, 2023 · 5 comments
Labels

Comments

@JasonOSX
Copy link

i experience memory/loading issue on m1 max studio with loading 30b 65b models with metal. it look like it has reached memory limit but i have enough of it. 7b and 13b work okay!

ps - sorry for my bad enlglish i am not native speaker

@ymcui
Copy link
Contributor

ymcui commented Jun 16, 2023

It is not solved yet. You can actively follow this PR, where the issue is being investigated: #1826

@JasonOSX
Copy link
Author

It is not solved yet. You can actively follow this PR, where the issue is being investigated: #1826

thank you :)

@remixer-dec
Copy link

remixer-dec commented Jun 20, 2023

Just tried the fresh version of python binding with the workaround PR merged, it crashes with a 30b model when n_gpu_layers>0

ggml_metal_graph_compute: command buffer 0 failed with status 5
GGML_ASSERT: /private/var/folders/zk/hd0v0z2910x13xv8hq213c600000gn/T/pip-install-pcxrvank/llama-cpp-python_c6c616faeeea45d696c56e85205281f2/vendor/llama.cpp/ggml-metal.m:969: false

UPD: Looks like this only happens with n_ctx = 2048 on a 32gb macbook, lower n_ctx values (<=1536) work fine.

@linghunjiushu
Copy link

Hope helps!

my env : apple m2 pro 16gb
model : llama-2-13b-chat.ggmlv3.q4_0.bin

I met same problem " failed with status 5", and I change n_ctx from 4096 to 2000, then it works fine.

image

@github-actions github-actions bot added the stale label Mar 25, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

No branches or pull requests

4 participants