Skip to content

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
Contributor

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
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