Skip to content

Commit

Permalink
fix[#1415]: using torch 2.2.0 in macOS x86_64 (#1417)
Browse files Browse the repository at this point in the history
* Add /app to PYTHONPATH

* fix for issue #1415

---------

Co-authored-by: Giuseppe Coco <[email protected]>
  • Loading branch information
giuseppe-coco and Giuseppe Coco authored Oct 29, 2024
1 parent c4478b5 commit 30b2fa7
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 20 deletions.
144 changes: 124 additions & 20 deletions poetry.lock

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

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ sentence-transformers = {version = "^2.3.0", optional = true}
sqlglot = {extras = ["rs"], version = "^25.0.3"}
pymilvus = {version = "^2.4.6", optional = true}
milvus-model = {version = "^0.2.7", optional = true}
torch = [
{ version = "2.2.0", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'" },
{ version = "2.4.1", markers = "sys_platform != 'darwin'" }
]

[tool.poetry.group.dev]
optional = true
Expand Down
2 changes: 2 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
# Add Poetry to PATH
ENV PATH="/root/.local/bin:$PATH"

ENV PYTHONPATH=/app

# Copy the current directory contents into the container at /app
COPY . /app

Expand Down

0 comments on commit 30b2fa7

Please sign in to comment.