Commit 88b5bc7
[misc] feat: remove redundant default params (volcengine#3577)
### What does this PR do?
This PR introduces two changes:
1. Removal of redundant default parameters: Default optimizer values are
already set in the .yaml configuration file. Defining them again in
other files is redundant and can cause confusion for users.
2. Alignment of warm-up step logic: Changed the condition from
`num_warmup_steps < 0` to `num_warmup_steps <= 0`. This aligns the code
with the documentation in the YAML file and matches the implementation
in Megatron.
https://github.com/volcengine/verl/blob/main/verl/trainer/config/actor/actor.yaml#L132
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Chi Zhang <[email protected]>
Co-authored-by: Changlong Yu <[email protected]>1 parent e882ab4 commit 88b5bc7
File tree
3 files changed
+13
-13
lines changed- verl
- trainer/config/actor
- utils/megatron
- workers/engine/fsdp
3 files changed
+13
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
0 commit comments