Commit 8b73454
committed
feat: pass optimizer and effective_batch_size for dynamic weight noise scaling
Pass the raw optimizer object and effective batch size to
inject_weight_noise() so the network can resolve per-parameter-group
LR from optimizer.param_groups for accurate dynamic sigma scaling.
Usage: --network_args weight_noise_sigma=1e-3 weight_noise_dynamic_sigma=True1 parent 2cceed7 commit 8b73454
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2486 | 2486 | | |
2487 | 2487 | | |
2488 | 2488 | | |
2489 | | - | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
2490 | 2499 | | |
2491 | 2500 | | |
2492 | 2501 | | |
| |||
0 commit comments