From 09ed9a6da5c02c706b71bceddd9e063641b3600e Mon Sep 17 00:00:00 2001 From: ItayPodhajcer <19306955+ItayPodhajcer@users.noreply.github.com> Date: Wed, 2 Dec 2026 10:32:51 +0200 Subject: [PATCH] Give six example folders descriptive names Co-Authored-By: Claude Opus 5.5 --- README.md | 12 ++++++------ requirements/cpu-chat-images.txt | 2 +- .../README.md | 0 .../workflow.yaml | 0 .../README.md | 0 .../postprocess.py | 0 .../predict.py | 0 .../preprocess.py | 0 .../score.py | 0 .../train.py | 0 .../workflow.yaml | 10 +++++----- .../README.md | 0 .../workflow.yaml | 0 .../README.md | 0 .../prepare.py | 0 .../workflow.yaml | 2 +- .../README.md | 0 .../similar_pairs.py | 0 .../workflow.yaml | 2 +- .../{tabular => tabular-gradient-boosting}/README.md | 0 .../evaluate.py | 0 .../{tabular => tabular-gradient-boosting}/train.py | 0 .../workflow.yaml | 4 ++-- 23 files changed, 16 insertions(+), 16 deletions(-) rename workflows/{compare-finetunes => compare-fine-tunes}/README.md (100%) rename workflows/{compare-finetunes => compare-fine-tunes}/workflow.yaml (100%) rename workflows/{extractive-qa => extractive-question-answering}/README.md (100%) rename workflows/{extractive-qa => extractive-question-answering}/postprocess.py (100%) rename workflows/{extractive-qa => extractive-question-answering}/predict.py (100%) rename workflows/{extractive-qa => extractive-question-answering}/preprocess.py (100%) rename workflows/{extractive-qa => extractive-question-answering}/score.py (100%) rename workflows/{extractive-qa => extractive-question-answering}/train.py (100%) rename workflows/{extractive-qa => extractive-question-answering}/workflow.yaml (95%) rename workflows/{finetune-evaluate-quantize => fine-tune-evaluate-quantize}/README.md (100%) rename workflows/{finetune-evaluate-quantize => fine-tune-evaluate-quantize}/workflow.yaml (100%) rename workflows/{vlm-finetune => fine-tune-vision-language-model}/README.md (100%) rename workflows/{vlm-finetune => fine-tune-vision-language-model}/prepare.py (100%) rename workflows/{vlm-finetune => fine-tune-vision-language-model}/workflow.yaml (99%) rename workflows/{semantic-dedup => semantic-deduplication}/README.md (100%) rename workflows/{semantic-dedup => semantic-deduplication}/similar_pairs.py (100%) rename workflows/{semantic-dedup => semantic-deduplication}/workflow.yaml (99%) rename workflows/{tabular => tabular-gradient-boosting}/README.md (100%) rename workflows/{tabular => tabular-gradient-boosting}/evaluate.py (100%) rename workflows/{tabular => tabular-gradient-boosting}/train.py (100%) rename workflows/{tabular => tabular-gradient-boosting}/workflow.yaml (98%) diff --git a/README.md b/README.md index b7cd995..bfa0d6f 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ tools/check_workflows.py the check CI runs on every workflow | [dataset-statistics](workflows/dataset-statistics) | Profiles, filters, deduplicates and re-packs a Parquet dataset | none | | [embed-dataset](workflows/embed-dataset) | Embeds every row with Text Embeddings Inference and parallel clients | TEI | | [retrieval-index](workflows/retrieval-index) | Builds a RAG index from PDFs and answers a test query | TEI | -| [semantic-dedup](workflows/semantic-dedup) | Drops rows that mean nearly the same | vLLM batch | +| [semantic-deduplication](workflows/semantic-deduplication) | Drops rows that mean nearly the same | vLLM batch | | [entity-extraction](workflows/entity-extraction) | Extracts named entities of types you name with GLiNER | none | | [web-text-curation](workflows/web-text-curation) | Filters and deduplicates web text with datatrove | none | @@ -84,8 +84,8 @@ tools/check_workflows.py the check CI runs on every workflow | Workflow | What it does | GPU steps | |----------|--------------|-----------| -| [finetune-evaluate-quantize](workflows/finetune-evaluate-quantize) | Fine-tunes, evaluates, converts to GGUF, quantizes and publishes | TRL SFT, lm-eval | -| [compare-finetunes](workflows/compare-finetunes) | Fine-tunes twice with different settings and compares scores | TRL SFT, lm-eval | +| [fine-tune-evaluate-quantize](workflows/fine-tune-evaluate-quantize) | Fine-tunes, evaluates, converts to GGUF, quantizes and publishes | TRL SFT, lm-eval | +| [compare-fine-tunes](workflows/compare-fine-tunes) | Fine-tunes twice with different settings and compares scores | TRL SFT, lm-eval | | [train-then-serve](workflows/train-then-serve) | Fine-tunes a model and serves it with vLLM in the same run | TRL SFT, vLLM | | [dpo-alignment](workflows/dpo-alignment) | Aligns a model with DPO and measures its win rate with a judge | TRL DPO, vLLM batch | | [kto-alignment](workflows/kto-alignment) | Aligns a model with KTO and measures its win rate with a judge | TRL KTO, vLLM batch | @@ -93,7 +93,7 @@ tools/check_workflows.py the check CI runs on every workflow | [grpo-math](workflows/grpo-math) | Trains math reasoning with GRPO and a checked reward | TRL GRPO, lm-eval | | [rloo-math](workflows/rloo-math) | Trains math reasoning with RLOO and a checked reward | TRL RLOO, lm-eval | | [distill-model](workflows/distill-model) | Distills a larger model into a smaller one | TRL distillation, lm-eval | -| [vlm-finetune](workflows/vlm-finetune) | Fine-tunes a vision-language model and compares accuracy | TRL SFT, vLLM batch | +| [fine-tune-vision-language-model](workflows/fine-tune-vision-language-model) | Fine-tunes a vision-language model and compares accuracy | TRL SFT, vLLM batch | ### Merging, quantizing and serving @@ -110,7 +110,7 @@ tools/check_workflows.py the check CI runs on every workflow | [text-classification](workflows/text-classification) | Fine-tunes an encoder to classify text | training, prediction | | [text-regression](workflows/text-regression) | Fine-tunes an encoder to predict a number per text | training, prediction | | [token-classification](workflows/token-classification) | Fine-tunes an encoder to tag named entities | training, tagging | -| [extractive-qa](workflows/extractive-qa) | Fine-tunes a model to find answers in long documents | training, scoring tokens | +| [extractive-question-answering](workflows/extractive-question-answering) | Fine-tunes a model to find answers in long documents | training, scoring tokens | | [summarization](workflows/summarization) | Fine-tunes a sequence-to-sequence model to summarize | training, generation | | [translation](workflows/translation) | Fine-tunes a translation model | training, generation | | [sentence-embeddings](workflows/sentence-embeddings) | Fine-tunes a sentence-embedding model for retrieval | training, embedding | @@ -118,7 +118,7 @@ tools/check_workflows.py the check CI runs on every workflow | [image-classification](workflows/image-classification) | Fine-tunes a vision transformer to classify images | training, prediction | | [image-regression](workflows/image-regression) | Fine-tunes a vision transformer to predict a number per image | training, prediction | | [object-detection](workflows/object-detection) | Fine-tunes an object detector and scores its mAP | training, detection | -| [tabular](workflows/tabular) | Trains gradient-boosted trees on a table | none | +| [tabular-gradient-boosting](workflows/tabular-gradient-boosting) | Trains gradient-boosted trees on a table | none | Each workflow's README lists its steps, says which part stays one script and why, and gives the licenses of its default model, data and the packages its diff --git a/requirements/cpu-chat-images.txt b/requirements/cpu-chat-images.txt index c84cb68..eba51f5 100644 --- a/requirements/cpu-chat-images.txt +++ b/requirements/cpu-chat-images.txt @@ -1,4 +1,4 @@ -# What vlm-finetune's step that writes chat rows installs into the python-3-13 task. +# What fine-tune-vision-language-model's step that writes chat rows installs into the python-3-13 task. datasets==5.2.0 huggingface_hub==2.5.0 pillow==13.0.0 diff --git a/workflows/compare-finetunes/README.md b/workflows/compare-fine-tunes/README.md similarity index 100% rename from workflows/compare-finetunes/README.md rename to workflows/compare-fine-tunes/README.md diff --git a/workflows/compare-finetunes/workflow.yaml b/workflows/compare-fine-tunes/workflow.yaml similarity index 100% rename from workflows/compare-finetunes/workflow.yaml rename to workflows/compare-fine-tunes/workflow.yaml diff --git a/workflows/extractive-qa/README.md b/workflows/extractive-question-answering/README.md similarity index 100% rename from workflows/extractive-qa/README.md rename to workflows/extractive-question-answering/README.md diff --git a/workflows/extractive-qa/postprocess.py b/workflows/extractive-question-answering/postprocess.py similarity index 100% rename from workflows/extractive-qa/postprocess.py rename to workflows/extractive-question-answering/postprocess.py diff --git a/workflows/extractive-qa/predict.py b/workflows/extractive-question-answering/predict.py similarity index 100% rename from workflows/extractive-qa/predict.py rename to workflows/extractive-question-answering/predict.py diff --git a/workflows/extractive-qa/preprocess.py b/workflows/extractive-question-answering/preprocess.py similarity index 100% rename from workflows/extractive-qa/preprocess.py rename to workflows/extractive-question-answering/preprocess.py diff --git a/workflows/extractive-qa/score.py b/workflows/extractive-question-answering/score.py similarity index 100% rename from workflows/extractive-qa/score.py rename to workflows/extractive-question-answering/score.py diff --git a/workflows/extractive-qa/train.py b/workflows/extractive-question-answering/train.py similarity index 100% rename from workflows/extractive-qa/train.py rename to workflows/extractive-question-answering/train.py diff --git a/workflows/extractive-qa/workflow.yaml b/workflows/extractive-question-answering/workflow.yaml similarity index 95% rename from workflows/extractive-qa/workflow.yaml rename to workflows/extractive-question-answering/workflow.yaml index 360760c..0f08564 100644 --- a/workflows/extractive-qa/workflow.yaml +++ b/workflows/extractive-question-answering/workflow.yaml @@ -78,7 +78,7 @@ blocks: examples = f"{storage}/examples" subprocess.run([sys.executable, "-m", "pip", "install", "--quiet", "--target", "/tmp/deps", "-r", f"{examples}/requirements/cpu-tokenize.txt"], check=True) - subprocess.run([sys.executable, f"{examples}/workflows/extractive-qa/preprocess.py", + subprocess.run([sys.executable, f"{examples}/workflows/extractive-question-answering/preprocess.py", "--model", f"{storage}/base-model", "--train", f"{storage}/train.parquet", "--eval", f"{storage}/eval.parquet", "--output", f"{storage}/tokenized"], @@ -95,7 +95,7 @@ blocks: import os, subprocess, sys storage = os.environ["WORKFLOW_STORAGE"] - subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-qa/train.py", + subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-question-answering/train.py", "--model", f"{storage}/base-model", "--data", f"{storage}/tokenized", "--epochs", "${{inputs.epochs}}", "--output", f"{storage}/model"], check=True) @@ -110,7 +110,7 @@ blocks: import os, subprocess, sys storage = os.environ["WORKFLOW_STORAGE"] - subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-qa/predict.py", + subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-question-answering/predict.py", "--model", f"{storage}/model", "--data", f"{storage}/tokenized/eval", "--output", f"{storage}/window-scores.jsonl"], check=True) @@ -124,7 +124,7 @@ blocks: import os, subprocess, sys storage = os.environ["WORKFLOW_STORAGE"] - subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-qa/postprocess.py", + subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-question-answering/postprocess.py", "--scores", f"{storage}/window-scores.jsonl", "--examples", f"{storage}/eval-examples.jsonl", "--output", f"{storage}/answers.jsonl"], check=True) @@ -139,7 +139,7 @@ blocks: import os, subprocess, sys storage = os.environ["WORKFLOW_STORAGE"] - subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-qa/score.py", + subprocess.run([sys.executable, f"{storage}/examples/workflows/extractive-question-answering/score.py", "--answers", f"{storage}/answers.jsonl", "--output", f"{storage}/metrics.json"], check=True) publish: diff --git a/workflows/finetune-evaluate-quantize/README.md b/workflows/fine-tune-evaluate-quantize/README.md similarity index 100% rename from workflows/finetune-evaluate-quantize/README.md rename to workflows/fine-tune-evaluate-quantize/README.md diff --git a/workflows/finetune-evaluate-quantize/workflow.yaml b/workflows/fine-tune-evaluate-quantize/workflow.yaml similarity index 100% rename from workflows/finetune-evaluate-quantize/workflow.yaml rename to workflows/fine-tune-evaluate-quantize/workflow.yaml diff --git a/workflows/vlm-finetune/README.md b/workflows/fine-tune-vision-language-model/README.md similarity index 100% rename from workflows/vlm-finetune/README.md rename to workflows/fine-tune-vision-language-model/README.md diff --git a/workflows/vlm-finetune/prepare.py b/workflows/fine-tune-vision-language-model/prepare.py similarity index 100% rename from workflows/vlm-finetune/prepare.py rename to workflows/fine-tune-vision-language-model/prepare.py diff --git a/workflows/vlm-finetune/workflow.yaml b/workflows/fine-tune-vision-language-model/workflow.yaml similarity index 99% rename from workflows/vlm-finetune/workflow.yaml rename to workflows/fine-tune-vision-language-model/workflow.yaml index 977df66..a73f412 100644 --- a/workflows/vlm-finetune/workflow.yaml +++ b/workflows/fine-tune-vision-language-model/workflow.yaml @@ -74,7 +74,7 @@ blocks: examples = f"{storage}/examples" subprocess.run([sys.executable, "-m", "pip", "install", "--quiet", "--target", "/tmp/deps", "-r", f"{examples}/requirements/cpu-chat-images.txt"], check=True) - subprocess.run([sys.executable, f"{examples}/workflows/vlm-finetune/prepare.py", + subprocess.run([sys.executable, f"{examples}/workflows/fine-tune-vision-language-model/prepare.py", "--data", f"{storage}/train-images.parquet", "--labels", "${{inputs.labels}}", "--question", """${{inputs.question}}""", "--output", f"{storage}/train-chat.parquet"], env={**os.environ, "PYTHONPATH": "/tmp/deps"}, check=True) diff --git a/workflows/semantic-dedup/README.md b/workflows/semantic-deduplication/README.md similarity index 100% rename from workflows/semantic-dedup/README.md rename to workflows/semantic-deduplication/README.md diff --git a/workflows/semantic-dedup/similar_pairs.py b/workflows/semantic-deduplication/similar_pairs.py similarity index 100% rename from workflows/semantic-dedup/similar_pairs.py rename to workflows/semantic-deduplication/similar_pairs.py diff --git a/workflows/semantic-dedup/workflow.yaml b/workflows/semantic-deduplication/workflow.yaml similarity index 99% rename from workflows/semantic-dedup/workflow.yaml rename to workflows/semantic-deduplication/workflow.yaml index a766e44..d0bfdf8 100644 --- a/workflows/semantic-dedup/workflow.yaml +++ b/workflows/semantic-deduplication/workflow.yaml @@ -104,7 +104,7 @@ blocks: examples = f"{storage}/examples" subprocess.run([sys.executable, "-m", "pip", "install", "--quiet", "--target", "/tmp/deps", "-r", f"{examples}/requirements/cpu-numpy.txt"], check=True) - subprocess.run([sys.executable, f"{examples}/workflows/semantic-dedup/similar_pairs.py", + subprocess.run([sys.executable, f"{examples}/workflows/semantic-deduplication/similar_pairs.py", "--embeddings", f"{storage}/vectors.parquet", "--threshold", "${{inputs.threshold}}", "--pairs", f"{storage}/pairs.parquet", "--drop", f"{storage}/drop.parquet"], env={**os.environ, "PYTHONPATH": "/tmp/deps"}, check=True) diff --git a/workflows/tabular/README.md b/workflows/tabular-gradient-boosting/README.md similarity index 100% rename from workflows/tabular/README.md rename to workflows/tabular-gradient-boosting/README.md diff --git a/workflows/tabular/evaluate.py b/workflows/tabular-gradient-boosting/evaluate.py similarity index 100% rename from workflows/tabular/evaluate.py rename to workflows/tabular-gradient-boosting/evaluate.py diff --git a/workflows/tabular/train.py b/workflows/tabular-gradient-boosting/train.py similarity index 100% rename from workflows/tabular/train.py rename to workflows/tabular-gradient-boosting/train.py diff --git a/workflows/tabular/workflow.yaml b/workflows/tabular-gradient-boosting/workflow.yaml similarity index 98% rename from workflows/tabular/workflow.yaml rename to workflows/tabular-gradient-boosting/workflow.yaml index 6c4cad7..d204e23 100644 --- a/workflows/tabular/workflow.yaml +++ b/workflows/tabular-gradient-boosting/workflow.yaml @@ -67,7 +67,7 @@ blocks: os.makedirs(f"{storage}/model", exist_ok=True) subprocess.run([sys.executable, "-m", "pip", "install", "--quiet", "--target", "/tmp/deps", "-r", f"{examples}/requirements/cpu-tabular.txt"], check=True) - subprocess.run([sys.executable, f"{examples}/workflows/tabular/train.py", + subprocess.run([sys.executable, f"{examples}/workflows/tabular-gradient-boosting/train.py", "--train", f"{storage}/train.parquet", "--target", "${{inputs.target}}", "--task", "${{inputs.task}}", "--output", f"{storage}/model"], env={**os.environ, "PYTHONPATH": "/tmp/deps"}, check=True) @@ -85,7 +85,7 @@ blocks: examples = f"{storage}/examples" subprocess.run([sys.executable, "-m", "pip", "install", "--quiet", "--target", "/tmp/deps", "-r", f"{examples}/requirements/cpu-tabular.txt"], check=True) - subprocess.run([sys.executable, f"{examples}/workflows/tabular/evaluate.py", + subprocess.run([sys.executable, f"{examples}/workflows/tabular-gradient-boosting/evaluate.py", "--model", f"{storage}/model", "--test", f"{storage}/test.parquet", "--output", f"{storage}/metrics.json", "--predictions", f"{storage}/predictions.parquet"], env={**os.environ, "PYTHONPATH": "/tmp/deps"}, check=True)