transformers
Move max_new_tokens recommendation into GenerationConfig docstring
#42384
Merged

Move max_new_tokens recommendation into GenerationConfig docstring #42384

hawon223
stevhliu
stevhliu commented on 2025-11-25
stevhliu
stevhliu approved these changes on 2025-11-26
HuggingFaceDocBuilderDev
stevhliu stevhliu force pushed from 26848a25 to 5c6373c0 49 days ago
hawon223
stevhliu stevhliu force pushed from 5b3f0b12 to 11a35f38 46 days ago
hawon223 docs: clarify recommended usage of max_new_tokens in generate()
fe117990
hawon223 Move max_new_tokens recommendation into GenerationConfig docstring
e4faf7bb
hawon223 Remove Note about max_new_tokens and max_length
bcbcdfbc
hawon223 Update src/transformers/generation/configuration_utils.py
e1388688
hawon223 Update src/transformers/generation/configuration_utils.py
cd653ae3
hawon223 Remove Note about max_new_tokens and max_length
47182c93
hawon223 Docs: clean up empty line in text_generation.md
4fdb8767
hawon223 Docs: simplify max_length explanation in generation config
59e1ec08
hawon223 style: fix trailing whitespace in configuration_utils.py
0cf3ebf0
stevhliu stevhliu force pushed from 11a35f38 to 0cf3ebf0 46 days ago
stevhliu
stevhliu stevhliu enabled auto-merge (squash) 46 days ago
disabled auto-merge 46 days ago
Manually disabled by user
hawon223
ydshieh Merge branch 'main' into fix/max_new_tokens_docstring
a5e6f18f
ydshieh ydshieh merged f8e69286 into main 45 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone