-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cuda 12.1 build (for newer gpus) (#4)
* cuda 12.1 build (for newer gpus) * seperate jobs * seperate jobs * cuda 12.1 use develepment (need nvcc for deepspeed) * remove cache for build space
- Loading branch information
1 parent
634e257
commit de53a25
Showing
2 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel | ||
WORKDIR /app | ||
COPY requirements.txt . | ||
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements.txt \ | ||
&& python -m pip cache purge | ||
|
||
COPY main.py . | ||
|
||
#Mark this 1 if you have older card | ||
ENV NVIDIA_DISABLE_REQUIRE=0 | ||
|
||
ENV NUM_THREADS=2 | ||
EXPOSE 80 | ||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] |