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

Move MacOS CI to M1 runners #2225

Closed
wants to merge 4 commits into from
Closed

Move MacOS CI to M1 runners #2225

wants to merge 4 commits into from

Conversation

Balandat
Copy link
Contributor

@Balandat Balandat commented Feb 27, 2024

Pytorch is planning to stop nightly builds for Intel Macs: pytorch/pytorch#114602

This PR updates the mac runners to macos-14, which is the only public GHA runner for Mac M1s: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-private-repositories

Note: Python 3.9 is not available on the macos-14 runners, so testing on py3.9 is disabled on those by excluding that combo from the test matrix. Once we bump up the minimum supported python version to 3.10 we can remove this added complexity.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 27, 2024
@Balandat
Copy link
Contributor Author

Also, looks like py3.9 is not supported on macos-14.

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.87%. Comparing base (8d0cf8c) to head (1ea3c5b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2225   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files         188      188           
  Lines       16744    16744           
=======================================
  Hits        16723    16723           
  Misses         21       21           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Balandat
Copy link
Contributor Author

Hmm, interesting test failure here, can't repro this on my M1 laptop. May just adjust the tolerances a bit here.

Pytorch is planning to stop nightly builds for Intel Macs: pytorch/pytorch#114602
This PR updates the mac runners to `macos-14`, which is the only public GHA runner for Mac M1s: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-private-repositories
This was rather aggressive, and apparently the numerics on the macos-14 runner are slightly different.
@Balandat Balandat changed the title Move MacOs Ci to M1 runners Move MacOs CI to M1 runners Mar 3, 2024
Comment on lines +390 to +391
atol = 1e-7 if dtype == torch.double else 3e-7
rtol = 1e-4 if dtype == torch.double else 4e-4
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated these; they were rather tight, and apparently the numerics on the macos-14 runner are slightly different so that this ended up failing without these changes.

@facebook-github-bot
Copy link
Contributor

@Balandat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@Balandat Balandat changed the title Move MacOs CI to M1 runners Move MacOS CI to M1 runners Mar 3, 2024
@facebook-github-bot
Copy link
Contributor

@Balandat merged this pull request in ed4bc4c.

@Balandat Balandat deleted the macos-m1 branch March 11, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants