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
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-on-modified-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ jobs:

steps:
- name: Process meta.yaml file
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
echo "Processing ${{ matrix.file_info.file }} with run number ${{ matrix.file_info.num_run }}"

pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc test script ${{ matrix.file_info.uid}} --test_input_index=${{ matrix.file_info.num_run }} --docker_mlc_repo=${{ github.event.pull_request.head.repo.html_url }} --docker_mlc_repo_branch=${{ github.event.pull_request.head.ref }} --quiet
mlc pull repo "$REPO" --branch="$BRANCH"
mlc test script ${{ matrix.file_info.uid}} --test_input_index=${{ matrix.file_info.num_run }} --docker_mlc_repo="$REPO" --docker_mlc_repo_branch="$BRANCH" --quiet
24 changes: 20 additions & 4 deletions .github/workflows/test-mlc-script-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ jobs:
run: |
git config --system core.longpaths true
- name: Pull MLOps repository
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc pull repo "$REPO" --branch="$BRANCH"

- name: Test Python venv
run: |
Expand Down Expand Up @@ -79,9 +83,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Pull MLOps repository
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc pull repo "$REPO" --branch="$BRANCH"

- name: Run docker container from dockerhub on linux
run: |
Expand Down Expand Up @@ -110,9 +118,13 @@ jobs:
run: |
git config --system core.longpaths true
- name: Pull MLOps repository
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc pull repo "$REPO" --branch="$BRANCH"

- name: Test mlc experiment script
run: |
Expand All @@ -133,9 +145,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Pull MLOps repository
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc pull repo "$REPO" --branch="$BRANCH"

- name: Run MLPerf Inference Retinanet with native and virtual Python
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-mlperf-automotive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
echo "RCLONE_CONFIG_MLC_COGNATA_SERVICE_ACCOUNT_CREDENTIALS=${{ steps.op-load-secrets.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_NUSCENES_SERVICE_ACCOUNT_CREDENTIALS=${{ steps.op-load-secrets.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}" >> $GITHUB_ENV
- name: Run MLPerf
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
pip install mlcflow
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc pull repo "$REPO" --branch="$BRANCH"
mlc test script app,mlperf,automotive
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ jobs:
pip install mlcflow
pip install tabulate
- name: Pull MLOps repository
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }}
mlc pull repo "$REPO" --branch="$BRANCH"
- name: Test MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
if: matrix.os == 'windows-latest'
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-mlperf-inference-resnet50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
pip install tabulate

- name: Pull MLOps repo
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-mlperf-inference-retinanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
pip install mlcflow
pip install tabulate
- name: Pull MLOps repo
shell: bash
env:
REPO: ${{ github.event.pull_request.head.repo.html_url }}
BRANCH: ${{ github.event.pull_request.head.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mlperf-inference-tvm-resnet50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: MLPerf Inference TVM ResNet50

on:
pull_request_target:
branches: [ "main", "dev" ]
branches: [ "main-off", "dev-off" ]
paths:
- '.github/workflows/test-mlperf-inference-tvm-resnet50.yml'
- '**'
Expand Down
21 changes: 10 additions & 11 deletions script/calibrate-model-for.qaic/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def postprocess(i):

output_layer_names_conf[1] = [
"TopK_570/:0",
"TopK_572/:0",
"TopK_574/:0",
"TopK_576/:0",
"TopK_578/:0"
]
"TopK_572/:0",
"TopK_574/:0",
"TopK_576/:0",
"TopK_578/:0"
]

if env.get('MLC_QAIC_MODEL_NAME', '') == "retinanet":
with open(profile_file_path, "r") as stream:
Expand All @@ -141,8 +141,7 @@ def postprocess(i):
docs = yaml.load_all(stream, yaml.FullLoader)
for doc in docs:


if isinstance(doc, if )
if isinstance(doc, list):
node_names = [k['NodeOutputName'] for k in doc]
oindex = None

Expand Down Expand Up @@ -206,13 +205,13 @@ def postprocess(i):
conf_scale, conf_offset = get_scale_offset(
output_min_val_conf, output_max_val_conf)
env['MLC_QAIC_MODEL_RETINANET_LOC_SCALE'] = loc_scale
env['MLC_QAIC_MODEL_RETINANET_LOC_OFFSET'] = loc_offset - 128 # to uint8 is done in NMS code
env['MLC_QAIC_MODEL_RETINANET_LOC_OFFSET'] = loc_offset - \
128 # to uint8 is done in NMS code
env['MLC_QAIC_MODEL_RETINANET_CONF_SCALE'] = conf_scale
env['MLC_QAIC_MODEL_RETINANET_CONF_OFFSET'] = conf_offset - 128 # to uint8 is done in NMS code
env['MLC_QAIC_MODEL_RETINANET_CONF_OFFSET'] = conf_offset - \
128 # to uint8 is done in NMS code

except yaml.YAMLError as exc:
return {'return': 1, 'error': exc}

return {'return': 0}


Loading