# Hugging Face — Guiding Text Generation with Constrained Beam Search in 🤗 Transformers

- Company: Hugging Face (huggingface.co)
- Announced: 2022-03-11
- Category: capability-change
- Coverage: not counted
- Announcement: yes
- Group: announcements
- Source: https://huggingface.co/blog/constrained-beam-search
- Record: https://forck.live/items/2223-guiding-text-generation-with-constrained-beam-search-in-transformers
- Subject: Platform
- Models affected: t5-base

Hugging Face introduces a constrained beam search feature for the Transformers library, enabling users to guide text generation by specifying required words or phrases.

## Evidence

Verbatim from https://huggingface.co/blog/constrained-beam-search:

> Guiding Text Generation with Constrained Beam Search in 🤗 Transformers

---

Record: https://forck.live/items/2223-guiding-text-generation-with-constrained-beam-search-in-transformers
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
