Skip to content

Commit e7f452f

Browse files
XuehaoSunxin3he
andauthored
Update habana docker image version and DeepSpeed dependency to 1.21.0 (#2213)
Signed-off-by: Sun, Xuehao <[email protected]> Co-authored-by: Xin He <[email protected]>
1 parent 78a9a84 commit e7f452f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.azure-pipelines/scripts/ut/3x/run_3x_pt_fp8.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ echo "##[section]import check pass"
1212
# install requirements
1313
echo "##[group]set up UT env..."
1414
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
15+
export PT_HPU_LAZY_MODE=1
1516
sed -i '/^intel_extension_for_pytorch/d' /neural-compressor/test/3x/torch/requirements.txt
1617
sed -i '/^auto_round/d' /neural-compressor/test/3x/torch/requirements.txt
1718
cat /neural-compressor/test/3x/torch/requirements.txt

.azure-pipelines/template/docker-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ steps:
7474
7575
- ${{ if eq(parameters.imageSource, 'pull') }}:
7676
- script: |
77-
docker pull vault.habana.ai/gaudi-docker/1.20.0/ubuntu22.04/habanalabs/pytorch-installer-2.6.0:latest
77+
docker pull vault.habana.ai/gaudi-docker/1.21.0/ubuntu22.04/habanalabs/pytorch-installer-2.6.0:latest
7878
displayName: "Pull habana docker image"
7979
8080
- script: |
@@ -95,7 +95,7 @@ steps:
9595
else
9696
docker run -dit --disable-content-trust --privileged --name=${{ parameters.containerName }} --shm-size="2g" \
9797
--runtime=habana -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --cap-add=sys_nice --net=host --ipc=host \
98-
-v ${BUILD_SOURCESDIRECTORY}:/neural-compressor vault.habana.ai/gaudi-docker/1.20.0/ubuntu22.04/habanalabs/pytorch-installer-2.6.0:latest
98+
-v ${BUILD_SOURCESDIRECTORY}:/neural-compressor vault.habana.ai/gaudi-docker/1.21.0/ubuntu22.04/habanalabs/pytorch-installer-2.6.0:latest
9999
docker exec ${{ parameters.containerName }} bash -c "ln -sf \$(which python3) /usr/bin/python"
100100
fi
101101
echo "Show the container list after docker run ... "

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ To try on Intel Gaudi2, docker image with Gaudi Software Stack is recommended, p
5656

5757
Run a container with an interactive shell, [more info](https://docs.habana.ai/en/latest/Installation_Guide/Additional_Installation/Docker_Installation.html#docker-installation)
5858
```
59-
docker run -it --runtime=habana -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --cap-add=sys_nice --net=host --ipc=host vault.habana.ai/gaudi-docker/1.20.0/ubuntu24.04/habanalabs/pytorch-installer-2.6.0:latest
59+
docker run -it --runtime=habana -e HABANA_VISIBLE_DEVICES=all -e OMPI_MCA_btl_vader_single_copy_mechanism=none --cap-add=sys_nice --net=host --ipc=host vault.habana.ai/gaudi-docker/1.21.0/ubuntu24.04/habanalabs/pytorch-installer-2.6.0:latest
6060
```
61+
62+
> Note: Since Habana software >= 1.21.0, `PT_HPU_LAZY_MODE=0` is the default setting. However, most low-precision functions (such as `convert_from_uint4`) do not support this setting. Therefore, we recommend setting `PT_HPU_LAZY_MODE=1` to maintain compatibility.
63+
6164
Run the example,
6265
```python
6366
from neural_compressor.torch.quantization import (

test/3x/torch/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
auto_round
22
datasets
3-
deepspeed @ git+https://github.com/HabanaAI/DeepSpeed.git@1.20.0
3+
deepspeed @ git+https://github.com/HabanaAI/DeepSpeed.git@1.21.0
44
expecttest
55
intel_extension_for_pytorch
66
numpy

0 commit comments

Comments
 (0)