[OpenVINO] Add model inference check to weight-only and pipeline quantization testing #6455
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PR documentation | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
UV_SYSTEM_PYTHON: 1 | |
UV_TORCH_BACKEND: auto | |
jobs: | |
build_documentation: | |
runs-on: ubuntu-22.04 | |
env: | |
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
PR_NUMBER: ${{ github.event.number }} | |
EVENT_CONTEXT: ${{ toJSON(github.event) }} | |
PR_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache-dependency-path: "kit/package-lock.json" | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Setup environment | |
run: | | |
pip install --upgrade pip uv | |
uv pip install git+https://github.com/huggingface/doc-builder | |
uv pip install .[quality] nncf openvino neural-compressor[pt]>3.4 diffusers accelerate | |
- name: Make documentation | |
shell: bash | |
run: | | |
make doc BUILD_DIR=./doc-build VERSION=pr_${{ env.PR_NUMBER }} | |
mv ./doc-build/optimum.intel optimum-intel | |
echo ${{ env.COMMIT_SHA }} > ./commit_sha | |
echo ${{ env.PR_NUMBER }} > ./pr_number | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: doc-build-artifact | |
path: optimum-intel |