Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +17 -17
Dockerfile
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
-
# Use the PyTorch CUDA image
|
| 2 |
-
FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
|
| 3 |
-
|
| 4 |
-
# Install system build tools for Unsloth
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
-
git \
|
| 7 |
-
build-essential \
|
| 8 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
-
|
| 10 |
-
WORKDIR /app
|
| 11 |
-
COPY . .
|
| 12 |
-
|
| 13 |
-
# Install the ML stack
|
| 14 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
-
|
| 16 |
-
# Run the training script directly when the Space boots
|
| 17 |
-
CMD ["
|
|
|
|
| 1 |
+
# Use the PyTorch CUDA image
|
| 2 |
+
FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
|
| 3 |
+
|
| 4 |
+
# Install system build tools for Unsloth
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
git \
|
| 7 |
+
build-essential \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
COPY . .
|
| 12 |
+
|
| 13 |
+
# Install the ML stack
|
| 14 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
+
|
| 16 |
+
# Run the training script directly when the Space boots
|
| 17 |
+
CMD ["/bin/bash", "-c", "python -m http.server 7860 & python grpo_train.py"]
|