Skip to content

[wip] Fix loss reduction#909

Closed
justinvyu wants to merge 3 commits intoNovaSky-AI:mainfrom
justinvyu:fix_loss_reduction
Closed

[wip] Fix loss reduction#909
justinvyu wants to merge 3 commits intoNovaSky-AI:mainfrom
justinvyu:fix_loss_reduction

Conversation

@justinvyu
Copy link
Contributor

No description provided.

Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
self._micro_batches_accumulated += 1

# Track total tokens accumulated to compute average loss per token during optim_step
self._total_tokens_accumulated += micro_batch.attention_mask.sum().item()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should actually be loss_mask

@justinvyu
Copy link
Contributor Author

close in favor of #925

@justinvyu justinvyu closed this Jan 23, 2026
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.

1 participant