Support install from source for PyTorch 2.6 RC in UT (#12697)
* Support install from source for PyTorch 2.6 RC in UT * Remove expecttest
This commit is contained in:
parent
da8bcb7db1
commit
4bf93c66e8
1 changed files with 6 additions and 0 deletions
6
.github/actions/llm/setup-llm-env/action.yml
vendored
6
.github/actions/llm/setup-llm-env/action.yml
vendored
|
|
@ -29,6 +29,9 @@ runs:
|
||||||
sed -i 's/"bigdl-core-xe-addons-21==" + CORE_XE_VERSION/"bigdl-core-xe-addons-21"/g' python/llm/setup.py
|
sed -i 's/"bigdl-core-xe-addons-21==" + CORE_XE_VERSION/"bigdl-core-xe-addons-21"/g' python/llm/setup.py
|
||||||
sed -i 's/"bigdl-core-xe-esimd-21==" + CORE_XE_VERSION/"bigdl-core-xe-esimd-21"/g' python/llm/setup.py
|
sed -i 's/"bigdl-core-xe-esimd-21==" + CORE_XE_VERSION/"bigdl-core-xe-esimd-21"/g' python/llm/setup.py
|
||||||
|
|
||||||
|
pip uninstall bigdl-core-xe-all -y || true
|
||||||
|
sed -i 's/"bigdl-core-xe-all==" + CORE_XE_VERSION/"bigdl-core-xe-all"/g' python/llm/setup.py
|
||||||
|
|
||||||
pip install requests
|
pip install requests
|
||||||
if [[ ${{ runner.os }} == 'Linux' ]]; then
|
if [[ ${{ runner.os }} == 'Linux' ]]; then
|
||||||
bash python/llm/dev/release_default_linux.sh default false
|
bash python/llm/dev/release_default_linux.sh default false
|
||||||
|
|
@ -45,6 +48,9 @@ runs:
|
||||||
elif [[ ${{ inputs.extra-dependency }} == 'xpu_2.1' ]]; then
|
elif [[ ${{ inputs.extra-dependency }} == 'xpu_2.1' ]]; then
|
||||||
pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[xpu_2.1]" --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
|
pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[xpu_2.1]" --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
|
||||||
pip install pytest expecttest
|
pip install pytest expecttest
|
||||||
|
elif [[ ${{ inputs.extra-dependency }} == 'xpu_2.6' ]]; then
|
||||||
|
pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[xpu_2.6]" --extra-index-url https://download.pytorch.org/whl/test/xpu
|
||||||
|
pip install pytest
|
||||||
else
|
else
|
||||||
if [[ ${{ runner.os }} == 'Linux' ]]; then
|
if [[ ${{ runner.os }} == 'Linux' ]]; then
|
||||||
pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" --extra-index-url https://download.pytorch.org/whl/cpu
|
pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue