hqt2yotoz commited on
Commit
271a71c
·
verified ·
1 Parent(s): eb1e037

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +98 -0
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language: [en]
4
+ task_categories: [text-classification, text-generation]
5
+ tags:
6
+ - verdict-engine
7
+ - build-small-hackathon
8
+ - distillation
9
+ - triage
10
+ - llm-as-a-judge
11
+ - synthetic
12
+ size_categories: [n<1K]
13
+ configs:
14
+ - config_name: default
15
+ data_files:
16
+ - split: train
17
+ path: train_v2.jsonl
18
+ - split: validation
19
+ path: eval_v2.jsonl
20
+ ---
21
+
22
+ # Verdict Engine — SFT v2 (Sonnet-4.6 distilled)
23
+
24
+ The supervised fine-tuning dataset behind every model in the
25
+ [Verdict Engine bake-off](https://github.com/setuc/verdict-engine): four LoRA
26
+ fine-tunes (`hqt2yotoz/verdict-engine-{qwen3-4b-2507,qwen3-8b,smollm3-3b,qwen2.5-7b}-lora`)
27
+ that all beat their own base on a blind panel. This is the **v2 / "true-distillation"**
28
+ dataset — the one whose labels come from a genuinely stronger teacher (Claude Sonnet 4.6),
29
+ not from the small model labeling itself.
30
+
31
+ ## What it teaches
32
+
33
+ The Verdict Engine has two faces, and this dataset trains both with one chat schema family
34
+ (`messages`: `system` / `user` / `assistant`, where the assistant turn is a single JSON object):
35
+
36
+ | Task | Examples (train / val) | Persona(s) | Assistant JSON |
37
+ |---|---|---|---|
38
+ | **Triage** | 92 / 12 | The Librarian | `label` ∈ {read-now, skim, skip, archive}, `novelty_score` ∈ [0,1], `one_line`, `tags` (2–5), `reason` |
39
+ | **Critic panel** | 376 / 40 | Reviewer #2 · The Over-Eager Intern · The Weary Professor · The Hype Beast | `verdict`, `roast`, `score` |
40
+ | **Total** | **468 / 52** | | |
41
+
42
+ ### Triage label distribution (train split)
43
+ `skip` 58 · `read-now` 16 · `skim` 14 · `archive` 4.
44
+
45
+ This is **deliberately skip-heavy, and that is the point.** Most of the daily model/dataset/paper
46
+ firehose is genuinely skippable; a calibrated triager should say so. The single most important
47
+ finding behind these models is that base models *over-praise* (almost everything → `read-now` with
48
+ inflated novelty), while a model distilled on this distribution learns to **discriminate** — which
49
+ is what wins the blind eval. A balanced label set would have taught the wrong thing.
50
+
51
+ ## Provenance — true distillation, not self-distillation
52
+
53
+ Items are real entries from the Hugging Face firehose (newest models & datasets via
54
+ `huggingface_hub.list_models` / `list_datasets`, plus the HF Daily Papers API) and a small set of
55
+ hand-seeded items. Each item's gold label was produced by **Claude Sonnet 4.6** through an AI
56
+ gateway acting as the teacher (`finetune/gateway_teacher.py`), then formatted into chat SFT records
57
+ (`finetune/gen_dataset.py`).
58
+
59
+ This is the methodological core of the project. An earlier **v1** dataset was labeled mostly by the
60
+ *same* 7B model being fine-tuned — self-distillation — and the resulting fine-tune **lost** its
61
+ blind eval 6/3/3 (a model can't teach itself a skill it lacks). Re-labeling with a true stronger
62
+ teacher (this v2 set) flipped that to a **12–0 sweep** on the original 7B, and to clean wins for
63
+ all four bases in the multi-model bake-off. See
64
+ [`docs/TRAINING.md`](https://github.com/setuc/verdict-engine/blob/main/docs/TRAINING.md).
65
+
66
+ ## Files
67
+ - `train_v2.jsonl` — 468 records, one JSON object per line, key `messages`.
68
+ - `eval_v2.jsonl` — 52 held-out records, same schema.
69
+
70
+ The held-out **bake-off eval items** (the fixed 10 the blind panel scored every model on) and the
71
+ blind/keyed eval pairs live in the GitHub repo under `finetune/bakeoff/`.
72
+
73
+ ## How it was used
74
+ Identical recipe across all bake-off models — only the base varies:
75
+ LoRA `r=16, α=16`, targets `q,k,v,o,gate,up,down`; **bf16 LoRA via PEFT + TRL** (not 4-bit — the
76
+ Unsloth 4-bit path corrupted adapter weights for these bases; see TRAINING.md §4); trained on each
77
+ model's **native chat template**; 3 epochs on an AWS A10G. Reproduce:
78
+
79
+ ```bash
80
+ python finetune/train_lora_mps.py \
81
+ --model Qwen/Qwen3-4B-Instruct-2507 \
82
+ --train train_v2.jsonl --eval eval_v2.jsonl \
83
+ --out out_qwen3 --epochs 3
84
+ ```
85
+
86
+ ## Honest limitations
87
+ - **Synthetic labels.** Gold verdicts are Sonnet-4.6 judgments, so the dataset inherits that
88
+ teacher's taste and blind spots. It is a *narrow, in-domain classifier* signal — good for this one
89
+ triage/critique schema, not a general-purpose judge (cf. Huang et al., ACL 2025 Findings,
90
+ *"A Fine-tuned Judge Model is not a General Substitute for GPT-4"*).
91
+ - **Small + imbalanced.** 520 examples, skip-heavy triage labels, critic-mode dominant. Treat as a
92
+ task-shaping SFT set, not a benchmark.
93
+ - **Item text is public metadata** (HF card snippets, arXiv-style abstracts, titles) captured in
94
+ June 2026; original works retain their own licenses. The *labels/personas* are model-generated.
95
+ `license: other` reflects this mixed provenance — released for research/reproducibility of the
96
+ Verdict Engine experiment.
97
+
98
+ — Built for the Hugging Face **Build Small** hackathon. Code: github.com/setuc/verdict-engine