Skip to content

Update MPS support for torch.compile as >=2.10 now supports - #269

Merged
rasbt merged 4 commits into
rasbt:mainfrom
cicorias:patch-1
Sep 23, 2026
Merged

rasbt merged 4 commits into
rasbt:mainfrom
cicorias:patch-1

Conversation

@cicorias

Copy link
Copy Markdown
Contributor

Added version check for MPS support in PyTorch --

Added version check for MPS support in PyTorch.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

"outputs": [],
"source": [
"if device.type == \"mps\":\n",
"major, minor = map(int, torch.__version__.split(\".\"))[:2]\n",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Ah yes, thanks for the update!

@rasbt rasbt left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@rasbt
rasbt merged commit 1c0b9b1 into rasbt:main Sep 23, 2026
10 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.

2 participants