Repository navigation
Commit 898bf59
fix: correct top_k=0 truthiness check and deduplicate loss_history entries
- Use `is not None` instead of truthiness check for top_k so that
top_k=0 is passed through correctly instead of being replaced with -1
- Skip appending to loss_history at epoch end when the last step was
already logged by per-step logging, preventing duplicate entries
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5ffddb7 commit 898bf59
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
| |||
597 | 599 | | |
598 | 600 | | |
599 | 601 | | |
600 | | - | |
| 602 | + | |
601 | 603 | | |
602 | 604 | | |
603 | 605 | | |
| |||
0 commit comments