Enable llm gpu tests for PyTorch 2.1 (#9863)
This commit is contained in:
parent
23fc888abe
commit
aebed4b7bc
1 changed files with 12 additions and 12 deletions
24
.github/workflows/llm_unit_tests.yml
vendored
24
.github/workflows/llm_unit_tests.yml
vendored
|
|
@ -209,12 +209,12 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# - pytorch-version: "2.1"
|
- pytorch-version: "2.1"
|
||||||
# python-version: "3.9"
|
python-version: "3.9"
|
||||||
# - pytorch-version: "2.1"
|
- pytorch-version: "2.1"
|
||||||
# python-version: "3.10"
|
python-version: "3.10"
|
||||||
# - pytorch-version: "2.1"
|
- pytorch-version: "2.1"
|
||||||
# python-version: "3.11"
|
python-version: "3.11"
|
||||||
- pytorch-version: "2.0"
|
- pytorch-version: "2.0"
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
- pytorch-version: "2.0"
|
- pytorch-version: "2.0"
|
||||||
|
|
@ -266,9 +266,9 @@ jobs:
|
||||||
- name: Test installed xpu version
|
- name: Test installed xpu version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# TODO: differentiate oneapi path after oneapi 2024.0 is installed on test machine
|
# Specific oneapi position on arc ut test machines
|
||||||
if [[ '${{ matrix.pytorch-version }}' == '2.1' ]]; then
|
if [[ '${{ matrix.pytorch-version }}' == '2.1' ]]; then
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /home/arda/intel/oneapi/setvars.sh
|
||||||
elif [[ '${{ matrix.pytorch-version }}' == '2.0' ]]; then
|
elif [[ '${{ matrix.pytorch-version }}' == '2.0' ]]; then
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /opt/intel/oneapi/setvars.sh
|
||||||
fi
|
fi
|
||||||
|
|
@ -312,9 +312,9 @@ jobs:
|
||||||
- name: Run LLM inference test
|
- name: Run LLM inference test
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# TODO: differentiate oneapi path after oneapi 2024.0 is installed on test machine
|
# Specific oneapi position on arc ut test machines
|
||||||
if [[ '${{ matrix.pytorch-version }}' == '2.1' ]]; then
|
if [[ '${{ matrix.pytorch-version }}' == '2.1' ]]; then
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /home/arda/intel/oneapi/setvars.sh
|
||||||
elif [[ '${{ matrix.pytorch-version }}' == '2.0' ]]; then
|
elif [[ '${{ matrix.pytorch-version }}' == '2.0' ]]; then
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /opt/intel/oneapi/setvars.sh
|
||||||
fi
|
fi
|
||||||
|
|
@ -326,9 +326,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install transformers==4.34.0 peft==0.5.0 accelerate==0.23.0
|
python -m pip install transformers==4.34.0 peft==0.5.0 accelerate==0.23.0
|
||||||
python -m pip install bitsandbytes scipy
|
python -m pip install bitsandbytes scipy
|
||||||
# TODO: differentiate oneapi path after oneapi 2024.0 is installed on test machine
|
# Specific oneapi position on arc ut test machines
|
||||||
if [[ '${{ matrix.pytorch-version }}' == '2.1' ]]; then
|
if [[ '${{ matrix.pytorch-version }}' == '2.1' ]]; then
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /home/arda/intel/oneapi/setvars.sh
|
||||||
elif [[ '${{ matrix.pytorch-version }}' == '2.0' ]]; then
|
elif [[ '${{ matrix.pytorch-version }}' == '2.0' ]]; then
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /opt/intel/oneapi/setvars.sh
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue