Skip to content

Commit

Permalink
poetry dependencies for torch in macOS with M-series (#144)
Browse files Browse the repository at this point in the history
* poetry dependencies for torch in macOS with M-series

* fix default torch dependency

* call `poetry lock --no-update` to remove added line again

---------

Co-authored-by: Arne Binder <[email protected]>
  • Loading branch information
Bhuvanesh-Verma and ArneBinder authored Jul 26, 2024
1 parent ae49e5d commit ea4e43d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ pyarrow = "^13"
pie-modules = ">=0.11.1,<0.13.0"
torch = [
# default
{version = "^2.1.0+cpu", source = "pytorch", markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
{version = "^2.1.0+cpu", source = "pytorch", markers = "sys_platform != 'darwin' or (platform_machine != 'arm64' and platform_machine != 'x86_64')"},
# torch >= 2.3.0 is not available for macOS on intel
{version = ">=2.1.0,<2.3.0", source = "pypi", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"},
# macOS with M-series
{version = "^2.1.0", source = "pypi", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'"},
]
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
Expand Down

0 comments on commit ea4e43d

Please sign in to comment.