| |
| |
| |
| |
| |
| |
|
|
|
|
| FROM nvcr.io/nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04 |
|
|
| WORKDIR /workspace |
|
|
| RUN chmod 1777 /tmp && apt update && apt install -y \ |
| build-essential \ |
| curl git wget vim tmux net-tools \ |
| python3 python3-pip python3-dev python3-packaging \ |
| libomp-dev infiniband-diags libibverbs-dev librdmacm-dev rdma-core perftest \ |
| && rm -rf /var/lib/apt/lists/* \ |
| && ln -sf /usr/bin/python3 /usr/bin/python \ |
| && ln -sf /usr/bin/pip3 /usr/bin/pip |
|
|
| |
| |
| |
|
|
| |
| COPY . . |
|
|
| |
| RUN pip install --upgrade pip \ |
| && pip install -e .[vllm,mm,dev] \ |
| && pip install flash_attn==2.8.1 --no-build-isolation \ |
| && pip install -e .[megatron] \ |
| && pip install transformer_engine[pytorch]==2.10.0 --no-build-isolation --no-cache-dir \ |
| && pip install git+https://github.com/ISEEKYAN/mbridge.git@20e9ffbbe72ae7b1df83bfe1bc3c11f7382f2612 \ |
| && NVCC_APPEND_FLAGS="--threads 4" APEX_PARALLEL_BUILD=8 pip install -v \ |
| --disable-pip-version-check --no-cache-dir --no-build-isolation \ |
| --config-settings "--build-option=--cpp_ext" \ |
| --config-settings "--build-option=--cuda_ext" \ |
| --resume-retries 20 git+https://github.com/NVIDIA/apex.git |
|
|
| |
|
|
| |
| |
| |
|
|
| |
| |
| |
|
|