Hey Guys,
I’m currently using a MacBook Air M1 to run some local AI models, but recently I’ve encountered an issue where my system crashes and restarts when I run a model. This has happened a few times, and I’m trying to figure out the exact cause.
Issue:
- When running the model, my system crashes and restarts.
What I’ve tried:
- I’ve checked the system logs via the Console app, but there’s nothing helpful there—perhaps the logs got cleared, but I’m not sure.
Question:
- Could this be related to swap usage, GPU, or CPU pressure? How can I pinpoint the exact cause of the crash? I’m looking for some evidence or debugging tips that can help confirm this.
Bonus Question:
- Is there a way to control the resource usage dynamically while running AI models? For instance, can I tell a model to use only a certain percentage (like 40%) of the system’s resources, to prevent crashing while still running other tasks?
Specs:
MacBook Air M1 (8GB RAM)
Used MLX for the MPS support
Thanks in advance!