Skip to content

Commit 72eb39c

Browse files
Release v2.8.0 of NNCF to master
1 parent 8eb6b2c commit 72eb39c

File tree

803 files changed

+159596
-113791
lines changed

Some content is hidden

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

803 files changed

+159596
-113791
lines changed

.github/workflows/build_schema_page.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
pip install json-schema-for-humans
1414
pip install .
1515
python -c 'import jstyleson; from nncf.config import NNCFConfig; jstyleson.dump(NNCFConfig.schema(), open("./schema.json", "w"), indent=2)'
16-
mkdir schema
16+
mkdir -p schema
17+
# In the current approach the line below will replace the schema/index.html generated by a
18+
# phony schema/index.rst. We only need the phony schema/index.rst at the sphinx-build stage so that
19+
# the sphinx can generate valid links in the TOC for the JSON schema across all pages.
1720
generate-schema-doc --deprecated-from-description schema.json schema/index.html
1821
1922
- name: Upload result as artifact

.github/workflows/model_hub.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Model Hub
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
torch:
8+
runs-on: ubuntu-20.04-16-cores
9+
defaults:
10+
run:
11+
shell: bash
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v3
15+
with:
16+
python-version: 3.8.10
17+
- name: Install NNCF and test requirements
18+
run: make install-models-hub-torch
19+
20+
- name: Run models-hub-torch test scope
21+
run: make test-models-hub-torch

.github/workflows/post_pr_merge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
2525
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
2626
coverage_artifact_name_in_pr: coverage_common
27+
coverage_flags: COMMON
2728
secrets:
2829
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2930
upload-coverage-onnx:
@@ -33,5 +34,16 @@ jobs:
3334
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
3435
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
3536
coverage_artifact_name_in_pr: coverage_onnx
37+
coverage_flags: ONNX
38+
secrets:
39+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40+
upload-coverage-openvino:
41+
if: github.event.pull_request.merged == true
42+
uses: ./.github/workflows/upload_coverage_for_develop.yml
43+
with:
44+
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
45+
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
46+
coverage_artifact_name_in_pr: coverage_openvino
47+
coverage_flags: OPENVINO
3648
secrets:
3749
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/precommit.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
token: ${{ secrets.CODECOV_TOKEN }}
3535
name: coverage_common
36+
flags: COMMON
3637
onnx:
3738
runs-on: ubuntu-20.04
3839
steps:
@@ -58,4 +59,30 @@ jobs:
5859
with:
5960
token: ${{ secrets.CODECOV_TOKEN }}
6061
name: coverage_onnx
61-
62+
flags: ONNX
63+
openvino:
64+
runs-on: ubuntu-20.04
65+
steps:
66+
- uses: actions/checkout@v3
67+
with:
68+
lfs: true
69+
- uses: actions/setup-python@v3
70+
with:
71+
python-version: 3.8.10
72+
- name: Install NNCF and test requirements
73+
run: make install-openvino-test
74+
- name: Run OV precommit test scope
75+
run: make test-openvino
76+
env:
77+
NNCF_COVERAGE: 1
78+
- name: Upload coverage report as artifact
79+
uses: actions/upload-artifact@v3
80+
with:
81+
name: coverage_openvino
82+
path: ./coverage.xml
83+
- name: Upload coverage report to codecov
84+
uses: codecov/codecov-action@v3
85+
with:
86+
token: ${{ secrets.CODECOV_TOKEN }}
87+
name: coverage_openvino
88+
flags: OPENVINO

.github/workflows/python-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
runs-on: ubuntu-20.04
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2929
- name: Set up Python
30-
uses: actions/setup-python@v2
30+
uses: actions/setup-python@v4
3131
with:
3232
python-version: '3.x'
3333
- name: Install dependencies
@@ -42,8 +42,8 @@ jobs:
4242
python -m build -C--global-option=--release
4343
4444
# Disallow uploading dev packages
45-
for file in dist; do
46-
if [[$file == *"dev"* ]]; then
45+
for file in dist/*; do
46+
if [[ $file == *"dev"* ]]; then
4747
exit 42
4848
fi
4949
done

.github/workflows/upload_coverage_for_develop.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
coverage_artifact_name_in_pr:
1313
required: true
1414
type: string
15+
coverage_flags:
16+
required: true
17+
type: string
1518
secrets:
1619
CODECOV_TOKEN:
1720
required: true
@@ -37,4 +40,4 @@ jobs:
3740
3841
# github.event.pull_request.merge_commit_sha is the fresh commit in the develop,
3942
# provided that github.event.pull_request.merged == true
40-
./codecov -f ./coverage.xml -t ${{ secrets.CODECOV_TOKEN }} -C ${{ inputs.merge_commit_sha }} -B develop -n "${{ inputs.coverage_artifact_name_in_pr }}"
43+
./codecov -f ./coverage.xml -t ${{ secrets.CODECOV_TOKEN }} -F ${{ inputs.coverage_flags }} -C ${{ inputs.merge_commit_sha }} -B develop -n "${{ inputs.coverage_artifact_name_in_pr }}"

Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ install-openvino-dev: install-openvino-test install-pre-commit
6464
pip install -r examples/post_training_quantization/openvino/yolov8_quantize_with_accuracy_control/requirements.txt
6565

6666
test-openvino:
67-
pytest ${COVERAGE_ARGS} tests/openvino $(DATA_ARG) --junitxml ${JUNITXML_PATH}
67+
ONEDNN_MAX_CPU_ISA=AVX2 pytest ${COVERAGE_ARGS} tests/openvino $(DATA_ARG) --junitxml ${JUNITXML_PATH}
6868

6969
test-install-openvino:
7070
pytest tests/cross_fw/install -s \
@@ -114,8 +114,17 @@ install-torch-dev: install-torch-test install-pre-commit
114114
pip install -r examples/post_training_quantization/torch/mobilenet_v2/requirements.txt
115115
pip install -r examples/post_training_quantization/torch/ssd300_vgg16/requirements.txt
116116

117+
install-models-hub-torch:
118+
pip install -U pip
119+
pip install -e .
120+
pip install -r tests/torch/models_hub_test/requirements.txt
121+
# Install wheel to run pip with --no-build-isolation
122+
pip install wheel
123+
pip install --no-build-isolation -r tests/torch/models_hub_test/requirements_secondary.txt
124+
125+
117126
test-torch:
118-
pytest ${COVERAGE_ARGS} tests/torch -m "not weekly and not nightly" --junitxml ${JUNITXML_PATH} $(DATA_ARG)
127+
pytest ${COVERAGE_ARGS} tests/torch -m "not weekly and not nightly and not models_hub" --junitxml ${JUNITXML_PATH} $(DATA_ARG)
119128

120129
test-torch-nightly:
121130
pytest ${COVERAGE_ARGS} tests/torch -m nightly --junitxml ${JUNITXML_PATH} $(DATA_ARG)
@@ -139,6 +148,9 @@ test-examples-torch:
139148
--backend torch \
140149
--junitxml ${JUNITXML_PATH}
141150

151+
test-models-hub-torch:
152+
pytest tests/torch/models_hub_test --junitxml ${JUNITXML_PATH}
153+
142154
###############################################################################
143155
# Common part
144156
install-common-test:

0 commit comments

Comments
 (0)