Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official PyTorch image as the base
|
2 |
+
FROM pytorch/pytorch:latest
|
3 |
+
|
4 |
+
# Set working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Install necessary Python libraries
|
8 |
+
RUN pip install --no-cache-dir transformers datasets accelerate peft torch torchvision torchaudio
|
9 |
+
|
10 |
+
# Copy all local files into the container
|
11 |
+
COPY . .
|
12 |
+
|
13 |
+
# Set default command (replace with your training script later)
|
14 |
+
CMD ["python", "train.py"]
|