Skip to content

Commit

Permalink
Release v2.8.0 of NNCF to master
Browse files Browse the repository at this point in the history
  • Loading branch information
KodiaqQ committed Jan 24, 2024
1 parent 8eb6b2c commit 72eb39c
Show file tree
Hide file tree
Showing 803 changed files with 159,596 additions and 113,791 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_schema_page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
pip install json-schema-for-humans
pip install .
python -c 'import jstyleson; from nncf.config import NNCFConfig; jstyleson.dump(NNCFConfig.schema(), open("./schema.json", "w"), indent=2)'
mkdir schema
mkdir -p schema
# In the current approach the line below will replace the schema/index.html generated by a
# phony schema/index.rst. We only need the phony schema/index.rst at the sphinx-build stage so that
# the sphinx can generate valid links in the TOC for the JSON schema across all pages.
generate-schema-doc --deprecated-from-description schema.json schema/index.html
- name: Upload result as artifact
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/model_hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Model Hub

on:
workflow_dispatch:

jobs:
torch:
runs-on: ubuntu-20.04-16-cores
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.8.10
- name: Install NNCF and test requirements
run: make install-models-hub-torch

- name: Run models-hub-torch test scope
run: make test-models-hub-torch
12 changes: 12 additions & 0 deletions .github/workflows/post_pr_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
coverage_artifact_name_in_pr: coverage_common
coverage_flags: COMMON
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
upload-coverage-onnx:
Expand All @@ -33,5 +34,16 @@ jobs:
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
coverage_artifact_name_in_pr: coverage_onnx
coverage_flags: ONNX
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
upload-coverage-openvino:
if: github.event.pull_request.merged == true
uses: ./.github/workflows/upload_coverage_for_develop.yml
with:
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
last_sha_in_pr: ${{ github.event.pull_request.head.sha }}
coverage_artifact_name_in_pr: coverage_openvino
coverage_flags: OPENVINO
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
29 changes: 28 additions & 1 deletion .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage_common
flags: COMMON
onnx:
runs-on: ubuntu-20.04
steps:
Expand All @@ -58,4 +59,30 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage_onnx

flags: ONNX
openvino:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-python@v3
with:
python-version: 3.8.10
- name: Install NNCF and test requirements
run: make install-openvino-test
- name: Run OV precommit test scope
run: make test-openvino
env:
NNCF_COVERAGE: 1
- name: Upload coverage report as artifact
uses: actions/upload-artifact@v3
with:
name: coverage_openvino
path: ./coverage.xml
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage_openvino
flags: OPENVINO
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -42,8 +42,8 @@ jobs:
python -m build -C--global-option=--release
# Disallow uploading dev packages
for file in dist; do
if [[$file == *"dev"* ]]; then
for file in dist/*; do
if [[ $file == *"dev"* ]]; then
exit 42
fi
done
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/upload_coverage_for_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
coverage_artifact_name_in_pr:
required: true
type: string
coverage_flags:
required: true
type: string
secrets:
CODECOV_TOKEN:
required: true
Expand All @@ -37,4 +40,4 @@ jobs:
# github.event.pull_request.merge_commit_sha is the fresh commit in the develop,
# provided that github.event.pull_request.merged == true
./codecov -f ./coverage.xml -t ${{ secrets.CODECOV_TOKEN }} -C ${{ inputs.merge_commit_sha }} -B develop -n "${{ inputs.coverage_artifact_name_in_pr }}"
./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 }}"
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ install-openvino-dev: install-openvino-test install-pre-commit
pip install -r examples/post_training_quantization/openvino/yolov8_quantize_with_accuracy_control/requirements.txt

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

test-install-openvino:
pytest tests/cross_fw/install -s \
Expand Down Expand Up @@ -114,8 +114,17 @@ install-torch-dev: install-torch-test install-pre-commit
pip install -r examples/post_training_quantization/torch/mobilenet_v2/requirements.txt
pip install -r examples/post_training_quantization/torch/ssd300_vgg16/requirements.txt

install-models-hub-torch:
pip install -U pip
pip install -e .
pip install -r tests/torch/models_hub_test/requirements.txt
# Install wheel to run pip with --no-build-isolation
pip install wheel
pip install --no-build-isolation -r tests/torch/models_hub_test/requirements_secondary.txt


test-torch:
pytest ${COVERAGE_ARGS} tests/torch -m "not weekly and not nightly" --junitxml ${JUNITXML_PATH} $(DATA_ARG)
pytest ${COVERAGE_ARGS} tests/torch -m "not weekly and not nightly and not models_hub" --junitxml ${JUNITXML_PATH} $(DATA_ARG)

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

test-models-hub-torch:
pytest tests/torch/models_hub_test --junitxml ${JUNITXML_PATH}

###############################################################################
# Common part
install-common-test:
Expand Down
Loading

0 comments on commit 72eb39c

Please sign in to comment.