OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA][PE FE][TF FE] Create separate GHA job for PyTorch layer tests and stick exact versions for all deps (#26856)
Roman Kazantsevd2a9873a5d55
diff --git a/.github/workflows/job_python_unit_tests.yml b/.github/workflows/job_python_unit_tests.ymlindex 81cc2f4c538..26ee7933d5f 100644--- a/.github/workflows/job_python_unit_tests.yml+++ b/.github/workflows/job_python_unit_tests.yml@@ -203,31 +203,6 @@ jobs:export LD_LIBRARY_PATH=${PIP_INSTALL_PATH}/openvino/libs:$LD_LIBRARY_PATHpython3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/py_frontend_tests --junitxml=${INSTALL_TEST_DIR}/TEST-test_py_fontend.xml- - name: PyTorch Layer Tests- if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196- run: python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/pytorch_tests -n logical -m precommit --junitxml=${INSTALL_TEST_DIR}/TEST-pytorch.xml- env:- TEST_DEVICE: CPU- TEST_PRECISION: FP32-- - name: PyTorch torch.export Layer Tests- if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287- run: |- python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/pytorch_tests -n logical -m precommit_torch_export --junitxml=${INSTALL_TEST_DIR}/TEST-pytorch.xml- env:- TEST_DEVICE: CPU- TEST_PRECISION: FP32- PYTORCH_TRACING_MODE: EXPORT-- - name: PyTorch torch.compile TORCHFX Layer Tests- if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.os != 'macOS' && runner.arch != 'ARM64' }} # Ticket: 126287- run: |- python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/pytorch_tests -m precommit_fx_backend --junitxml=${INSTALL_TEST_DIR}/TEST-pytorch.xml- env:- TEST_DEVICE: CPU- TEST_PRECISION: FP32- PYTORCH_TRACING_MODE: TORCHFX-- name: ONNX Layer Testsif: ${{ fromJSON(inputs.affected-components).ONNX_FE.test }}run: |@@ -237,13 +212,6 @@ jobs:env:TEST_DEVICE: CPUTEST_PRECISION: FP16-- - name: JAX Layer Tests - TF FE- if: ${{ fromJSON(inputs.affected-components).TF_FE.test && runner.arch != 'ARM64' && runner.os != 'macOS' }}- run: python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/jax_tests/ -m precommit --junitxml=${INSTALL_TEST_DIR}/TEST-jax.xml- env:- TEST_DEVICE: CPU- TEST_PRECISION: FP16- name: JAX Layer Tests - JAX FEif: ${{ fromJSON(inputs.affected-components).JAX_FE.test && runner.arch != 'ARM64' && runner.os != 'macOS' }}diff --git a/.github/workflows/job_pytorch_layer_tests.yml b/.github/workflows/job_pytorch_layer_tests.ymlnew file mode 100644index 00000000000..88b41f983f7--- /dev/null+++ b/.github/workflows/job_pytorch_layer_tests.yml@@ -0,0 +1,167 @@+name: PyTorch Layer Tests++on:+ workflow_call:+ inputs:+ runner:+ description: 'Machine on which the tests would run'+ type: string+ required: true+ shell:+ description: "shell to override the default shell settings in the runner's operating system."+ type: string+ required: true+ container:+ description: 'JSON to be converted to the value of the "container" configuration for the job'+ type: string+ required: false+ default: '{"image": null}'+ affected-components:+ description: 'Components that are affected by changes in the commit defined by the Smart CI Action'+ type: string+ required: true++permissions: read-all++env:+ PIP_CACHE_PATH: /mount/caches/pip/linux+ PYTHON_VERSION: '3.11'++jobs:+ PyTorch_Layer_Tests:+ name: PyTorch Layer Tests+ timeout-minutes: 30+ runs-on: ${{ inputs.runner }}+ container: ${{ fromJSON(inputs.container) }}+ defaults:+ run:+ shell: ${{ inputs.shell }}+ env:+ DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input+ OPENVINO_REPO: ${{ github.workspace }}/openvino+ INSTALL_DIR: ${{ github.workspace }}/install+ INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests+ LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests+ steps:+ - name: Download OpenVINO package+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8+ with:+ name: openvino_package+ path: ${{ env.INSTALL_DIR }}++ - name: Download OpenVINO tests package+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8+ with:+ name: openvino_tests+ path: ${{ env.INSTALL_TEST_DIR }}++ - name: Download OpenVINO tokenizers extension+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8+ with:+ name: openvino_tokenizers_wheel+ path: ${{ env.INSTALL_DIR }}++ # Needed as ${{ github.workspace }} is not working correctly when using Docker+ - name: Setup Variables+ if: runner.os != 'Windows'+ run: |+ echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"+ echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"+ echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"+ echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"++ - name: Extract OpenVINO packages (Linux, macOS)+ if: runner.os != 'Windows'+ run: |+ pushd $INSTALL_DIR+ tar -xzf openvino_package.tar.gz -C $INSTALL_DIR+ popd+ pushd $INSTALL_TEST_DIR+ tar -xzf openvino_tests.tar.gz -C $INSTALL_DIR+ popd++ - name: Extract OpenVINO packages (Windows)+ if: runner.os == 'Windows'+ run: |+ pushd ${{ env.INSTALL_DIR }}+ Expand-Archive openvino_package.zip -DestinationPath ${{ env.INSTALL_DIR }}+ popd+ pushd ${{ env.INSTALL_TEST_DIR }}+ Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}+ popd++ - name: Fetch setup_python action+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0+ with:+ sparse-checkout: |+ .github/actions/setup_python/action.yml+ sparse-checkout-cone-mode: false+ path: 'openvino'++ - name: Setup Python ${{ env.PYTHON_VERSION }}+ uses: ./openvino/.github/actions/setup_python+ with:+ version: ${{ env.PYTHON_VERSION }}+ pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH || '' }}+ should-setup-pip-paths: ${{ runner.os == 'Linux' }}+ self-hosted-runner: ${{ runner.os == 'Linux' }}++ - name: Install OpenVINO Python wheels (Linux and macOS)+ if: runner.os != 'Windows'+ run: |+ # Install the core OV wheel+ python3 -m pip install ${INSTALL_DIR}/tools/openvino-*.whl++ # Install the core OV Tokenizers wheel+ python3 -m pip install ${INSTALL_DIR}/openvino_tokenizers-*.whl++ - name: Install OpenVINO Python wheels (Windows)+ if: runner.os == 'Windows'+ run: |+ # Find and install the core OV wheel+ $ovCoreWheelPath=Get-ChildItem -Path ${{ env.INSTALL_DIR }}\tools -Filter openvino-*.whl | % { $_.FullName }+ python3 -m pip install "$ovCoreWheelPath"++ # Find and install the core OV Tokenizers wheel+ $ovCoreWheelPath=Get-ChildItem -Path ${{ env.INSTALL_DIR }} -Filter openvino_tokenizers-*.whl | % { $_.FullName }+ python3 -m pip install "$ovCoreWheelPath"++ - name: Install Pytorch Layer tests dependencies+ run: |+ # pytorch test requirements+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_pytorch++ - name: PyTorch Layer Tests+ if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196+ run: python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/pytorch_tests -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-pytorch.xml+ env:+ TEST_DEVICE: CPU+ TEST_PRECISION: FP32++ - name: PyTorch torch.export Layer Tests+ if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287+ run: |+ python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/pytorch_tests -n logical -m precommit_torch_export --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-pytorch.xml+ env:+ TEST_DEVICE: CPU+ TEST_PRECISION: FP32+ PYTORCH_TRACING_MODE: EXPORT++ - name: PyTorch torch.compile TORCHFX Layer Tests+ if: ${{ fromJSON(inputs.affected-components).PyTorch_FE.test && runner.os != 'macOS' && runner.arch != 'ARM64' }} # Ticket: 126287+ run: |+ python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/pytorch_tests -m precommit_fx_backend --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-pytorch.xml+ env:+ TEST_DEVICE: CPU+ TEST_PRECISION: FP32+ PYTORCH_TRACING_MODE: TORCHFX++ - name: Upload Test Results+ uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0+ if: ${{ !cancelled() }}+ with:+ name: test-results-python-pytorch-layers+ path: |+ ${{ env.INSTALL_TEST_DIR }}/TEST*.html+ ${{ env.INSTALL_TEST_DIR }}/TEST*.xml+ if-no-files-found: 'warn'diff --git a/.github/workflows/job_pytorch_models_tests.yml b/.github/workflows/job_pytorch_models_tests.ymlindex 8b26d1c6ecc..6164bdb29c7 100644--- a/.github/workflows/job_pytorch_models_tests.yml+++ b/.github/workflows/job_pytorch_models_tests.yml@@ -109,24 +109,13 @@ jobs:- name: Install OpenVINO Python wheelsrun: |# To enable pytest parallel features- python3 -m pip install pytest-xdist[psutil]python3 -m pip install ${INSTALL_DIR}/tools/openvino-*python3 -m pip install ${INSTALL_DIR}/openvino_tokenizers-*- name: Install PyTorch tests requirements for precommitif: ${{ inputs.model_scope == 'precommit' }}run: |- python3 -m pip install -r ${MODEL_HUB_TESTS_INSTALL_DIR}/pytorch/requirements.txt- env:- CPLUS_INCLUDE_PATH: ${{ env.Python_ROOT_DIR }}/include/python${{ env.PYTHON_VERSION }}-- - name: Install PyTorch tests requirements for nightly- if: ${{ inputs.model_scope != 'precommit' }}- run: |- python3 -m pip install -r ${MODEL_HUB_TESTS_INSTALL_DIR}/pytorch/requirements.txt- python3 -m pip install -r ${MODEL_HUB_TESTS_INSTALL_DIR}/pytorch/requirements_secondary.txt- echo "Available storage:"- df -h+ python3 -m pip install -r ${INSTALL_TEST_DIR}/requirements_pytorchenv:CPLUS_INCLUDE_PATH: ${{ env.Python_ROOT_DIR }}/include/python${{ env.PYTHON_VERSION }}diff --git a/.github/workflows/job_tensorflow_layer_tests.yml b/.github/workflows/job_tensorflow_layer_tests.ymlindex 4cf82dcce61..0801010b86b 100644--- a/.github/workflows/job_tensorflow_layer_tests.yml+++ b/.github/workflows/job_tensorflow_layer_tests.yml@@ -106,10 +106,6 @@ jobs:should-setup-pip-paths: ${{ runner.os == 'Linux' }}self-hosted-runner: ${{ runner.os == 'Linux' }}- #- # Tests- #-- name: Install OpenVINO Python wheels (Linux and macOS)if: runner.os != 'Windows'run: |@@ -132,14 +128,8 @@ jobs:- name: Install Python Layer tests dependenciesrun: |- # To enable pytest parallel features- python3 -m pip install pytest-xdist[psutil]- # layer test requirements- python3 -m pip install -r ${{ env.LAYER_TESTS_INSTALL_DIR }}/requirements.txt-- #- # Tests- #+ # tensorflow test requirements+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_tensorflow- name: TensorFlow 1 Layer Tests - TF FEif: fromJSON(inputs.affected-components).TF_FE.test@@ -157,6 +147,14 @@ jobs:TEST_DEVICE: CPUTEST_PRECISION: FP16+ - name: JAX Layer Tests - TF FE+ # JAX single layer models converted via TF FE+ if: ${{ fromJSON(inputs.affected-components).TF_FE.test && runner.arch != 'ARM64' && runner.os != 'macOS' }}+ run: python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/jax_tests/ -n logical -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-jax.xml+ env:+ TEST_DEVICE: CPU+ TEST_PRECISION: FP16+- name: Upload Test Resultsuses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0if: ${{ !cancelled() }}diff --git a/.github/workflows/job_tensorflow_models_tests.yml b/.github/workflows/job_tensorflow_models_tests.ymlindex bad1be6de41..e9f6f130e0c 100644--- a/.github/workflows/job_tensorflow_models_tests.yml+++ b/.github/workflows/job_tensorflow_models_tests.yml@@ -97,7 +97,7 @@ jobs:python3 -m pip install ${INSTALL_DIR}/openvino_tokenizers-*- name: Install TF Models tests requirements- run: python3 -m pip install -r ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/requirements.txt+ run: python3 -m pip install -r ${INSTALL_TEST_DIR}/requirements_tensorflow- name: TensorFlow Models Tests - TF FErun: |diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.ymlindex 9a52bf29446..3506ca49846 100644--- a/.github/workflows/linux_arm64.yml+++ b/.github/workflows/linux_arm64.yml@@ -177,6 +177,16 @@ jobs:container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'affected-components: ${{ needs.smart_ci.outputs.affected_components }}+ Pytorch_Layer_Tests:+ name: Pytorch Layer Tests+ needs: [ Build, Docker, Smart_CI, Openvino_tokenizers ]+ uses: ./.github/workflows/job_pytorch_layer_tests.yml+ with:+ runner: 'aks-linux-16-cores-arm'+ shell: bash+ container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+CPU_Functional_Tests:name: CPU functional testsif: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test@@ -212,7 +222,7 @@ jobs:Overall_Status:name: ci/gha_overall_status_linux_arm64needs: [Smart_CI, Build, Debian_Packages, Samples, ONNX_Runtime, CXX_Unit_Tests, Python_Unit_Tests, CPU_Functional_Tests,- TensorFlow_Models_Tests, PyTorch_Models_Tests, Openvino_tokenizers, TensorFlow_Layer_Tests]+ TensorFlow_Models_Tests, PyTorch_Models_Tests, Openvino_tokenizers, TensorFlow_Layer_Tests, Pytorch_Layer_Tests]if: ${{ always() }}runs-on: ubuntu-lateststeps:diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.ymlindex 0846165711f..da3224fa483 100644--- a/.github/workflows/mac.yml+++ b/.github/workflows/mac.yml@@ -279,6 +279,15 @@ jobs:shell: bashaffected-components: ${{ needs.smart_ci.outputs.affected_components }}+ Pytorch_Layer_Tests:+ name: Pytorch Layer Tests+ needs: [ Build, Smart_CI, Openvino_tokenizers ]+ uses: ./.github/workflows/job_pytorch_layer_tests.yml+ with:+ runner: 'macos-13'+ shell: bash+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+CPU_Functional_Tests:name: CPU functional tests# if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.testdiff --git a/.github/workflows/mac_arm64.yml b/.github/workflows/mac_arm64.ymlindex abec86659c9..331afc7266c 100644--- a/.github/workflows/mac_arm64.yml+++ b/.github/workflows/mac_arm64.yml@@ -278,6 +278,15 @@ jobs:shell: bashaffected-components: ${{ needs.smart_ci.outputs.affected_components }}+ Pytorch_Layer_Tests:+ name: Pytorch Layer Tests+ needs: [ Build, Smart_CI, Openvino_tokenizers ]+ uses: ./.github/workflows/job_pytorch_layer_tests.yml+ with:+ runner: 'macos-13-xlarge'+ shell: bash+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+CPU_Functional_Tests:name: CPU functional testsif: fromJSON(needs.smart_ci.outputs.affected_components).CPU.testdiff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.ymlindex ad53b5e0892..8f461391f20 100644--- a/.github/workflows/ubuntu_22.yml+++ b/.github/workflows/ubuntu_22.yml@@ -309,6 +309,16 @@ jobs:container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'affected-components: ${{ needs.smart_ci.outputs.affected_components }}+ Pytorch_Layer_Tests:+ name: Pytorch Layer Tests+ needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]+ uses: ./.github/workflows/job_pytorch_layer_tests.yml+ with:+ runner: 'aks-linux-4-cores-16gb'+ shell: bash+ container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+CPU_Functional_Tests:name: CPU functional testsif: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test@@ -519,7 +529,7 @@ jobs:Overall_Status:name: ci/gha_overall_status- needs: [Smart_CI, Build, Debian_Packages, Samples, Conformance, ONNX_Runtime, CXX_Unit_Tests, Python_Unit_Tests, TensorFlow_Layer_Tests,+ needs: [Smart_CI, Build, Debian_Packages, Samples, Conformance, ONNX_Runtime, CXX_Unit_Tests, Python_Unit_Tests, TensorFlow_Layer_Tests, Pytorch_Layer_Tests,CPU_Functional_Tests, TensorFlow_Models_Tests_Precommit, PyTorch_Models_Tests, JAX_Models_Tests_Precommit, NVIDIA_Plugin, Openvino_tokenizers, iGPU]if: ${{ always() }}runs-on: ubuntu-latestdiff --git a/.github/workflows/windows_vs2019_release.yml b/.github/workflows/windows_vs2019_release.ymlindex 67c1841e240..39cf2161525 100644--- a/.github/workflows/windows_vs2019_release.yml+++ b/.github/workflows/windows_vs2019_release.yml@@ -323,16 +323,6 @@ jobs:# layer test requirementspython3 -m pip install -r ${{ env.LAYER_TESTS_INSTALL_DIR }}/requirements.txt- - name: PyTorch Layer Tests- if: fromJSON(needs.smart_ci.outputs.affected_components).PyTorch_FE.test- shell: cmd- run: |- # parallelizing with xdict leads to segfaults- python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/pytorch_tests -m precommit --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-pytorch.xml- env:- TEST_DEVICE: CPU- TEST_PRECISION: FP32-- name: ONNX Layer Testsif: fromJSON(needs.smart_ci.outputs.affected_components).ONNX_FE.testshell: cmd@@ -417,6 +407,15 @@ jobs:shell: pwshaffected-components: ${{ needs.smart_ci.outputs.affected_components }}+ Pytorch_Layer_Tests:+ name: Pytorch Layer Tests+ needs: [ Build, Smart_CI, Openvino_tokenizers ]+ uses: ./.github/workflows/job_pytorch_layer_tests.yml+ with:+ runner: 'aks-win-8-cores-16gb'+ shell: pwsh+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+CXX_Unit_Tests:name: C++ unit testsneeds: [ Build, Smart_CI ]@@ -519,7 +518,7 @@ jobs:Overall_Status:name: ci/gha_overall_status_windows- needs: [ Smart_CI, Build, Samples, CXX_Unit_Tests, Python_Unit_Tests, CPU_Functional_Tests, Openvino_tokenizers, TensorFlow_Layer_Tests ]+ needs: [ Smart_CI, Build, Samples, CXX_Unit_Tests, Python_Unit_Tests, CPU_Functional_Tests, Openvino_tokenizers, TensorFlow_Layer_Tests, Pytorch_Layer_Tests ]if: ${{ always() }}runs-on: ubuntu-lateststeps:diff --git a/src/frontends/tensorflow/tests/requirements.txt b/src/frontends/tensorflow/tests/requirements.txtindex acd2541a9c5..a204f133543 100644--- a/src/frontends/tensorflow/tests/requirements.txt+++ b/src/frontends/tensorflow/tests/requirements.txt@@ -1,4 +1,4 @@-c ../../../bindings/python/constraints.txtnumpyh5py-tensorflow\ No newline at end of file+tensorflowdiff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txtindex ef070b1b058..e4b5fcd5d10 100644--- a/tests/CMakeLists.txt+++ b/tests/CMakeLists.txt@@ -6,3 +6,6 @@ add_subdirectory(layer_tests)add_subdirectory(model_hub_tests)add_subdirectory(samples_tests)add_subdirectory(e2e_tests)++install(FILES requirements_pytorch DESTINATION tests COMPONENT tests EXCLUDE_FROM_ALL)+install(FILES requirements_tensorflow DESTINATION tests COMPONENT tests EXCLUDE_FROM_ALL)diff --git a/tests/requirements_pytorch b/tests/requirements_pytorchnew file mode 100644index 00000000000..b82e0c76409--- /dev/null+++ b/tests/requirements_pytorch@@ -0,0 +1,50 @@+# optimum still requires numpy<2.0.0+numpy==1.26.4+torch==2.4.1; platform_system != "Darwin" or platform_machine != "x86_64"+torch==2.2.0; platform_system == "Darwin" and platform_machine == "x86_64"+--extra-index-url https://download.pytorch.org/whl/cpu++torchvision==0.19.1+# transformers 4.45.1 is available+# but optimum still requires <4.45.0+transformers==4.44.2+pytest==7.0.1+pytest-html==4.1.1+pytest-xdist[psutil]==3.6.1+defusedxml==0.7.1++auto-gptq==0.7.1; platform_system == "Linux" and platform_machine == "x86_64"+av==13.0.0+basicsr==1.4.2+datasets==3.0.1+easyocr==1.7.2+facexlib==0.3.0+librosa==0.10.2+optimum==1.22.0+packaging==24.1+pandas==2.2.3+protobuf==5.28.2+pyctcdecode==0.5.0+sacremoses==0.1.1+sentencepiece==0.2.0+soundfile==0.12.1+super-image==0.1.7+timm==1.0.8+torchaudio==2.4.1+wheel==0.44.0+PyYAML==6.0.2+kornia==0.7.3++# use latest released version once it's available+git+https://github.com/huggingface/optimum-intel.git@main+# set 'export HF_HUB_ENABLE_HF_TRANSFER=1' to benefits from hf_transfer+hf_transfer==0.1.8++# requirements for specific models+# - hf-tiny-model-private/tiny-random-RoFormerForCausalLM+rjieba==0.1.11++# - katuni4ka/tiny-random-qwen+# - katuni4ka/tiny-random-internlm2+transformers_stream_generator==0.0.5+einops==0.8.0diff --git a/tests/requirements_tensorflow b/tests/requirements_tensorflownew file mode 100644index 00000000000..9d025397ed1--- /dev/null+++ b/tests/requirements_tensorflow@@ -0,0 +1,12 @@+# tensorflow-intel inside tensorflow still requires numpy<2.0.0+numpy==1.26.4+pytest==7.0.1+pytest-xdist[psutil]==3.6.1+pytest-html==4.1.1+transformers==4.45.1+tensorflow==2.17.0+# tensorflow-text is not available for both Windows and ARM platforms+tensorflow-text==2.17.0; platform_system == "Linux" and platform_machine == "x86_64"+tensorflow-hub==0.16.1+jax==0.4.33+defusedxml==0.7.1