-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Canary Adapters tutorial #9670
Conversation
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: smajumdar <[email protected]>
Signed-off-by: titu1994 <[email protected]>
# 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
# limitations under the License. | ||
|
||
import os | ||
import tempfile |
Check notice
Code scanning / CodeQL
Unused import Note test
There was a problem hiding this 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: |
There was a problem hiding this comment.
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]>
Signed-off-by: smajumdar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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]>
* 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]>
* 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]>
* 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]>
* 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]>
* 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]>
What does this PR do ?
Adds a tutorial for Canary Adapters
Collection: [ASR]
Changelog
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:
PR Type: