Upload folder using huggingface_hub
Browse files- Dockerfile +2 -13
- requirements.txt +4 -3
Dockerfile
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
-
# FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04
|
2 |
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
|
3 |
|
4 |
-
|
5 |
-
|
6 |
# Set environment variables
|
7 |
ENV PYTHONUNBUFFERED=1 \
|
8 |
DEBIAN_FRONTEND=noninteractive \
|
@@ -29,18 +26,10 @@ RUN python3 -m pip install --upgrade pip setuptools wheel
|
|
29 |
|
30 |
WORKDIR /app
|
31 |
|
32 |
-
COPY requirements.txt .
|
33 |
-
|
34 |
-
# Install PyTorch with CUDA support
|
35 |
-
RUN pip3 install --no-cache-dir torch==2.3.0 torchvision==0.18.0 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121
|
36 |
-
|
37 |
-
# Install other requirements
|
38 |
-
RUN pip3 install --no-cache-dir -r requirements.txt
|
39 |
-
|
40 |
COPY . .
|
41 |
|
42 |
-
#
|
43 |
-
RUN
|
44 |
|
45 |
EXPOSE 8000
|
46 |
|
|
|
|
|
1 |
FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04
|
2 |
|
|
|
|
|
3 |
# Set environment variables
|
4 |
ENV PYTHONUNBUFFERED=1 \
|
5 |
DEBIAN_FRONTEND=noninteractive \
|
|
|
26 |
|
27 |
WORKDIR /app
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
COPY . .
|
30 |
|
31 |
+
# Install requirements
|
32 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
33 |
|
34 |
EXPOSE 8000
|
35 |
|
requirements.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
torch==2.
|
2 |
sentencepiece==0.2.0
|
3 |
tiktoken==0.4.0
|
4 |
torchtune @ git+https://github.com/pytorch/torchtune.git@8f59c2fecd722691271eecca630a526719a32f76#egg=torchtune
|
5 |
lm_eval==0.4
|
6 |
-
torchvision==0.
|
7 |
diffusers==0.27.2
|
8 |
imagebind @ git+https://github.com/omegalabsinc/ImageBind.git@c3c3b2e1ce6fd850ff42ce0375823fe22880a7cc#egg=imagebind
|
9 |
llama3 @ git+https://github.com/meta-llama/llama3.git@af6eedf7042fb51d00b2b26d8ef1ceaab73e1670
|
@@ -14,4 +14,5 @@ huggingface-hub==0.24.0
|
|
14 |
omegaconf==2.3.0
|
15 |
uvicorn==0.25.0
|
16 |
fastapi==0.104.1
|
17 |
-
pydantic==2.5.2
|
|
|
|
1 |
+
torch==2.6.0
|
2 |
sentencepiece==0.2.0
|
3 |
tiktoken==0.4.0
|
4 |
torchtune @ git+https://github.com/pytorch/torchtune.git@8f59c2fecd722691271eecca630a526719a32f76#egg=torchtune
|
5 |
lm_eval==0.4
|
6 |
+
torchvision==0.21.0
|
7 |
diffusers==0.27.2
|
8 |
imagebind @ git+https://github.com/omegalabsinc/ImageBind.git@c3c3b2e1ce6fd850ff42ce0375823fe22880a7cc#egg=imagebind
|
9 |
llama3 @ git+https://github.com/meta-llama/llama3.git@af6eedf7042fb51d00b2b26d8ef1ceaab73e1670
|
|
|
14 |
omegaconf==2.3.0
|
15 |
uvicorn==0.25.0
|
16 |
fastapi==0.104.1
|
17 |
+
pydantic==2.5.2
|
18 |
+
torchaudio==2.6.0
|