Skip to content

Commit 2e9a066

Browse files
committed
test
1 parent 78522b4 commit 2e9a066

6 files changed

Lines changed: 21 additions & 7 deletions

File tree

.github/workflows/linux.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,14 @@ jobs:
616616
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).RAG.test }}
617617
timeout: 30
618618
- name: 'WWB tests'
619-
cmd: 'python -m pytest -v ./tools/who_what_benchmark/tests -m "not nanollava"'
619+
cmd: |
620+
python -m pip install ${{ github.workspace }}/install/wheels/whowhatbench
621+
python -m pytest -v ./tools/who_what_benchmark/tests -m "not nanollava"
620622
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}
621623
timeout: 120
622624
- name: 'WWB tests (nanollava)'
623625
cmd: |
626+
python -m pip install ${{ github.workspace }}/install/wheels/whowhatbench
624627
python -m pip install transformers==4.48.0
625628
python -m pytest -v ./tools/who_what_benchmark/tests -m nanollava
626629
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}
@@ -667,7 +670,7 @@ jobs:
667670
if: ${{ matrix.test.run_condition }}
668671
uses: ./src/.github/actions/install_wheel
669672
with:
670-
packages: "openvino;openvino_tokenizers[transformers];openvino_genai;whowhatbench"
673+
packages: "openvino;openvino_tokenizers[transformers];openvino_genai"
671674
requirements_files: "${{ env.SRC_DIR }}/tests/python_tests/requirements.txt"
672675
local_wheel_dir: ${{ env.INSTALL_DIR }}/wheels
673676

@@ -871,7 +874,7 @@ jobs:
871874
uses: ./src/.github/actions/install_wheel
872875
with:
873876
packages: "openvino;openvino_tokenizers[transformers];openvino_genai[testing]"
874-
requirements_files: "${{ env.SRC_DIR }}/samples/requirements.txt;${{ env.SRC_DIR }}/tools/llm_bench/requirements.txt"
877+
requirements_files: "${{ env.SRC_DIR }}/samples/requirements.txt"
875878
local_wheel_dir: ${{ env.INSTALL_DIR }}/wheels
876879

877880
- name: gtests unit tests
@@ -893,6 +896,7 @@ jobs:
893896
if: ${{ fromJSON(needs.smart_ci.outputs.affected_components).llm_bench }}
894897
run: |
895898
source ${{ env.INSTALL_DIR }}/setupvars.sh
899+
python -m pip install -r ${{ env.SRC_DIR }}/tools/llm_bench/requirements.txt
896900
python -m pytest -vs ${{ env.SRC_DIR }}/tests/python_tests/samples/test_tools_llm_benchmark.py -m "samples"
897901
env:
898902
SAMPLES_PY_DIR: "${{ env.SRC_DIR }}/tools"

.github/workflows/mac.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,14 @@ jobs:
468468
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).RAG.test }}
469469
timeout: 30
470470
- name: 'WWB tests'
471-
cmd: 'python -m pytest -v ./tools/who_what_benchmark/tests -m "not nanollava"'
471+
cmd: |
472+
python -m pip install ${{ env.INSTALL_DIR }}/wheels/whowhatbench
473+
python -m pytest -v ./tools/who_what_benchmark/tests -m "not nanollava"
472474
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}
473475
timeout: 120
474476
- name: 'WWB tests (nanollava)'
475477
cmd: |
478+
python -m pip install ${{ env.INSTALL_DIR }}/wheels/whowhatbench
476479
python -m pip install transformers==4.48.0
477480
python -m pytest -v ./tools/who_what_benchmark/tests -m nanollava
478481
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}

.github/workflows/manylinux_2_28.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,14 @@ jobs:
539539
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).RAG.test }}
540540
timeout: 30
541541
- name: 'WWB tests'
542-
cmd: 'python -m pytest -v ./tools/who_what_benchmark/tests -m "not nanollava"'
542+
cmd: |
543+
python -m pip install ${{ env.INSTALL_DIR }}/wheels/whowhatbench
544+
python -m pytest -v ./tools/who_what_benchmark/tests -m "not nanollava"
543545
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}
544546
timeout: 120
545547
- name: 'WWB tests (nanollava)'
546548
cmd: |
549+
python -m pip install ${{ env.INSTALL_DIR }}/wheels/whowhatbench
547550
python -m pip install transformers==4.48.0
548551
python -m pytest -v ./tools/who_what_benchmark/tests -m nanollava
549552
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}

.github/workflows/windows.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,11 +704,14 @@ jobs:
704704
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).RAG.test }}
705705
timeout: 30
706706
- name: 'WWB tests'
707-
cmd: 'python -m pytest -s -v tools/who_what_benchmark/tests -m "not nanollava"'
707+
cmd: |
708+
python -m pip install ${{ env.INSTALL_DIR }}/wheels/whowhatbench
709+
python -m pytest -s -v tools/who_what_benchmark/tests -m "not nanollava"
708710
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}
709711
timeout: 120
710712
- name: 'WWB tests (nanollava)'
711713
cmd: |
714+
python -m pip install ${{ env.INSTALL_DIR }}/wheels/whowhatbench
712715
python -m pip install transformers==4.48.0
713716
python -m pytest -v ./tools/who_what_benchmark/tests -m nanollava
714717
run_condition: ${{ fromJSON(needs.smart_ci.outputs.affected_components).WWB.test }}

tools/who_what_benchmark/whowhatbench/model_loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def load_text_hf_pipeline(model_id, device, **kwargs):
185185
else:
186186
try:
187187
model = AutoModelForCausalLM.from_pretrained(
188-
model_id, trust_remote_code=False, device_map=device.lower(), **model_kwargs
188+
model_id, trust_remote_code=True, device_map=device.lower(), **model_kwargs
189189
)
190190
except Exception:
191191
model = AutoModelForCausalLM.from_pretrained(

tools/who_what_benchmark/whowhatbench/wwb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ def print_rag_results(evaluator):
838838
def main():
839839
args = parse_args()
840840
check_args(args)
841+
print("print ci")
841842

842843
version_str = f'openvino runtime version: {ov.get_version()}'
843844
if args.genai:

0 commit comments

Comments
 (0)