Skip to content

[Doc] Fix 'tokenized' -> 'tokenizer' typo in streamer docstrings#45508

Open
avasis-ai wants to merge 1 commit intohuggingface:mainfrom
avasis-ai:fix/streamers-docstring-typo
Open

[Doc] Fix 'tokenized' -> 'tokenizer' typo in streamer docstrings#45508
avasis-ai wants to merge 1 commit intohuggingface:mainfrom
avasis-ai:fix/streamers-docstring-typo

Conversation

@avasis-ai
Copy link
Copy Markdown

Summary

Fixes a systematic docstring typo in all three streamer classes in src/transformers/generation/streamers.py:

  • TextStreamer
  • TextIteratorStreamer
  • AsyncTextIteratorStreamer

Each had "The tokenized used to decode the tokens." in the tokenizer parameter description. This should be "The tokenizer used to decode the tokens." — the parameter accepts a tokenizer object, not a tokenized output.

Why this is not a duplicate

No existing PR addresses this specific documentation error across all three streamer classes.

AI assistance disclosure

This PR was prepared with AI assistance. The submitting human has reviewed every changed line and confirms the fix is correct.

Co-authored-by: opencode

All three streamer classes (TextStreamer, TextIteratorStreamer,
AsyncTextIteratorStreamer) had 'The tokenized used to decode the tokens'
in their docstrings, which should be 'The tokenizer used to decode
the tokens'.
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.

2 participants