-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 867 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use the NVIDIA PyTorch container as the base image
FROM nvcr.io/nvidia/pytorch:25.01-py3
# Set the working directory
WORKDIR /workspace
# Install additional Python packages
RUN pip install --no-cache-dir transformers datasets accelerate deepspeed
RUN pip install --no-cache-dir tensorboardX tensorboard
RUN pip install --no-cache-dir wandb tiktoken blobfile sentencepiece
RUN pip install --no-cache-dir -U "huggingface_hub[cli]"
ENV BASE_DIR=/workspace/code_porting_models
ENV HF_HOME=/workspace/.cache/huggingface/hub
ENV TRANSFORMERS_CACHE=/workspace/.cache/huggingface/hub
# Set the entrypoint to bash
ENTRYPOINT ["/bin/bash"]
# To build the image, use the following command:
# docker build -t code_porting_models .
# To run the container with GPU support, use the following command:
# docker run --gpus all -it --rm -v $(pwd):/workspace code_porting_models