Skip to content

Commit 66f63a4

Browse files
Release v2.14.0 of NNCF to master
1 parent e0939f6 commit 66f63a4

File tree

521 files changed

+133740
-58668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

521 files changed

+133740
-58668
lines changed

.github/workflows/api_set_label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ jobs:
5757
issue_number: ${{ steps.status.outputs.pr_number }},
5858
owner: context.repo.owner,
5959
repo: context.repo.repo,
60-
labels: "API"
60+
name: "API"
6161
})

.github/workflows/build_html_doc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1616
with:
1717
ref: ${{ inputs.ref }}
18+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
19+
with:
20+
python-version: 3.10.14
21+
cache: pip
1822
- name: Install NNCF and doc requirements
1923
run: |
2024
pip install .

.github/workflows/build_schema_page.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1313

14+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
15+
with:
16+
python-version: 3.10.14
17+
cache: pip
18+
1419
- name: Install and Build
1520
run: |
1621
pip install json-schema-for-humans

.github/workflows/examples.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Test examples
2+
permissions: read-all
3+
4+
on:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
workflow_dispatch:
8+
inputs:
9+
pull_request_number:
10+
description: 'The pull request number'
11+
default: ''
12+
pytest_args:
13+
description: 'Pytest arguments'
14+
default: ''
15+
16+
jobs:
17+
examples-cpu:
18+
name: Test exmaples CPU [${{ matrix.group }}/4]
19+
runs-on: ubuntu-22.04-16-cores
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
group: [1, 2, 3, 4]
24+
defaults:
25+
run:
26+
shell: bash
27+
steps:
28+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
29+
with:
30+
lfs: true
31+
fetch-depth: 0 # Fetch full history to allow checking out any branch or PR
32+
- name: Fetch and Checkout the Pull Request Branch
33+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.pull_request_number != '' }}
34+
run: |
35+
git fetch origin pull/${{ github.event.inputs.pull_request_number }}/head:pr-${{ github.event.inputs.pull_request_number }}
36+
git checkout pr-${{ github.event.inputs.pull_request_number }}
37+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
38+
with:
39+
python-version: 3.10.14
40+
cache: pip
41+
- name: cpuinfo
42+
run: cat /proc/cpuinfo
43+
- name: Install NNCF and test requirements
44+
run: |
45+
pip install -e .
46+
pip install -r tests/cross_fw/examples/requirements.txt
47+
- name: Print installed modules
48+
run: pip list
49+
- name: Run examples test scope
50+
run: |
51+
python -m pytest -ras tests/cross_fw/examples \
52+
--junit-xml=pytest-results-${{ matrix.group }}.xml \
53+
--durations-path=tests/cross_fw/examples/.test_durations \
54+
--splitting-algorithm=least_duration \
55+
--splits 4 \
56+
--group ${{ matrix.group }} \
57+
${{ github.event.inputs.pytest_args || '' }}
58+
env:
59+
TQDM_DISABLE: 1
60+
- name: Upload artifact
61+
uses: actions/upload-artifact@v4
62+
if: ${{ !cancelled() }}
63+
with:
64+
name: pytest-results-${{ matrix.group }}
65+
path: pytest-results-${{ matrix.group }}.xml
66+
overwrite: True

.github/workflows/model_hub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1515
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
1616
with:
17-
python-version: 3.8.18
17+
python-version: 3.10.14
1818
- name: Install NNCF and test requirements
1919
run: make install-models-hub-torch
2020

.github/workflows/mypy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1616
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
1717
with:
18-
python-version: 3.8.18
18+
python-version: 3.10.14
1919
- name: Install NNCF
20-
run: pip install -e .
20+
run: |
21+
pip install -e .
22+
pip install torch -c constraints.txt
2123
- name: Install mypy
2224
run: pip install mypy==1.8.0
2325
- name: Run mypy
24-
run: mypy --install-types --config-file=.mypy.ini --non-interactive
26+
run: mypy --install-types --non-interactive

.github/workflows/nightly.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1414
- uses: AlexanderDokuchaev/md-dead-link-check@cc3ed55268899a1a6d5fd7068abbc4591eab1f74 # v0.9
15-
with:
16-
config: md_dead_link_check.toml
15+

.github/workflows/post_pr_merge.yml

Lines changed: 0 additions & 83 deletions
This file was deleted.

.github/workflows/pre-commit-linters.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1616
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
1717
with:
18-
python-version: 3.8.18
18+
python-version: 3.10.14
1919
- name: Install pre-commit package
2020
run: make install-pre-commit
2121
- name: Run pre-commit linter suite
@@ -25,5 +25,4 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
2727
- uses: AlexanderDokuchaev/md-dead-link-check@cc3ed55268899a1a6d5fd7068abbc4591eab1f74 # v0.9
28-
with:
29-
config: md_dead_link_check.toml
28+

0 commit comments

Comments
 (0)