Spaces:
Runtime error
Runtime error
daresearch
commited on
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Start from a PyTorch base image with CUDA support
|
2 |
+
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
|
3 |
+
|
4 |
+
# Install dependencies
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
git \
|
7 |
+
wget \
|
8 |
+
curl \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
+
# Install Python libraries
|
12 |
+
RUN pip install --no-cache-dir \
|
13 |
+
unsloth torch transformers datasets trl huggingface_hub accelerate pandas
|
14 |
+
|
15 |
+
# Set environment variables
|
16 |
+
ENV HF_HOME=/workspace/.huggingface
|
17 |
+
|
18 |
+
# Copy your script to the container
|
19 |
+
COPY finetune_script.py /workspace/finetune_script.py
|
20 |
+
WORKDIR /workspace
|