Spaces:
Runtime error
Runtime error
Update Dockerfile and requirements.txt
Browse files- Dockerfile +6 -6
- requirements.txt +12 -13
Dockerfile
CHANGED
@@ -4,12 +4,6 @@ FROM python:3.11.1
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Run the container as root
|
8 |
-
# USER root
|
9 |
-
|
10 |
-
# Change permissions of the working directory
|
11 |
-
RUN chmod 777 /app # Gives all users read, write, and exec permissions in the app directory.
|
12 |
-
|
13 |
# Copy the current directory contents into the container at /usr/src/app
|
14 |
COPY . .
|
15 |
|
@@ -32,6 +26,12 @@ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
32 |
# Set the permissions for the script file
|
33 |
# RUN chmod +x python 3 train_llm.py
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
# Run the command inside your image filesystem.
|
36 |
CMD ["python", "train_llm.py"]
|
37 |
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Copy the current directory contents into the container at /usr/src/app
|
8 |
COPY . .
|
9 |
|
|
|
26 |
# Set the permissions for the script file
|
27 |
# RUN chmod +x python 3 train_llm.py
|
28 |
|
29 |
+
# Run the container as root
|
30 |
+
# USER root
|
31 |
+
|
32 |
+
# Change permissions of the working directory
|
33 |
+
RUN chmod 777 /app # Gives all users read, write, and exec permissions in the app directory.
|
34 |
+
|
35 |
# Run the command inside your image filesystem.
|
36 |
CMD ["python", "train_llm.py"]
|
37 |
|
requirements.txt
CHANGED
@@ -108,18 +108,17 @@ nest-asyncio==1.5.8
|
|
108 |
networkx==3.2.1
|
109 |
nltk==3.8.1
|
110 |
numpy==1.25.2
|
111 |
-
nvidia-
|
112 |
-
nvidia-cuda-
|
113 |
-
nvidia-cuda-
|
114 |
-
nvidia-
|
115 |
-
nvidia-
|
116 |
-
nvidia-
|
117 |
-
nvidia-
|
118 |
-
nvidia-
|
119 |
-
nvidia-
|
120 |
-
nvidia-
|
121 |
-
nvidia-
|
122 |
-
nvidia-nvtx-cu12==12.1.105
|
123 |
oauthlib==3.2.2
|
124 |
openai==1.3.7
|
125 |
opencv-python==4.8.1.78
|
@@ -206,7 +205,7 @@ tornado==6.4
|
|
206 |
tqdm==4.65.0
|
207 |
traitlets==5.14.0
|
208 |
transformers==4.35.2
|
209 |
-
triton==2.1.0
|
210 |
trl==0.7.4
|
211 |
types-jsonschema==4.20.0.0
|
212 |
types-python-dateutil==2.8.19.14
|
|
|
108 |
networkx==3.2.1
|
109 |
nltk==3.8.1
|
110 |
numpy==1.25.2
|
111 |
+
# nvidia-cuda-cupti-cu12==12.1.105
|
112 |
+
# nvidia-cuda-nvrtc-cu12==12.1.105
|
113 |
+
# nvidia-cuda-runtime-cu12==12.1.105
|
114 |
+
# nvidia-cudnn-cu12==8.9.2.26
|
115 |
+
# nvidia-cufft-cu12==11.0.2.54
|
116 |
+
# nvidia-curand-cu12==10.3.2.106
|
117 |
+
# nvidia-cusolver-cu12==11.4.5.107
|
118 |
+
# nvidia-cusparse-cu12==12.1.0.106
|
119 |
+
# nvidia-nccl-cu12==2.18.1
|
120 |
+
# nvidia-nvjitlink-cu12==12.3.101
|
121 |
+
# nvidia-nvtx-cu12==12.1.105
|
|
|
122 |
oauthlib==3.2.2
|
123 |
openai==1.3.7
|
124 |
opencv-python==4.8.1.78
|
|
|
205 |
tqdm==4.65.0
|
206 |
traitlets==5.14.0
|
207 |
transformers==4.35.2
|
208 |
+
# triton==2.1.0
|
209 |
trl==0.7.4
|
210 |
types-jsonschema==4.20.0.0
|
211 |
types-python-dateutil==2.8.19.14
|