mlcommons / mlcommons/cm4mlops
Adding profiling and performance analysis during benchmarking
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
We need to continue improving universal benchmarking and optimization capabilities in CM for different OS and hardware targets:
-
For compiled code (C/C++ ...) we improve the following CM scripts
- CM scripts:
- TBD
- support for gprof/oprofile/hardware counters
- universal support to pin threads (numactl)
- expose internal profiling info from ML frameworks and run-times if/when available (onnx, TFLite ...)
- Sample apps:
-
For Python:
- create CM script with a python package to collect various profiling info (memory utilization, etc) particularly to analyze ML/AI models (was asked by ABTF).
- Collect function-level profiling
-
Add support for universal performance analysis to CM experiment:
- Aggregate profiling from multiple runs and perform stat analysis (variation, min/max, phases, etc)
- Visualize experiments
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the compile-program, benchmark-program, benchmark-program-mlperf, and automation/experiment scripts, then compare the listed C/C++ sample apps with the Python profiling requirements. The issue is complete only when profiling collection, multi-run analysis, and experiment visualization are defined and implemented across the requested OS and hardware targets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp, python
- Domain
- devops, machine-learning, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100