Skip to content

Comments

Modelopt Refactor for SDXL Quantization#9279

Merged
suiyoubi merged 9 commits intomainfrom
aot/modelopt-refactor
Jun 17, 2024
Merged

Modelopt Refactor for SDXL Quantization#9279
suiyoubi merged 9 commits intomainfrom
aot/modelopt-refactor

Conversation

@suiyoubi
Copy link
Collaborator

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Collection: [Note which collection this PR will affect]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

@suiyoubi suiyoubi changed the title Modelopt Refactor Modelopt Refactor for SDXL Quantization May 22, 2024
@Edwardf0t1 Edwardf0t1 self-requested a review May 28, 2024 23:39
Copy link
Collaborator

@Edwardf0t1 Edwardf0t1 left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of the modelopt updates in NeMo. I think if you use VS Code it's easy to do a global search in the repo to catch all the instances such as ammo , ato, atq.

@suiyoubi suiyoubi requested a review from Edwardf0t1 May 29, 2024 13:53
@github-actions github-actions bot added core Changes to NeMo Core ASR NLP CI labels May 29, 2024
@suiyoubi suiyoubi force-pushed the aot/modelopt-refactor branch from 60c582f to 5c23a3d Compare May 29, 2024 14:00
@github-actions github-actions bot removed core Changes to NeMo Core ASR NLP CI labels May 29, 2024
Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>
Edwardf0t1
Edwardf0t1 previously approved these changes Jun 6, 2024
Copy link
Collaborator

@Edwardf0t1 Edwardf0t1 left a comment

Choose a reason for hiding this comment

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

@suiyoubi Left a few comments. LGTM in general.


try:
import ammo.torch.quantization as atq
import modelopt.torch.quantization as atq
Copy link
Collaborator

Choose a reason for hiding this comment

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

atq - > mtq


import ammo.torch.opt as ato
import ammo.torch.quantization as atq
import modelopt.torch.opt as ato
Copy link
Collaborator

Choose a reason for hiding this comment

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

ato -> mto

import ammo.torch.opt as ato
import ammo.torch.quantization as atq
import modelopt.torch.opt as ato
import modelopt.torch.quantization as atq
Copy link
Collaborator

Choose a reason for hiding this comment

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

atq -> mtq

@Edwardf0t1 Edwardf0t1 self-requested a review June 12, 2024 18:39
Copy link
Collaborator

@Edwardf0t1 Edwardf0t1 left a comment

Choose a reason for hiding this comment

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

Re-approve

@suiyoubi suiyoubi merged commit 10ff668 into main Jun 17, 2024
@suiyoubi suiyoubi deleted the aot/modelopt-refactor branch June 17, 2024 13:17
JesusPaz pushed a commit to JesusPaz/NeMo that referenced this pull request Jun 18, 2024
* modelopt refactor

* refactor all ammo occurrences to modelopt

* Apply isort and black reformatting

Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>

* rename atq->mtq ato->mto

---------

Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>
Co-authored-by: suiyoubi <suiyoubi@users.noreply.github.com>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* modelopt refactor

* refactor all ammo occurrences to modelopt

* Apply isort and black reformatting

Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>

* rename atq->mtq ato->mto

---------

Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>
Co-authored-by: suiyoubi <suiyoubi@users.noreply.github.com>
@ko3n1g ko3n1g mentioned this pull request Jul 18, 2024
2 tasks
XuesongYang pushed a commit to paarthneekhara/NeMo that referenced this pull request Jan 18, 2025
* modelopt refactor

* refactor all ammo occurrences to modelopt

* Apply isort and black reformatting

Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>

* rename atq->mtq ato->mto

---------

Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>
Co-authored-by: suiyoubi <suiyoubi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants