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

Fix the error of model.device being undefined on macOS #267

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akuma
Copy link

@akuma akuma commented Dec 13, 2024

No description provided.

@jags111
Copy link
Owner

jags111 commented Dec 31, 2024

can you explain this

@jags111 jags111 self-assigned this Dec 31, 2024
@jags111 jags111 added the documentation Improvements or additions to documentation label Dec 31, 2024
@akuma
Copy link
Author

akuma commented Jan 8, 2025

Hi, this modification can prevent this error when running the program on macOS: model object has no attribute 'device'.
After I repaired it like this, it can run on macOS, and the model.device is mps.

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

Successfully merging this pull request may close these issues.

2 participants