Skip to content

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

Merged
Rocketknight1 merged 1 commit intohuggingface:mainfrom
Mr-Neutr0n:docs/remove-summarization-translation-pipeline
Feb 9, 2026
Merged

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

Conversation

@Mr-Neutr0n
Copy link
Contributor

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>
Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

Yes, thank you for the fix!

@Rocketknight1 Rocketknight1 enabled auto-merge (squash) February 9, 2026 12:24
@Rocketknight1 Rocketknight1 merged commit 018af00 into huggingface:main Feb 9, 2026
15 checks passed
@HuggingFaceDocBuilderDev

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.

jiosephlee pushed a commit to jiosephlee/transformers_latest that referenced this pull request Feb 11, 2026
huggingface#43831)

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: Hari <kp.hari@icloud.com>
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

3 participants