Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/compatibility_keras_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
description: 'TF version'
required: true
type: string
default: '2.12.*'
default: '2.14.*'

jobs:
run-tensorflow-tests:
Expand Down Expand Up @@ -44,6 +44,7 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/keras_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.save_version }}
python tests/compatibility_tests/keras_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.save_version }}
- name: Checkout to MCT Quantizers latest version
Expand All @@ -56,5 +57,6 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/keras_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.save_version }}
python tests/compatibility_tests/keras_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.save_version }}
14 changes: 3 additions & 11 deletions .github/workflows/compatibility_torch_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
description: 'Torch version'
required: true
type: string
default: '2.0.*'
default: '2.3.*'

jobs:
run-torch-tests:
Expand All @@ -29,21 +29,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
- name: Modify requirements for Torch 2.2
if: startsWith(inputs.torch_version, '2.2')
run: |
grep -v 'numpy' requirements.txt > temp_requirements.txt
echo "numpy<2" >> temp_requirements.txt
mv temp_requirements.txt requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install torch==${{ inputs.torch_version }} "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14"
- name: Revert requirements for Torch 2.2
if: startsWith(inputs.torch_version, '2.2')
run: |
git checkout .
- name: Checkout to MCT Quantizers requested tag for saving test models
run: |
git checkout tags/${{ inputs.save_version }}
Expand All @@ -54,6 +44,7 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/torch_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.save_version }}
python tests/compatibility_tests/torch_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.save_version }}
- name: Checkout to MCT Quantizers latest version
Expand All @@ -66,5 +57,6 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/torch_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.save_version }}
python tests/compatibility_tests/torch_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.save_version }}
4 changes: 3 additions & 1 deletion .github/workflows/forward_compatibility_keras_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
description: 'TF version'
required: true
type: string
default: '2.12.*'
default: '2.14.*'

jobs:
run-tensorflow-tests:
Expand All @@ -41,6 +41,7 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/keras_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.load_version }}
python tests/compatibility_tests/keras_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.load_version }}
- name: Checkout to MCT Quantizers requested tag for loading test models
Expand All @@ -53,5 +54,6 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/keras_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.load_version }}
python tests/compatibility_tests/keras_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.load_version }}
14 changes: 3 additions & 11 deletions .github/workflows/forward_compatibility_torch_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
description: 'Torch version'
required: true
type: string
default: '2.0.*'
default: '2.3.*'

jobs:
run-torch-tests:
Expand All @@ -29,28 +29,19 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}
- name: Modify requirements for Torch 2.2
if: startsWith(inputs.torch_version, '2.2')
run: |
grep -v 'numpy' requirements.txt > temp_requirements.txt
echo "numpy<2" >> temp_requirements.txt
mv temp_requirements.txt requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install torch==${{ inputs.torch_version }} "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14"
- name: Revert requirements for Torch 2.2
if: startsWith(inputs.torch_version, '2.2')
run: |
git checkout .
- name: Run save model tests with latest version
run: |
cd tests
echo "Current directory: $PWD"
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/torch_comp_tests/compatibility_weights_save_model_test_suite.py ${{ inputs.load_version }}
python tests/compatibility_tests/torch_comp_tests/compatibility_activation_save_model_test_suite.py ${{ inputs.load_version }}
- name: Checkout to MCT Quantizers requested tag for loading test models
Expand All @@ -63,5 +54,6 @@ jobs:
export PYTHONPATH="$PWD:${PYTHONPATH}"
echo "Updated PYTHONPATH: $PYTHONPATH"
cd ..
python -c "import mct_quantizers; print(mct_quantizers.__version__)"
python tests/compatibility_tests/torch_comp_tests/compatibility_weights_load_model_test_suite.py ${{ inputs.load_version }}
python tests/compatibility_tests/torch_comp_tests/compatibility_activation_load_model_test_suite.py ${{ inputs.load_version }}
18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_tf214_v13.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_tf214_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_tf215_v13.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_tf215_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_torch23_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_torch24_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_comp_test_torch25_v14.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Backward Compatibility Test - Pytorch 2.2 MCTQ v1.4.0
name: Run Backward Compatibility Test - Pytorch 2.6 MCTQ v1.5.2
on:
workflow_dispatch: # Allow manual triggers
schedule:
Expand All @@ -10,9 +10,9 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-comp-torch-2_2-v1_4:
run-comp-torch-2_6-v1_5_2:
uses: ./.github/workflows/compatibility_torch_tests.yml
with:
save_version: "v1.4.0"
python_version: "3.10"
torch_version: "2.2.*"
save_version: "v1.5.2"
python_version: "3.12"
torch_version: "2.6.*"
18 changes: 0 additions & 18 deletions .github/workflows/run_forward_comp_test_tf214_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_forward_comp_test_tf215_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_forward_comp_test_torch23_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_forward_comp_test_torch24_v14.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/run_forward_comp_test_torch25_v14.yml

This file was deleted.

Loading