Skip to content

Commit

Permalink
set default number of threads to 2 , 8 is too many parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkemgoknar committed Oct 30, 2023
1 parent cea0550 commit 2413585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RUN python -m pip install --no-deps -r requirements.frozen.txt \

COPY main.py .

ENV NUM_THREADS=8
ENV NUM_THREADS=2
EXPOSE 80
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
2 changes: 1 addition & 1 deletion server/Dockerfile.cuda118
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ COPY main.py .
#Mark this 1 if you have older card
ENV NVIDIA_DISABLE_REQUIRE=0

ENV NUM_THREADS=8
ENV NUM_THREADS=2
EXPOSE 80
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]

0 comments on commit 2413585

Please sign in to comment.