How to find suitable lrs with FastaiLRFinder when the optimizer has Multiple groups ?
See original GitHub issueoptimizer = optim.SGD([
{'params': model.conv.parameters(), 'lr': 1},
{'params': model.linear.parameters(), 'lr': 0.1},
], lr=3e-4, momentum=0.9)
Such as this, the optimizer has two different groups. Can anyone give an example?
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
How to use FastaiLRFinder with Ignite
This how-to guide demonstrates how we can leverage the FastaiLRFinder handler to find an optimal learning rate to train our model on.
Read more >Source code for ignite.handlers.lr_finder - PyTorch
[docs]class FastaiLRFinder: """Learning rate finder handler for supervised trainers. While attached, the handler increases the learning rate in between two ...
Read more >PyTorch using LR-Scheduler with param groups of different LR's
You are right, learning rate scheduler should update each group's learning rate one by one. After a bit of testing, it looks like, ......
Read more >Source code for monai.optimizers.lr_finder
See the License for the specific language governing permissions and # limitations ... raise ValueError( f"Loader has unsupported type: {type(data_loader)}.
Read more >ignite - bytemeta
gradient_accumulation_steps influences scale of the loss · How to find suitable lrs with FastaiLRFinder when the optimizer has Multiple groups ?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks a lot. It’s helpful.
@xiaoye-hhh thanks for question, you can check https://pytorch-ignite.ai/how-to-guides/04-fastai-lr-finder/#with-lr-finder and update it to multiple groups.
Our FastaiLRFinder can accept multiple groups but checks with a single lr range without respecting initial lr (e.g. 1.0, 0.1) in your case. So, it means that it will most probably suggest the same lr for both groups.