-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into benchmark_table_v5.0
- Loading branch information
Showing
34 changed files
with
456 additions
and
824 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test for MLPerf inference rgat submission generation using CM script automation | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master", "dev" ] | ||
paths: | ||
- graph/R-GAT/** | ||
- loadgen/** | ||
- tools/submission/** | ||
- .github/workflows/test-rgat.yml | ||
- '!**.md' | ||
|
||
env: | ||
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.11" ] | ||
backend: [ "pytorch" ] | ||
loadgen-flag: [ "" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install cm4mlops | ||
- name: Test R-GAT and end to end submission generation | ||
run: | | ||
cm run script --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --quiet --submitter="MLCommons" --category=datacenter --hw_name=default --model=rgat --implementation=reference --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=500 --adr.compiler.tags=gcc --adr.inference-src.tags=_branch.$PR_HEAD_REF,_repo.${{ github.event.pull_request.head.repo.html_url }} --adr.inference-src-loadgen.tags=_branch.$PR_HEAD_REF,_repo.${{ github.event.pull_request.head.repo.html_url }} --adr.inference-src-loadgen.version=custom --adr.loadgen.version=custom ${{ matrix.loadgen-flag }} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
hide: | ||
- toc | ||
--- | ||
|
||
# Graph Neural Network using R-GAT | ||
|
||
## Dataset | ||
|
||
The benchmark implementation run command will automatically download the validation and calibration datasets and do the necessary preprocessing. In case you want to download only the datasets, you can use the below commands. | ||
|
||
=== "Full Dataset" | ||
R-GAT validation run uses the IGBH dataset consisting of 547,306,935 nodes and 5,812,005,639 edges. | ||
|
||
### Get Full Dataset | ||
``` | ||
cm run script --tags=get,dataset,igbh,_full -j | ||
``` | ||
|
||
=== "Debug Dataset" | ||
R-GAT debug run uses the IGBH debug dataset(tiny). | ||
|
||
### Get Full Dataset | ||
``` | ||
cm run script --tags=get,dataset,igbh,_debug -j | ||
``` | ||
|
||
## Model | ||
The benchmark implementation run command will automatically download the required model and do the necessary conversions. In case you want to only download the official model, you can use the below commands. | ||
|
||
Get the Official MLPerf R-GAT Model | ||
|
||
=== "PyTorch" | ||
|
||
### PyTorch | ||
``` | ||
cm run script --tags=get,ml-model,rgat -j | ||
``` | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
hide: | ||
- toc | ||
--- | ||
|
||
|
||
# Graph Neural Network using R-GAT | ||
|
||
|
||
=== "MLCommons-Python" | ||
## MLPerf Reference Implementation in Python | ||
|
||
{{ mlperf_inference_implementation_readme (4, "rgat", "reference", devices = ["CPU", "CUDA"]) }} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# All memory requirements in GB | ||
resnet: | ||
reference: | ||
fp32: | ||
system_memory: 8 | ||
accelerator_memory: 4 | ||
disk_storage: 25 | ||
nvidia: | ||
int8: | ||
system_memory: 8 | ||
accelerator_memory: 4 | ||
disk_storage: 100 | ||
intel: | ||
int8: | ||
system_memory: 8 | ||
accelerator_memory: 0 | ||
disk_storage: 50 | ||
qualcomm: | ||
int8: | ||
system_memory: 8 | ||
accelerator_memory: 8 | ||
disk_storage: 50 | ||
retinanet: | ||
reference: | ||
fp32: | ||
system_memory: 8 | ||
accelerator_memory: 8 | ||
disk_storage: 200 | ||
nvidia: | ||
int8: | ||
system_memory: 8 | ||
accelerator_memory: 8 | ||
disk_storage: 200 | ||
intel: | ||
int8: | ||
system_memory: 8 | ||
accelerator_memory: 0 | ||
disk_storage: 200 | ||
qualcomm: | ||
int8: | ||
system_memory: 8 | ||
accelerator_memory: 8 | ||
disk_storage: 200 | ||
rgat: | ||
reference: | ||
fp32: | ||
system_memory: 768 | ||
accelerator_memory: 8 | ||
disk_storage: 2300 | ||
|
Oops, something went wrong.