Change: Use cn mirror for PyTorch extension installation to resolve network issues (#12559)
* Update Dockerfile * Update Dockerfile * Update Dockerfile
This commit is contained in:
parent
fcb474820d
commit
429bf1ffeb
3 changed files with 5 additions and 5 deletions
|
|
@ -65,7 +65,7 @@ RUN env DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||||
pip install Jinja2==3.1.3 && \
|
pip install Jinja2==3.1.3 && \
|
||||||
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu && \
|
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu && \
|
||||||
pip install intel-extension-for-pytorch==2.2.0 && \
|
pip install intel-extension-for-pytorch==2.2.0 && \
|
||||||
pip install oneccl_bind_pt==2.2.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/ && \
|
pip install oneccl_bind_pt==2.2.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/cn/ && \
|
||||||
pip install transformers==4.36.2
|
pip install transformers==4.36.2
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash"]
|
ENTRYPOINT ["/bin/bash"]
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
|
||||||
python3 get-pip.py && \
|
python3 get-pip.py && \
|
||||||
rm get-pip.py && \
|
rm get-pip.py && \
|
||||||
pip install --upgrade requests argparse urllib3 && \
|
pip install --upgrade requests argparse urllib3 && \
|
||||||
pip install --pre --upgrade ipex-llm[xpu_arc] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
|
pip install --pre --upgrade ipex-llm[xpu_arc] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ && \
|
||||||
pip install --pre pytorch-triton-xpu==3.0.0+1b2f15840e --index-url https://download.pytorch.org/whl/nightly/xpu && \
|
pip install --pre pytorch-triton-xpu==3.0.0+1b2f15840e --index-url https://download.pytorch.org/whl/nightly/xpu && \
|
||||||
# Fix Trivy CVE Issues
|
# Fix Trivy CVE Issues
|
||||||
pip install transformers_stream_generator einops tiktoken && \
|
pip install transformers_stream_generator einops tiktoken && \
|
||||||
|
|
@ -83,7 +83,7 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
|
||||||
# Download Deepspeed-AutoTP
|
# Download Deepspeed-AutoTP
|
||||||
cp -r ./ipex-llm/python/llm/example/GPU/Deepspeed-AutoTP/ ./Deepspeed-AutoTP && \
|
cp -r ./ipex-llm/python/llm/example/GPU/Deepspeed-AutoTP/ ./Deepspeed-AutoTP && \
|
||||||
# Install related library of Deepspeed-AutoTP
|
# Install related library of Deepspeed-AutoTP
|
||||||
pip install oneccl_bind_pt==2.3.100 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
|
pip install oneccl_bind_pt==2.3.100 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ && \
|
||||||
pip install git+https://github.com/microsoft/DeepSpeed.git@ed8aed5 && \
|
pip install git+https://github.com/microsoft/DeepSpeed.git@ed8aed5 && \
|
||||||
pip install git+https://github.com/intel/intel-extension-for-deepspeed.git@0eb734b && \
|
pip install git+https://github.com/intel/intel-extension-for-deepspeed.git@0eb734b && \
|
||||||
pip install mpi4py && \
|
pip install mpi4py && \
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
|
||||||
python3 get-pip.py && \
|
python3 get-pip.py && \
|
||||||
rm get-pip.py && \
|
rm get-pip.py && \
|
||||||
pip install --upgrade requests argparse urllib3 && \
|
pip install --upgrade requests argparse urllib3 && \
|
||||||
pip install --pre --upgrade ipex-llm[xpu,serving] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
|
pip install --pre --upgrade ipex-llm[xpu,serving] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ && \
|
||||||
pip install transformers_stream_generator einops tiktoken && \
|
pip install transformers_stream_generator einops tiktoken && \
|
||||||
pip install --upgrade colorama && \
|
pip install --upgrade colorama && \
|
||||||
# Download all-in-one benchmark and examples
|
# Download all-in-one benchmark and examples
|
||||||
|
|
@ -62,7 +62,7 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
|
||||||
rm -rf ./ipex-llm && \
|
rm -rf ./ipex-llm && \
|
||||||
# Install torch-ccl
|
# Install torch-ccl
|
||||||
cd /tmp/ && \
|
cd /tmp/ && \
|
||||||
pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
|
pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ && \
|
||||||
# Internal oneccl
|
# Internal oneccl
|
||||||
wget https://sourceforge.net/projects/oneccl-wks/files/2024.0.0.6.2-release/oneccl_wks_installer_2024.0.0.6.2.sh && \
|
wget https://sourceforge.net/projects/oneccl-wks/files/2024.0.0.6.2-release/oneccl_wks_installer_2024.0.0.6.2.sh && \
|
||||||
bash oneccl_wks_installer_2024.0.0.6.2.sh && \
|
bash oneccl_wks_installer_2024.0.0.6.2.sh && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue