-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[BUG/Help] <title>RuntimeError: MPS backend out of memory (MPS allocated: 18.05 GB, other allocations: 4.48 MB, max allowed: 18.13 GB). Tried to allocate 192.00 MB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure). #311
Comments
是的,内存不够。 |
我感觉可能是MacOS 13.3的问题。我自己maccbook是13.2的版本,mac studio 13,3的版本,然后我发现:
所以我怀疑,可能是这个13.3的问题。 当时升级到13.3就是因为程序报warning: |
Same behavior (1 and 2) on my MacBook Pro M1Pro with macOS 13.3 |
我也是碰到一样的问题,和qitao052描述的一摸一样,13.3系统下面只能用cpu,gpu加速失效,报内存不够 |
我32g的 MacOS 13.3 The dtype of attention mask (torch.int64) is not bool |
+1,使用mps会报错,异常退出了:RuntimeError: MPS backend out of memory (MPS allocated: 11.82 GB, other allocations: 6.30 GB, max allowed: 18.13 GB). Tried to allocate 5.72 MB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure). model = AutoModel.from_pretrained("./chatglm-6b", trust_remote_code=True).float() # .half().to('mps') 硬件环境:16G内存,M1芯片,Mac OS 13.3.1 (22E261),可用储存空间24.87 GB |
Same error/warning(?) on Intel 12th Gen x86 CPU, 16 GB RAM. |
之前的实现会触发一个pytorch的bug,现在已经修复了,见 #462 |
I select trust-remote-code and resolve it ,but i use facebook_galactica-6.7b model |
Is there an existing issue for this?
Current Behavior
一直跑不起来,
是因为我内存不够么
我的16G内存
cpu和常规模式能跑起来。
环境没问题
m1pro 芯片
Expected Behavior
No response
Steps To Reproduce
一直跑不起来,
是因为我内存不够么
我的16G内存
cpu和常规模式能跑起来。
环境没问题
m1pro 芯片
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: