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

LR multiplier for ESM2 finetuning layers #609

Merged
merged 3 commits into from
Jan 21, 2025
Merged

LR multiplier for ESM2 finetuning layers #609

merged 3 commits into from
Jan 21, 2025

Conversation

farhadrgh
Copy link
Collaborator

@farhadrgh farhadrgh commented Jan 16, 2025

Description

Allow different LR for specific layer/module and the rest of the model:

--lr-multiplier float to scale the --lr for the layer name provided with --scale-lr-layer

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor
  • Documentation update
  • Other (please describe):

CI Pipeline Configuration

Configure CI behavior by applying the relevant labels:

Note

By default, the notebooks validation tests are skipped unless explicitly enabled.

Usage

TODO: Add code snippet

Pre-submit Checklist

  • I have tested these changes locally
  • I have updated the documentation accordingly
  • I have added/updated tests as needed
  • All existing tests pass successfully

Signed-off-by: Farhad Ramezanghorbani <[email protected]>
@farhadrgh farhadrgh marked this pull request as ready for review January 16, 2025 00:56
@farhadrgh farhadrgh requested a review from pstjohn January 16, 2025 01:01
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.63%. Comparing base (7f9dd97) to head (d2c3ad3).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #609   +/-   ##
=======================================
  Coverage   86.62%   86.63%           
=======================================
  Files         116      116           
  Lines        6961     6966    +5     
=======================================
+ Hits         6030     6035    +5     
  Misses        931      931           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Farhad Ramezanghorbani <[email protected]>
@farhadrgh farhadrgh enabled auto-merge January 17, 2025 17:50
@farhadrgh farhadrgh added this pull request to the merge queue Jan 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jan 17, 2025
@farhadrgh farhadrgh added this pull request to the merge queue Jan 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 17, 2025
@farhadrgh farhadrgh added this pull request to the merge queue Jan 21, 2025
Merged via the queue into main with commit eb89056 Jan 21, 2025
14 checks passed
@farhadrgh farhadrgh deleted the farhadr/ft_lr branch January 21, 2025 22:17
polinabinder1 pushed a commit that referenced this pull request Jan 22, 2025
### Description
Allow different LR for specific layer/module and the rest of the model:

`--lr-multiplier` float to scale the `--lr` for the layer name provided
with `--scale-lr-layer`

### Type of changes
<!-- Mark the relevant option with an [x] -->

- [ ]  Bug fix (non-breaking change which fixes an issue)
- [x]  New feature (non-breaking change which adds functionality)
- [ ]  Refactor
- [x]  Documentation update
- [ ]  Other (please describe):

### CI Pipeline Configuration
Configure CI behavior by applying the relevant labels:

-
[SKIP_CI](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#skip_ci)
- Skip all continuous integration tests
-
[INCLUDE_NOTEBOOKS_TESTS](https://github.com/NVIDIA/bionemo-framework/blob/main/docs/docs/user-guide/contributing/contributing.md#include_notebooks_tests)
- Execute notebook validation tests in pytest

> [!NOTE]
> By default, the notebooks validation tests are skipped unless
explicitly enabled.

### Usage
<!--- How does a user interact with the changed code -->
```python
TODO: Add code snippet
```

### Pre-submit Checklist
<!--- Ensure all items are completed before submitting -->

 - [x] I have tested these changes locally
 - [x] I have updated the documentation accordingly
 - [x] I have added/updated tests as needed
 - [x] All existing tests pass successfully

---------

Signed-off-by: Farhad Ramezanghorbani <[email protected]>
Signed-off-by: Polina Binder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants