Spaces:
Paused
Paused
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +7 -14
Dockerfile
CHANGED
|
@@ -1,23 +1,16 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
RUN apt-get update && apt-get install -y python3-pip python3-dev git build-essential && rm -rf /var/lib/apt/lists/*
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
|
| 9 |
-
|
| 10 |
COPY ./requirements.txt requirements.txt
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
# Install other dependencies
|
| 14 |
-
RUN pip3 install --no-cache-dir --upgrade -r requirements.txt
|
| 15 |
-
RUN pip3 install --no-cache-dir --upgrade -r requirements-training.txt
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
RUN
|
| 19 |
|
| 20 |
COPY . /app
|
| 21 |
|
| 22 |
ENV PYTHONPATH="/app"
|
| 23 |
-
CMD ["
|
|
|
|
| 1 |
+
FROM unsloth/unsloth:latest
|
|
|
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# The unsloth image already has torch, torchvision, unsloth, etc.
|
| 6 |
+
# We only install project-specific dependencies.
|
|
|
|
| 7 |
COPY ./requirements.txt requirements.txt
|
| 8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
# Ensure TRL is new enough for GRPO
|
| 11 |
+
RUN pip install --no-cache-dir --upgrade "trl>=0.15.0"
|
| 12 |
|
| 13 |
COPY . /app
|
| 14 |
|
| 15 |
ENV PYTHONPATH="/app"
|
| 16 |
+
CMD ["python", "training/launch_hf_training.py"]
|