Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +16 -12
Dockerfile
CHANGED
|
@@ -5,18 +5,22 @@ WORKDIR /app
|
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
git \
|
| 8 |
-
&& rm -rf /var/lib/
|
| 9 |
-
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Copy training script
|
| 22 |
COPY train_arithmetic_v5_ultimate.py .
|
|
|
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
git \
|
| 8 |
+
&& rm -rf /var/lib/aptLists/*
|
| 9 |
+
|
| 10 |
+
# Install core Python packages (required)
|
| 11 |
+
RUN pip install --no-cache-dir \
|
| 12 |
+
torch \
|
| 13 |
+
transformers \
|
| 14 |
+
accelerate \
|
| 15 |
+
trl \
|
| 16 |
+
datasets \
|
| 17 |
+
huggingface_hub \
|
| 18 |
+
peft
|
| 19 |
+
|
| 20 |
+
# Install optional packages (may fail, that's OK)
|
| 21 |
+
RUN pip install --no-cache-dir optimum || echo "optimum not installed"
|
| 22 |
+
RUN pip install --no-cache-dir bitsandbytes || echo "bitsandbytes not installed"
|
| 23 |
+
RUN pip install --no-cache-dir intel_extension_for_pytorch || echo "IPEX not installed"
|
| 24 |
|
| 25 |
# Copy training script
|
| 26 |
COPY train_arithmetic_v5_ultimate.py .
|