Skip to content

Commit 1eeb423

Browse files
committed
fix dockerfile
1 parent 68aa05b commit 1eeb423

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM modelscope-registry.cn-hangzhou.cr.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda12.8.1-py311-torch2.9.1-1.35.0
22

3-
RUN echo '47.110.159.78 github.com' >> /etc/hosts
4-
53
# Install miniconda with Python 3.12
64
RUN curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
75
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \
@@ -24,4 +22,5 @@ RUN pip install --no-cache-dir tinker==0.14.0 "ray[serve]" transformers peft acc
2422

2523
RUN pip install -e . --no-build-isolation
2624

27-
CMD ["bash", "cookbook/client/server/megatron/run.sh"]
25+
ENV TWINKLE_WORKDIR=/data
26+
CMD ["bash", "-c", "mkdir -p $TWINKLE_WORKDIR && cd $TWINKLE_WORKDIR && bash /twinkle/cookbook/client/server/megatron/run.sh 2>&1 | tee $TWINKLE_WORKDIR/run.log"]

INSTALL_MEGATRON.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ echo ""
9595
python -c "
9696
import pkg_resources
9797
98-
packages = ['peft', 'accelerate', 'transformers', 'modelscope', 'oss2', 'vllm', 'transformer_engine', 'megatron_core', 'flash_attn', 'numpy']
98+
packages = ['peft', 'accelerate', 'transformers', 'modelscope', 'vllm', 'transformer_engine', 'megatron_core', 'flash_attn', 'numpy']
9999
100100
print('Installed package versions:')
101101
print('-' * 40)

0 commit comments

Comments
 (0)