transformers - ✅(Solved) Fix Docs still mention text2text-generation / summarization / translation pipeline tasks which were removed in v5 [1 pull requests, 4 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
huggingface/transformers#44509Fetched 2026-04-08 00:28:00
View on GitHub
Comments
4
Participants
2
Timeline
12
Reactions
0
Timeline (top)
commented ×4mentioned ×2subscribed ×2closed ×1

Fix Action

Fixed

PR fix notes

PR #44510: Fix: Remove references to text2text-generation, summarization and translation pipeline tasks

Description (problem / solution / changelog)

What does this PR do?

<!-- Congratulations! You've made it this far! You're not quite done yet though. Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution. Then, please replace this with a description of the change and which issue is fixed (if applicable). Please also include relevant motivation and context. List any dependencies (if any) that are required for this change. Once you're done, someone will review your PR shortly (see the section "Who can review?" below to tag some potential reviewers). They may suggest changes to make the code even better. If no one reviewed your PR after a week has passed, don't hesitate to post a new comment @-mentioning the same persons---sometimes notifications get lost. --> <!-- Remove if not applicable -->

Fixes #44509

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, and here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.

@Rocketknight1 @stevhliu

<!-- Your PR will be replied to more quickly if you can figure out the right person to tag with @ If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**. Please tag fewer than 3 people. Models: - text models: @ArthurZucker @Cyrilvallez - vision models: @yonigozlan @molbap - audio models: @eustlb @ebezzam @vasqu - multimodal models: @zucchini-nlp - graph models: @clefourrier Library: - generate: @zucchini-nlp (visual-language models) or @gante (all others) - continuous batching: @remi-or @ArthurZucker @McPatate - pipelines: @Rocketknight1 - tokenizers: @ArthurZucker and @itazap - trainer: @SunMarc - attention: @vasqu @ArthurZucker @CyrilVallez - model loading (from pretrained, etc): @CyrilVallez - distributed: @3outeille @ArthurZucker - CIs: @ydshieh Integrations: - ray/raytune: @richardliaw, @amogkam - Big Model Inference: @SunMarc - quantization: @SunMarc - kernels: @drbh - peft: @BenjaminBossan @githubnemo Devices/Backends: - AMD ROCm: @ivarflakstad - Intel XPU: @IlyasMoutawwakil - Ascend NPU: @ivarflakstad Documentation: @stevhliu Research projects are not maintained and should be taken as is. -->

Changed files

  • docs/source/ar/task_summary.md (modified, +0/-9)
  • docs/source/ar/tasks/summarization.md (modified, +0/-12)
  • docs/source/en/model_doc/bartpho.md (modified, +0/-22)
  • docs/source/en/model_doc/bert-generation.md (modified, +0/-16)
  • docs/source/en/model_doc/bigbird_pegasus.md (modified, +0/-19)
  • docs/source/en/model_doc/byt5.md (modified, +0/-16)
  • docs/source/en/model_doc/encoder-decoder.md (modified, +0/-16)
  • docs/source/en/model_doc/led.md (modified, +0/-19)
  • docs/source/en/model_doc/mt5.md (modified, +0/-18)
  • docs/source/en/model_doc/pegasus.md (modified, +0/-18)
  • docs/source/en/model_doc/pegasus_x.md (modified, +0/-19)
  • docs/source/en/model_doc/switch_transformers.md (modified, +0/-16)
  • docs/source/en/model_doc/t5.md (modified, +0/-16)
  • docs/source/en/model_doc/t5gemma.md (modified, +0/-22)
  • docs/source/en/pipeline_tutorial.md (modified, +0/-11)
  • docs/source/en/tasks/prompting.md (modified, +1/-1)
  • docs/source/es/task_summary.md (modified, +0/-9)
  • docs/source/fr/quicktour.md (modified, +0/-2)
  • docs/source/fr/task_summary.md (modified, +0/-9)
  • docs/source/ja/task_summary.md (modified, +0/-10)
  • docs/source/ja/tasks/prompting.md (modified, +1/-18)
  • docs/source/ja/tasks/translation.md (modified, +0/-17)
  • docs/source/ko/quicktour.md (modified, +0/-2)
  • docs/source/ko/tasks/prompting.md (modified, +1/-15)
  • docs/source/ko/tasks/translation.md (modified, +0/-15)
  • docs/source/zh/quicktour.md (modified, +0/-2)
  • docs/source/zh/task_summary.md (modified, +0/-9)
RAW_BUFFERClick to expand / collapse

System Info

Transformers version: 5.x

The issue is related to the documentation rather than a specific runtime environment.

Who can help?

@Rocketknight1 @stevhliu

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

This is a documentation inconsistency in Transformers v5. text2text-generation / summarization / translation pipeline tasks (pipeline("text2text-generation"), pipeline("summarization") and pipeline("translation")) were removed in v5. Despite this, the official documentation still contains multiple references to these tasks.

Expected behavior

References to text2text-generation, summarization and translation as pipeline task names should be removed.

extent analysis

Fix Plan

Update Documentation

Update the official documentation to reflect the removal of text2text-generation, summarization, and translation pipeline tasks in Transformers v5.

Steps:

  1. Identify outdated documentation:
    • Search for the removed pipeline tasks in the documentation.
    • Create a list of affected pages and links.
  2. Update pipeline task names:
    • Replace text2text-generation with text2text or generation.
    • Replace summarization with summarization (no change needed).
    • Replace translation with translation (no change needed).
  3. Update model documentation:
    • Update model-specific documentation to reflect the new pipeline task names.
    • Remove references to the removed pipeline tasks.
  4. Verify changes:
    • Review updated documentation for accuracy.
    • Test pipeline tasks to ensure they work as expected.

Example Code (Python)

import transformers

# Update pipeline task names
transformers.pipeline("text2text")  # instead of "text2text-generation"
transformers.pipeline("summarization")  # no change needed
transformers.pipeline("translation")  # no change needed

Note: This fix plan assumes that the documentation is maintained using a version control system like Git. If not, consider using a documentation management tool to track changes and updates.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

References to text2text-generation, summarization and translation as pipeline task names should be removed.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING