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

configuration for Macs(apple silicon) #542

Open
bawsi99 opened this issue Aug 3, 2024 · 0 comments
Open

configuration for Macs(apple silicon) #542

bawsi99 opened this issue Aug 3, 2024 · 0 comments

Comments

@bawsi99
Copy link

bawsi99 commented Aug 3, 2024

I found having the following configuration works best to unleash the full potential of the gpu available in any apple silicon .
just add the following piece of code to train.py :

import torch._dynamo
torch._dynamo.config.suppress_errors = True
device='mps' (set device to mps), I have added the image of cpu and gpu utilisation of my machine from running this code .
Screenshot 2024-08-02 at 7 43 11 PM

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