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 }}
16 changes: 4 additions & 12 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 onnxruntime "onnxruntime-extensions<0.14"
- name: Revert requirements for Torch 2.2
if: startsWith(inputs.torch_version, '2.2')
run: |
git checkout .
pip install torch==${{ inputs.torch_version }} "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14"
- 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 }}
16 changes: 4 additions & 12 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 onnxruntime "onnxruntime-extensions<0.14"
- name: Revert requirements for Torch 2.2
if: startsWith(inputs.torch_version, '2.2')
run: |
git checkout .
pip install torch==${{ inputs.torch_version }} "onnx<1.18" "onnxruntime<1.22" "onnxruntime-extensions<0.14"
- 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 }}
33 changes: 0 additions & 33 deletions .github/workflows/nightly.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/run_comp_test_tf214_v13.yml

This file was deleted.

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

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/run_comp_test_tf214_v152.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-comp-tensorflow-2_14-v1_5_2:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/run_comp_test_tf215_v13.yml

This file was deleted.

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

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/run_comp_test_tf215_v152.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-comp-tensorflow-2_15-v1_5_2:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/run_comp_test_torch22_v14.yml

This file was deleted.

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

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/run_comp_test_torch23_v152.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-comp-torch-2_3-v1_5_2:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/run_comp_test_torch24_v14.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/run_comp_test_torch24_v152.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-comp-torch-2_4-v1_5_2:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/run_comp_test_torch25_v14.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/run_comp_test_torch25_v152.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-comp-torch-2_5-v1_5_2:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/run_comp_test_torch26_v152.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run Backward Compatibility Test - Pytorch 2.6 MCTQ v1.5.2
on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

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

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/run_forward_comp_test_tf214_v152.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
run-forward-comp-tensorflow-2_14-v1_5_2:
Expand Down
Loading