Skip to content

Commit b4c9731

Browse files
authored
Fix PSIRT Vulnerability - Dependency Confusion in oneccl_bind_pt package (#5226)
* Update Dockerfile * Update README.md * Update README.md * Update README.md
1 parent fe32ef7 commit b4c9731

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docker/llm/inference/cpu/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN env DEBIAN_FRONTEND=noninteractive apt-get update && \
5757
pip install Jinja2==3.1.3 && \
5858
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu && \
5959
pip install intel-extension-for-pytorch==2.2.0 && \
60-
pip install oneccl_bind_pt==2.2.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/ && \
60+
pip install oneccl_bind_pt==2.2.0 --index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/ && \
6161
pip install transformers==4.36.2
6262

6363
ENTRYPOINT ["/bin/bash"]

python/llm/example/CPU/Speculative-Decoding/baichuan2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To accelerate speculative decoding on CPU, optionally, you can install our valid
6969
```bash
7070
python -m pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu
7171
python -m pip install intel-extension-for-pytorch==2.2.0
72-
python -m pip install oneccl_bind_pt==2.2.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
72+
python -m pip install oneccl_bind_pt==2.2.0 --index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
7373
# if there is any installation problem for oneccl_binding, you can also find suitable index url at "https://pytorch-extension.intel.com/release-whl/stable/cpu/cn/" or "https://developer.intel.com/ipex-whl-stable-cpu" according to your environment.
7474

7575
# Install other dependencies

python/llm/example/CPU/Speculative-Decoding/llama2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ To accelerate speculative decoding on CPU, you can install our validated version
104104
# Install IPEX 2.2.0+cpu
105105
python -m pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu
106106
python -m pip install intel-extension-for-pytorch==2.2.0
107-
python -m pip install oneccl_bind_pt==2.2.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
107+
python -m pip install oneccl_bind_pt==2.2.0 --index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
108108
# if there is any installation problem for oneccl_binding, you can also find suitable index url at "https://pytorch-extension.intel.com/release-whl/stable/cpu/cn/" or "https://developer.intel.com/ipex-whl-stable-cpu" according to your environment.
109109

110110
# Update transformers

python/llm/example/CPU/Speculative-Decoding/mistral/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ To accelerate speculative decoding on CPU, you can install our validated version
9090
# Install IPEX 2.2.0+cpu
9191
python -m pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu
9292
python -m pip install intel-extension-for-pytorch==2.2.0
93-
python -m pip install oneccl_bind_pt==2.2.0 --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
93+
python -m pip install oneccl_bind_pt==2.2.0 --index-url https://pytorch-extension.intel.com/release-whl/stable/cpu/us/
9494
# if there is any installation problem for oneccl_binding, you can also find suitable index url at "https://pytorch-extension.intel.com/release-whl/stable/cpu/cn/" or "https://developer.intel.com/ipex-whl-stable-cpu" according to your environment.
9595

9696
# Update transformers

0 commit comments

Comments
 (0)