Spaces:
Build error
Build error
biib
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
# Utilizza l'immagine base NVIDIA CUDA con supporto GPU
|
| 2 |
FROM huggingface/transformers-pytorch-gpu:latest
|
| 3 |
# Installa Python, pip e altre dipendenze di sistema
|
| 4 |
-
|
| 5 |
# Installa Python, pip e altre dipendenze di sistema
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
python3 \
|
|
@@ -17,10 +16,11 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
| 17 |
RUN pip install torch transformers datasets
|
| 18 |
|
| 19 |
# Crea una directory per la cache di Hugging Face
|
| 20 |
-
RUN mkdir -p /
|
| 21 |
|
| 22 |
# Imposta le variabili d'ambiente per la cache e altre configurazioni
|
| 23 |
-
ENV HF_HOME=/
|
|
|
|
| 24 |
ENV HUGGINGFACE_TOKEN=hf_1234567890abcdef1234567890abcdef12345678
|
| 25 |
ENV HUGGINGFACE_USER=Rathalos
|
| 26 |
ENV HUGGINGFACE_REPO=training_incite
|
|
|
|
| 1 |
# Utilizza l'immagine base NVIDIA CUDA con supporto GPU
|
| 2 |
FROM huggingface/transformers-pytorch-gpu:latest
|
| 3 |
# Installa Python, pip e altre dipendenze di sistema
|
|
|
|
| 4 |
# Installa Python, pip e altre dipendenze di sistema
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
python3 \
|
|
|
|
| 16 |
RUN pip install torch transformers datasets
|
| 17 |
|
| 18 |
# Crea una directory per la cache di Hugging Face
|
| 19 |
+
RUN mkdir -p /root/.cache/huggingface
|
| 20 |
|
| 21 |
# Imposta le variabili d'ambiente per la cache e altre configurazioni
|
| 22 |
+
ENV HF_HOME=/root/.cache/huggingface
|
| 23 |
+
ENV TRANSFORMERS_CACHE=/root/.cache/huggingface
|
| 24 |
ENV HUGGINGFACE_TOKEN=hf_1234567890abcdef1234567890abcdef12345678
|
| 25 |
ENV HUGGINGFACE_USER=Rathalos
|
| 26 |
ENV HUGGINGFACE_REPO=training_incite
|