Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -10,13 +10,17 @@ WORKDIR /workspace
|
|
| 10 |
|
| 11 |
# Upgrade pip and install CPU-only PyTorch, Transformers, Accelerate, Unsloth, etc.
|
| 12 |
# Use the official PyTorch CPU wheel index for performance on CPU:contentReference[oaicite:5]{index=5}.
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
&& pip3 install
|
|
|
|
| 16 |
|
| 17 |
# (Optional) Install unsloth_zoo or other utilities if needed:
|
| 18 |
# RUN pip3 install unsloth-zoo
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# Copy an example inference script into the container
|
| 21 |
# (This script should load the model and do a sample generation.)
|
| 22 |
COPY inference.py /workspace/inference.py
|
|
|
|
| 10 |
|
| 11 |
# Upgrade pip and install CPU-only PyTorch, Transformers, Accelerate, Unsloth, etc.
|
| 12 |
# Use the official PyTorch CPU wheel index for performance on CPU:contentReference[oaicite:5]{index=5}.
|
| 13 |
+
|
| 14 |
+
#RUN pip3 install --upgrade pip \
|
| 15 |
+
# && pip3 install torch --index-url https://download.pytorch.org/whl/cpu \
|
| 16 |
+
# && pip3 install transformers accelerate unsloth
|
| 17 |
|
| 18 |
# (Optional) Install unsloth_zoo or other utilities if needed:
|
| 19 |
# RUN pip3 install unsloth-zoo
|
| 20 |
|
| 21 |
+
RUN pip3 install --upgrade pip \
|
| 22 |
+
&& pip3 install transformers accelerate unsloth
|
| 23 |
+
|
| 24 |
# Copy an example inference script into the container
|
| 25 |
# (This script should load the model and do a sample generation.)
|
| 26 |
COPY inference.py /workspace/inference.py
|