Spaces:
Runtime error
Runtime error
phuong-d-h-nguyen
commited on
Upload folder using huggingface_hub
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -1,17 +1,15 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
RUN useradd -m -u 1000 user
|
4 |
-
USER user
|
5 |
-
|
6 |
WORKDIR /code
|
7 |
|
|
|
|
|
8 |
|
9 |
COPY finetuning.py /code/finetuning.py
|
10 |
COPY finetuning_set_v1.0.json /code/finetuning_set_v1.0.json
|
11 |
-
COPY -r ./cache/ /code/cache/
|
12 |
|
13 |
RUN chown -R user:user /code
|
14 |
|
15 |
RUN pip install trl transformers
|
16 |
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
17 |
-
CMD ["python", "./finetuning.py"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
USER user
|
7 |
|
8 |
COPY finetuning.py /code/finetuning.py
|
9 |
COPY finetuning_set_v1.0.json /code/finetuning_set_v1.0.json
|
|
|
10 |
|
11 |
RUN chown -R user:user /code
|
12 |
|
13 |
RUN pip install trl transformers
|
14 |
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
15 |
+
CMD ["python", "./finetuning.py"]
|