Skip to content

Files

Latest commit

b04832e · Apr 12, 2023

History

History
This branch is 3555 commits behind mlcommons/ck:master.

app-mlperf-inference-nvidia

Click here to see the table of contents.

Note that this README is automatically generated - don't edit! See more info.

Description

See more info.

Information

  • Category: Modular MLPerf benchmarks.
  • CM GitHub repository: mlcommons@ck
  • GitHub directory for this script: GitHub
  • CM meta description for this script: _cm.yaml
  • CM "database" tags to find this script: app,mlcommons,mlperf,inference,nvidia-harness,nvidia
  • Output cached?: False

Usage

CM installation

Guide

CM pull repository

cm pull repo mlcommons@ck

CM script automation help

cm run script --help

CM CLI

  1. cm run script --tags=app,mlcommons,mlperf,inference,nvidia-harness,nvidia[,variations] [--input_flags]

  2. cm run script "app mlcommons mlperf inference nvidia-harness nvidia[,variations]" [--input_flags]

  3. cm run script 689e865b0059479b [--input_flags]

  • variations can be seen here

  • input_flags can be seen here

CM Python API

Click here to expand this section.
import cmind

r = cmind.access({'action':'run'
                  'automation':'script',
                  'tags':'app,mlcommons,mlperf,inference,nvidia-harness,nvidia'
                  'out':'con',
                  ...
                  (other input keys for this script)
                  ...
                 })

if r['return']>0:
    print (r['error'])

CM GUI

cm run script --tags=gui --script="app,mlcommons,mlperf,inference,nvidia-harness,nvidia"

Use this online GUI to generate CM CMD.

CM modular Docker container

TBD


Customization

Variations

  • No group (any variation can be selected)

    Click here to expand this section.
    • _batch_size.#
      • Environment variables:
        • CM_MODEL_BATCH_SIZE: None
      • Workflow:
    • _cuda
      • Environment variables:
        • CM_MLPERF_DEVICE: gpu
        • CM_MLPERF_DEVICE_LIB_NAMESPEC: cudart
      • Workflow:
  • Group "device"

    Click here to expand this section.
    • _cpu (default)
      • Environment variables:
        • CM_MLPERF_DEVICE: cpu
      • Workflow:
  • Group "framework"

    Click here to expand this section.
    • _pytorch
      • Environment variables:
        • CM_MLPERF_BACKEND: pytorch
      • Workflow:
  • Group "model"

    Click here to expand this section.
    • _resnet50 (default)
      • Environment variables:
        • CM_MODEL: resnet50
      • Workflow:
    • _retinanet
      • Environment variables:
        • CM_MODEL: retinanet
      • Workflow:

Default variations

_cpu,_resnet50

Script flags mapped to environment

Click here to expand this section.
  • --count=valueCM_MLPERF_LOADGEN_QUERY_COUNT=value
  • --max_batchsize=valueCM_MLPERF_LOADGEN_MAX_BATCHSIZE=value
  • --mlperf_conf=valueCM_MLPERF_CONF=value
  • --mode=valueCM_MLPERF_LOADGEN_MODE=value
  • --output_dir=valueCM_MLPERF_OUTPUT_DIR=value
  • --performance_sample_count=valueCM_MLPERF_LOADGEN_PERFORMANCE_SAMPLE_COUNT=value
  • --scenario=valueCM_MLPERF_LOADGEN_SCENARIO=value
  • --user_conf=valueCM_MLPERF_USER_CONF=value

Above CLI flags can be used in the Python CM API as follows:

r=cm.access({... , "count":...}

Default environment

Click here to expand this section.

These keys can be updated via --env.KEY=VALUE or env dictionary in @input.json or using script flags.

  • CM_BATCH_COUNT: 1
  • CM_BATCH_SIZE: 1
  • CM_FAST_COMPILATION: yes
  • CM_MLPERF_LOADGEN_SCENARIO: Offline

Script workflow, dependencies and native scripts

Click here to expand this section.
  1. Read "deps" on other CM scripts from meta
  2. Run "preprocess" function from customize.py
  3. Read "prehook_deps" on other CM scripts from meta
  4. Run native script if exists
  5. Read "posthook_deps" on other CM scripts from meta
  6. Run "postrocess" function from customize.py
  7. Read "post_deps" on other CM scripts from meta
    • compile,cpp-program
      • CM names: --adr.['compile-program']...
    • benchmark,program
      • CM names: --adr.['runner']...

Script output

New environment keys (filter)

  • CM_DATASET_*
  • CM_HW_NAME
  • CM_MLPERF_*

New environment keys auto-detected from customize

  • CM_MLPERF_CONF
  • CM_MLPERF_USER_CONF

Maintainers