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

devices.py - Update MPS FP16 check to account for upcoming MacOS Sonoma #3886

Merged
merged 3 commits into from
Aug 5, 2023
Merged

devices.py - Update MPS FP16 check to account for upcoming MacOS Sonoma #3886

merged 3 commits into from
Aug 5, 2023

Conversation

gogurtenjoyer
Copy link
Contributor

float16 doesn't seem to work on MacOS Sonoma due to further changes with Metal. This'll default back to float32 for Sonoma users.

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Have you updated all relevant documentation?

  • Yes (n/a)
  • No

Description

This enhances the FP16 check on Macs using MPS to also check the operating system version.
The upcoming MacOS Sonoma (14.0) has changed Metal again, which seems to break FP16 support.
Now, if the user is on Sonoma, we'll fall back to full precision.

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Don't think anything needs to be done here; uses two stdlib packages to determine macos version.

Added/updated tests?

  • Yes
  • No : i don't believe there's any tests this change would affect, but if needed i will look into creating them

[optional] Are there any post deployment tasks we need to perform?

Nope!

float16 doesn't seem to work on MacOS Sonoma due to further changes with Metal. This'll default back to float32 for Sonoma users.
@damian0815
Copy link
Contributor

wheeeeeeee

@psychedelicious psychedelicious enabled auto-merge (rebase) August 5, 2023 02:21
@psychedelicious
Copy link
Collaborator

Sorry for the delay, I think this was pushed to page 2 of PRs and forgotten about

@psychedelicious psychedelicious merged commit b6e369c into invoke-ai:main Aug 5, 2023
8 checks passed
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