Skip to content

docs: add Chinese translation for generation_strategies.md#43370

Merged
stevhliu merged 1 commit into
huggingface:mainfrom
liuyun7345:docs/zh-translation-generation-strategies
Jan 20, 2026
Merged

docs: add Chinese translation for generation_strategies.md#43370
stevhliu merged 1 commit into
huggingface:mainfrom
liuyun7345:docs/zh-translation-generation-strategies

Conversation

@liuyun7345
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR adds Chinese translation for the generation_strategies.md documentation.

Content translated

  1. Basic decoding methods

    • Greedy search (贪婪搜索)
    • Sampling (采样)
    • Beam search (束搜索)
  2. Custom generation methods

    • How to use custom generation methods
    • How to create custom generation methods
    • generate.py specifications
    • requirements.txt
    • README.md guidelines
    • Finding custom generation methods

Files changed

  • docs/source/zh/generation_strategies.md - New Chinese translation file (325 lines)
  • docs/source/zh/_toctree.yml - Added new document to table of contents

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline, Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the documentation guidelines.
  • Did you write any new necessary tests?

Who can review?

@stevhliu (Documentation)

Copy link
Copy Markdown
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

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

thanks for your translation!

@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 merged commit 5a01a7f into huggingface:main Jan 20, 2026
15 checks passed
SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request 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.

3 participants