Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline Benchmark Quant APIs #1706

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Outline Benchmark Quant APIs #1706

wants to merge 3 commits into from

Conversation

jainapurva
Copy link
Contributor

@jainapurva jainapurva commented Feb 12, 2025

This is the first PR, in the benchmarking effort. It provides the outline to building microbenchmarking framework for quant api's in torchao.

The different inputs like quantization techniques, matrix sizes, compile, sparsity etc, will be given as input to the python script. The options are re-defined in the scipt for quantization techniques, and a developer can add new quant technique. The script will generate a csv with performance numbers, and that'll be used to plot charts and as an input to dashboard

Included in current PR:

  • Existing quant techniques
  • Inference on Toy linear model (single linear layer)
  • Compile option

Example:

Copy link

pytorch-bot bot commented Feb 12, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1706

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 5d03125 with merge base aa51486 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 12, 2025
@jainapurva jainapurva added topic: new feature Use this tag if this PR adds a new feature topic: for developers Use this tag if this PR is mainly developer facing labels Feb 12, 2025

def parse_quantization_arg(quantization_input: List[str]):
# Define regex patterns for quantization techniques
patterns = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be adding more patterns here, for all quant apis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: for developers Use this tag if this PR is mainly developer facing topic: new feature Use this tag if this PR adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants