Skip to content

[docs] Remove pipeline() examples from summarization/translation tasks#43831

Open
Mr-Neutr0n wants to merge 1 commit intohuggingface:mainfrom
Mr-Neutr0n:docs/remove-summarization-translation-pipeline
Open

[docs] Remove pipeline() examples from summarization/translation tasks#43831
Mr-Neutr0n wants to merge 1 commit intohuggingface:mainfrom
Mr-Neutr0n:docs/remove-summarization-translation-pipeline

Conversation

@Mr-Neutr0n
Copy link

Summary

  • Removes pipeline()-based inference examples from summarization and translation task documentation
  • These examples no longer work in v5 since SummarizationPipeline and TranslationPipeline were removed

Background

According to the v5 migration guide, SummarizationPipeline and TranslationPipeline were removed in transformers v5.

The documentation still contained inference examples using these pipelines, which is confusing for users on v5 since the examples no longer work.

Changes

  • Removed pipeline() examples from docs/source/en/tasks/summarization.md
  • Removed pipeline() examples from docs/source/en/tasks/translation.md
  • The manual tokenize/generate/decode workflow remains as the recommended approach

Fixes #43827

🤖 Generated with Claude Code

Remove pipeline()-based inference examples from summarization and
translation task documentation since SummarizationPipeline and
TranslationPipeline were removed in transformers v5.

The manual tokenize/generate/decode workflow remains as the
recommended approach for inference.

Fixes huggingface#43827

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

Summarization/Translation docs still reference pipeline() after v5 pipeline removals

1 participant