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

Canary Adapters tutorial #9670

Merged
merged 6 commits into from
Jul 16, 2024
Merged

Canary Adapters tutorial #9670

merged 6 commits into from
Jul 16, 2024

Conversation

titu1994
Copy link
Collaborator

What does this PR do ?

Adds a tutorial for Canary Adapters

Collection: [ASR]

Changelog

  • Add tutorial for canary adapters
  • Adds Neural Module support for preserving freeze and unfreeze partially

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

@github-actions github-actions bot added core Changes to NeMo Core ASR labels Jul 10, 2024
# See the License for the specific language governing permissions and
# limitations under the License.

import os

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'os' is not used.
# limitations under the License.

import os
import tempfile

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'tempfile' is not used.
@titu1994 titu1994 changed the title Canary prompting tutorial Canary Adapters tutorial Jul 10, 2024
Copy link
Collaborator

@pzelasko pzelasko left a comment

Choose a reason for hiding this comment

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

PR looks good, left one comment. Will share comments about the notebook separately.

self.eval()

def unfreeze(self) -> None:
def unfreeze(self, partial: bool = False) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Regarding the name partial: my understanding is that this is intended as only_adapters=False but you don't want to name it as such to maintain separation of concerns between adapter and freeze/unfreeze APIs. I think the current name is a bit confusing when read out of the context of this PR; maybe we could at least extend the doc to explain why/when you might want to use this option?

Signed-off-by: smajumdar <[email protected]>
Copy link
Collaborator

@pzelasko pzelasko left a comment

Choose a reason for hiding this comment

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

LGTM

@titu1994 titu1994 merged commit ca94e03 into main Jul 16, 2024
13 checks passed
@titu1994 titu1994 deleted the canary_prompting_tutorial branch July 16, 2024 19:03
nithinraok pushed a commit that referenced this pull request Jul 17, 2024
* Fix issue with prompt_defaults

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: titu1994 <[email protected]>

* Add tutorial and update repr of formatters

Signed-off-by: smajumdar <[email protected]>

* Update docs

Signed-off-by: smajumdar <[email protected]>

---------

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
@nithinraok nithinraok mentioned this pull request Jul 17, 2024
8 tasks
nithinraok added a commit that referenced this pull request Jul 18, 2024
@ko3n1g ko3n1g mentioned this pull request Jul 18, 2024
2 tasks
ertkonuk pushed a commit that referenced this pull request Jul 19, 2024
* Fix issue with prompt_defaults

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: titu1994 <[email protected]>

* Add tutorial and update repr of formatters

Signed-off-by: smajumdar <[email protected]>

* Update docs

Signed-off-by: smajumdar <[email protected]>

---------

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
Signed-off-by: Tugrul Konuk <[email protected]>
malay-nagda pushed a commit to malay-nagda/NeMo that referenced this pull request Jul 26, 2024
* Fix issue with prompt_defaults

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: titu1994 <[email protected]>

* Add tutorial and update repr of formatters

Signed-off-by: smajumdar <[email protected]>

* Update docs

Signed-off-by: smajumdar <[email protected]>

---------

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
Signed-off-by: Malay Nagda <[email protected]>
tonyjie pushed a commit to tonyjie/NeMo that referenced this pull request Aug 6, 2024
* Fix issue with prompt_defaults

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: titu1994 <[email protected]>

* Add tutorial and update repr of formatters

Signed-off-by: smajumdar <[email protected]>

* Update docs

Signed-off-by: smajumdar <[email protected]>

---------

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
Signed-off-by: tonyjie <[email protected]>
monica-sekoyan pushed a commit that referenced this pull request Oct 14, 2024
* Fix issue with prompt_defaults

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: titu1994 <[email protected]>

* Add tutorial and update repr of formatters

Signed-off-by: smajumdar <[email protected]>

* Update docs

Signed-off-by: smajumdar <[email protected]>

---------

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* Fix issue with prompt_defaults

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Add core level support for grad map tracking

Signed-off-by: smajumdar <[email protected]>

* Apply isort and black reformatting

Signed-off-by: titu1994 <[email protected]>

* Add tutorial and update repr of formatters

Signed-off-by: smajumdar <[email protected]>

* Update docs

Signed-off-by: smajumdar <[email protected]>

---------

Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASR common core Changes to NeMo Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants