Skip to content

Give example titles a job shape and shorten descriptions - #3

Merged
ItayPodhajcer merged 2 commits into
mainfrom
examples/job-titles-and-short-descriptions
Dec 2, 2026
Merged

ItayPodhajcer merged 2 commits into
mainfrom
examples/job-titles-and-short-descriptions

Conversation

@ItayPodhajcer

@ItayPodhajcer ItayPodhajcer commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Every example's title now names the job it does, and every description is one sentence of at most 160 characters, the length a search snippet shows. Folder names are unchanged.

Titles (21): the README's heading and the workflow's name change together.

Example Before After
entity-extraction Entity extraction with GLiNER Extract named entities with GLiNER
extractive-qa Extractive question answering Fine-tune a model for extractive question answering
image-classification Image classification Fine-tune a vision transformer for image classification
image-regression Image regression Fine-tune a vision transformer for image regression
llm-as-a-judge LLM as a judge Score answers with an LLM as a judge
object-detection Object detection Fine-tune an object detection model
pdfs-to-markdown PDFs to a Markdown dataset Convert PDFs to a Markdown dataset
quantize-and-pick Quantize and pick Quantize a model and pick the best preset
scans-to-text Scanned images to text Extract text from scanned images with Tesseract
semantic-dedup Semantic deduplication Remove semantic duplicates from a dataset
sentence-embeddings Sentence embeddings for retrieval Fine-tune sentence embeddings for retrieval
setfit-classifier Few-shot classifier with SetFit Train a few-shot classifier with SetFit
summarization Summarisation Fine-tune a model to write news summaries
synthetic-reasoning-data Synthetic chain-of-thought data Generate synthetic chain-of-thought data
tabular Tabular classification and regression Train a gradient-boosted model on tabular data
text-classification Text classification Fine-tune an encoder for text classification
text-regression Text regression Fine-tune an encoder for text regression
token-classification Token classification Fine-tune an encoder for token classification
train-then-serve Train then serve Fine-tune a model then serve it with vLLM
translation Translation Fine-tune a translation model
web-text-curation Web text curation with datatrove Curate web text with datatrove

Descriptions (17)

Example Length Now
classify-images 171 → 157 Labels each image with one of a fixed set of labels, using a vision-language model through vLLM batch inference, and measures agreement with existing labels.
detect-objects 170 → 151 Asks a vision-language model for the bounding boxes of chosen objects in every image, compares the counts with annotations, and draws boxes on samples.
dpo-alignment 166 → 145 Aligns a chat model to preference pairs with TRL's DPO, then measures its win rate against the base model on held-out prompts with a judge model.
embed-dataset 167 → 157 Serves an embedding model with Text Embeddings Inference and embeds every row of a dataset into one Parquet file, with one client task per shard in parallel.
extractive-qa 191 → 145 Fine-tunes a question-answering model on a GPU to find answers inside long documents, with windowing, answer picking, exact match and F1 on CPUs.
image-classification 169 → 143 Fine-tunes a vision transformer to classify images, with resizing on a CPU, training and prediction on a GPU, and accuracy and macro F1 in SQL.
kto-alignment 178 → 157 Aligns a chat model to answers labelled good or bad with TRL's KTO, then measures its win rate against the base model on held-out prompts with a judge model.
object-detection 200 → 152 Fine-tunes an object detector on annotated images on a GPU, with annotation checks, COCO conversion, mean average precision and sample drawings on CPUs.
quantize-and-pick 172 → 160 Converts a model to GGUF, quantizes it to several presets in parallel, measures their perplexity and speed, and uploads the smallest within a perplexity budget.
retrieval-index 176 → 144 Splits PDFs into text chunks with Docling, embeds them with Text Embeddings Inference, stores them as a Parquet index, and answers a test query.
score-gguf 191 → 153 Serves a quantized GGUF model with llama.cpp on a CPU, has parallel client tasks answer GSM8K maths questions through it, and reports accuracy and speed.
sentence-embeddings 181 → 158 Fine-tunes a sentence-embedding model on question and answer pairs, then compares its retrieval recall and MRR with the base model's on held-out pairs in SQL.
synthetic-reasoning-data 180 → 151 Has a reasoning model solve maths questions step by step and a judge model check each answer, and keeps the correct solutions as a fine-tuning dataset.
text-regression 176 → 145 Fine-tunes an encoder model to predict a number for each text, here an educational-value score, with training on a GPU and error measures in SQL.
token-classification 162 → 153 Fine-tunes an encoder model to tag named entities word by word, with tag alignment on a CPU, training and tagging on a GPU, and entity-level F1 on a CPU.
vlm-finetune 192 → 153 Fine-tunes a small vision-language model with TRL to answer a question about images, then compares its accuracy with the base model's on held-out images.
web-text-curation 168 → 159 Cleans a sample of web text the way pre-training datasets are built, with datatrove quality filters and MinHash deduplication, one task per stage, all on CPUs.

Hugging Face Hub, not a bare "Hub"

  • 195 places said "Hub" alone for the Hugging Face Hub: 61 in READMEs, 119 in workflow input descriptions and 15 in the scripts' help text. Beside the swaleio/ task definitions, which live on Swale Hub, a bare "Hub" reads as Swale Hub.
  • "the Hub" is now "the Hugging Face Hub"; "Hub repo", "Hub model" and "Hub dataset" are now "Hugging Face repo", "Hugging Face model" and "Hugging Face dataset". Code spans such as hub_repo are unchanged.
  • finetune-evaluate-quantize's description now ends "uploads it to the Hugging Face Hub" (155 characters), since naming Hugging Face took the old wording to 171.

Checker

  • tools/check_workflows.py fails a workflow whose description is empty or longer than 160 characters, so a new example can't go over the limit.

Not changed

  • dataset-statistics and finetune-evaluate-quantize keep commas in their README heading, which name does not allow; both titles already name the job.
  • The summarization title avoids the word itself, so it holds whichever spelling the repo settles on.

Test plan

  • python tools/check_workflows.py --catalog <task-definitions main>: 43 workflows, 0 problems. Every description is 160 characters or fewer, the longest exactly 160 (quantize-and-pick).
  • A 162-character description fails the check (exit 1); 160 passes.
  • Every README heading matches its workflow name, except the two above.
  • No bare "Hub" is left outside code spans in the READMEs, workflow files, scripts or the root README.
  • CI passes.

🤖 Generated with Claude Code

ItayPodhajcer and others added 2 commits December 2, 2026 03:34
Twenty-one titles were nouns or bare verbs ("Translation", "Quantize
and pick"); each now names the job, in the README's heading and the
workflow's name alike. Seventeen descriptions were longer than 160
characters, the length a search snippet shows; each is now one
sentence of at most 160, and the checker fails a longer one. Folder
names stay as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A bare "Hub" in the READMEs, the workflow input descriptions and the
scripts' help text meant the Hugging Face Hub, but beside the swaleio/
task definitions it reads as Swale Hub. "the Hub" is now "the Hugging
Face Hub", and "Hub repo", "Hub model" and "Hub dataset" name Hugging
Face. finetune-evaluate-quantize's description says "uploads it" to
stay within 160 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ItayPodhajcer
ItayPodhajcer marked this pull request as ready for review December 2, 2026 07:19
@ItayPodhajcer
ItayPodhajcer merged commit b3750cd into main Dec 2, 2026
3 checks passed
@ItayPodhajcer
ItayPodhajcer deleted the examples/job-titles-and-short-descriptions branch December 2, 2026 07:19
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.

1 participant