Skip to content

Commit

Permalink
Fix tensorflow upperbound macos (#1901)
Browse files Browse the repository at this point in the history
* Limited transformers version for macos

* Included comment for tensorflow macos upperbound

* Update runtimes/huggingface/pyproject.toml

Co-authored-by: Sherif Akoush <sherif.akoush@gmail.com>

---------

Co-authored-by: Sherif Akoush <sherif.akoush@gmail.com>
  • Loading branch information
RobertSamoilescu and sakoush authored Sep 9, 2024
1 parent eea6593 commit a5c82d1
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 2 deletions.
79 changes: 78 additions & 1 deletion runtimes/huggingface/poetry.lock

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

7 changes: 6 additions & 1 deletion runtimes/huggingface/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ torch = [
{markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", version = "<2.3.0"},
{markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'", version = "<2.4.0"}
]
# tensorflow 2.17.0 not compiled for MacOS for x86 architectures
# see: https://www.tensorflow.org/install/pip#package_location
tensorflow = [
{markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", version = ">=2.12,<2.17"},
{markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'", version = ">=2.12,<2.18"}
]
transformers = ">=4.30,<5.0"
tensorflow = ">=2.12,<2.18"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit a5c82d1

Please sign in to comment.