Skip to content

Commit 30b2fa7

Browse files
giuseppe-cocoGiuseppe Coco
and
Giuseppe Coco
authored
fix[#1415]: using torch 2.2.0 in macOS x86_64 (#1417)
* Add /app to PYTHONPATH * fix for issue #1415 --------- Co-authored-by: Giuseppe Coco <[email protected]>
1 parent c4478b5 commit 30b2fa7

File tree

3 files changed

+130
-20
lines changed

3 files changed

+130
-20
lines changed

poetry.lock

+124-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ sentence-transformers = {version = "^2.3.0", optional = true}
5757
sqlglot = {extras = ["rs"], version = "^25.0.3"}
5858
pymilvus = {version = "^2.4.6", optional = true}
5959
milvus-model = {version = "^0.2.7", optional = true}
60+
torch = [
61+
{ version = "2.2.0", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'" },
62+
{ version = "2.4.1", markers = "sys_platform != 'darwin'" }
63+
]
6064

6165
[tool.poetry.group.dev]
6266
optional = true

server/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
2121
# Add Poetry to PATH
2222
ENV PATH="/root/.local/bin:$PATH"
2323

24+
ENV PYTHONPATH=/app
25+
2426
# Copy the current directory contents into the container at /app
2527
COPY . /app
2628

0 commit comments

Comments
 (0)