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

Fix tensorflow upperbound macos #1901

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"}
Copy link
Member

Choose a reason for hiding this comment

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

It is probably fine, although I wondered a bit if we should be explicitly about what we include (as opposed to exclude).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since 2.17.0 is the latest version, I think it is ok. If future version will support MacOS, then we can be more explicit about the version we want to include/exclude.

]
transformers = ">=4.30,<5.0"
tensorflow = ">=2.12,<2.18"

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