| |
| |
| FROM nvcr.io/nvidia/pytorch:24.08-py3 |
|
|
| |
| ENV MAX_JOBS=32 |
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV NODE_OPTIONS="" |
|
|
| |
| ARG APT_SOURCE=https://mirrors.ustc.edu.cn/ubuntu/ |
|
|
| |
| RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && \ |
| { \ |
| echo "deb ${APT_SOURCE} jammy main restricted universe multiverse"; \ |
| echo "deb ${APT_SOURCE} jammy-updates main restricted universe multiverse"; \ |
| echo "deb ${APT_SOURCE} jammy-backports main restricted universe multiverse"; \ |
| echo "deb ${APT_SOURCE} jammy-security main restricted universe multiverse"; \ |
| } > /etc/apt/sources.list |
|
|
| |
| RUN apt-get update && \ |
| apt-get install -y -o Dpkg::Options::="--force-confdef" systemd && \ |
| apt-get clean |
|
|
| |
| RUN apt-get update && \ |
| apt-get install -y tini && \ |
| apt-get clean |
|
|
| |
| ARG PIP_INDEX=https://mirrors.aliyun.com/pypi/simple/ |
|
|
| RUN pip config set global.index-url "${PIP_INDEX}" && \ |
| pip config set global.extra-index-url "${PIP_INDEX}" && \ |
| python -m pip install --upgrade pip |
|
|
| |
| RUN pip uninstall -y cuda-python && pip install "sglang[all]==0.4.6.post5" --no-cache-dir --find-links https://flashinfer.ai/whl/cu124/torch2.6/flashinfer-python && pip install torch-memory-saver --no-cache-dir |
|
|
| |
| RUN pip install --no-cache-dir torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 tensordict torchdata \ |
| transformers>=4.49.0 accelerate datasets peft hf_transfer \ |
| ray[default] codetiming hydra-core pandas pyarrow>=15.0.0 pylatexenc qwen-vl-utils wandb liger-kernel \ |
| pytest pre-commit py-spy pyext |
|
|
| |
| RUN pip uninstall -y transformer-engine flash-attn && \ |
| wget -v https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl && \ |
| pip install --no-cache-dir flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl |
|
|
| |
| RUN pip uninstall -y pynvml nvidia-ml-py && \ |
| pip install --no-cache-dir nvidia-ml-py>=12.560.30 opencv-python-headless==4.8.0.74 fastapi==0.115.6 |
|
|