Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces version 0.10.0 with two major feature sets: a complete overhaul of the release automation workflow and enhanced support for Apple's Metal Performance Shaders (MPS) backend in PyTorch models.
Changes:
- Replaced legacy GitHub Actions workflows (
release.ymlandrelease-check.yml) with modular release automation supporting branch-based versioning, automated PyPI publishing, and hotfix propagation - Added MPS device detection and selection in PyTorch model device parsing to enable Apple Silicon GPU acceleration
- Updated PyTorch operations (autocast, GradScaler, benchmark configuration) to be device-type aware rather than CUDA-specific
- Bumped project version from 0.9.4 to 0.10.0 in
pyproject.tomlanduv.lock
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/release-on-branch-create.yml |
New workflow to automatically prepare release branches with version updates and draft PRs |
.github/workflows/release-on-merge.yml |
New workflow handling release tagging, PyPI publishing, next release branch creation, and hotfix propagation |
.github/workflows/release.yml |
Removed legacy release workflow to avoid conflicts |
.github/workflows/release-check.yml |
Removed legacy release check workflow to avoid conflicts |
batchflow/models/torch/base.py |
Added MPS device support in device parsing, updated autocast and GradScaler to use device type instead of hardcoded 'cuda', adjusted AMP disabling logic and cudnn benchmark configuration |
pyproject.toml |
Version bumped from 0.9.4 to 0.10.0 |
uv.lock |
Updated to reflect new version 0.10.0 and regenerated lock file |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the release automation workflow and adds enhanced support for Apple's Metal (MPS) backend in PyTorch models. It also bumps the project version to 0.10.0. Below are the most important changes grouped by theme:
Release Automation Overhaul:
release.ymlandrelease-check.yml) with a new, modular set of GitHub Actions:.github/workflows/release-on-branch-create.yml: Automatically validates and prepares release branches, updates version numbers, and creates draft pull requests for new releases..github/workflows/release-on-merge.yml: Handles release tagging, PyPI/TestPyPI publishing, next release branch creation, and hotfix propagation after merging release PRs intomaster.PyTorch MPS (Apple Silicon) Support:
batchflow/models/torch/base.pyto recognize and use the MPS backend when available, in addition to CUDA and CPU.Version Bump:
pyproject.tomlfrom 0.9.4 to 0.10.0 to reflect these breaking and feature changes.