Prototype: votes, saves, and profiles aren't stored on this hosted preview yet. No real accounts, and no emails or texts. Privacy

Recipes / Review & lead classification

Auto-generate tags from text with T5 and LoRA (HF Cookbook)

T5-small fine-tuned with LoRA to write short tags for a piece of text. The example uses GitHub repo descriptions.

  • No license flags found

Source: HF Cookbook ↗ · by Zamal Babar · last updated Jan 9, 2026

What a local business could build with it

Tag reviews or support tickets by topic (billing, wait time, staff) so you can count what customers mention. Replace the GitHub data with your own labeled text.

How to run it

Commands are copied from the source, unchanged except where a notebook cell is cut at 40 lines (marked in the code). Placeholders like <you> are the source's own. Credit goes to the authors named on each block.

Set up training

from transformers import Trainer from transformers import DataCollatorForSeq2Seq data_collator = DataCollatorForSeq2Seq(tokenizer=tokenizer, model=model) trainer = Trainer( model=model, args=training_args, train_dataset=tokenized["train"], eval_dataset=tokenized["validation"], tokenizer=tokenizer, data_collator=data_collator )

From HF Cookbook, finetune_t5_for_search_tag_generation ↗

Licenses

No flags: every license we found for this recipe is permissive (Apache-2.0, MIT, BSD, CC BY or similar). Still read each one.

PartLicense, as the source or Hub states it
CodeApache-2.0 (huggingface/cookbook)
Base modelApache-2.0
DatasetMIT

Checked against the Hugging Face API and each repo on December 4, 2026. A grouping like “$10M revenue cap” is our shorthand, not legal advice.