Skip to content

Conversation

@raffeyC
Copy link
Collaborator

@raffeyC raffeyC commented Dec 17, 2024

  • Needs testing with MPS devices
  • Added commented code for using bfloat16, but slower inference and fails when converting to numpy, so ignore until necessary


self.device = device
self.model = model
self.model = model.to(self.device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to add a model.eval() after this line?

@rossbar
Copy link
Contributor

rossbar commented Jan 23, 2025

I'll go ahead and get this in now anyways, questions about eval etc. can be addressed later!

@rossbar rossbar merged commit 06d5de9 into master Jan 23, 2025
18 checks passed
@rossbar rossbar deleted the auto_device branch January 23, 2025 21:43
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

Successfully merging this pull request may close these issues.

3 participants