Skip to content

[docs] update num_items_in_batch for causal LMs#46335

Merged
stevhliu merged 1 commit into
huggingface:mainfrom
stevhliu:trainer-loss
Jun 2, 2026
Merged

[docs] update num_items_in_batch for causal LMs#46335
stevhliu merged 1 commit into
huggingface:mainfrom
stevhliu:trainer-loss

Conversation

@stevhliu
Copy link
Copy Markdown
Member

@stevhliu stevhliu commented Jun 1, 2026

adds docs for #46204 where the causal LM loss is actually shifted

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@stevhliu stevhliu requested review from SunMarc and qgallouedec June 1, 2026 22:48
Copy link
Copy Markdown
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks !

@stevhliu stevhliu added this pull request to the merge queue Jun 2, 2026
Merged via the queue into huggingface:main with commit 9aed235 Jun 2, 2026
33 checks passed
@stevhliu stevhliu deleted the trainer-loss branch June 2, 2026 16:14
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.

4 participants