visproj commited on
Commit
5dcb536
·
verified ·
1 Parent(s): c752297

Copy from visproj for Build Small Hackathon submission

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +85 -0
  3. proofkit_sft.jsonl +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ proofkit_sft.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - proofkit
7
+ - sft
8
+ - synthetic
9
+ - build-small-hackathon
10
+ task_categories:
11
+ - text-generation
12
+ size_categories:
13
+ - 1K<n<10K
14
+ ---
15
+
16
+ # ProofKit SFT dataset
17
+
18
+ The supervised fine-tuning set for ProofKit's small models (~7,000 chat examples).
19
+ **Fully synthetic and license-safe** — examples are generated deterministically from
20
+ ProofKit's own templates, demo profiles, and role-knowledge records
21
+ (`data/finetune/build_dataset.py`). No scraped prose, no private user data, no
22
+ model-generated targets.
23
+
24
+ ## Tasks
25
+
26
+ `section_draft`, `coauthor_draft` (draft from rough user answers), `section_revision`,
27
+ and strict-JSON `scenario_json` / `recommendation_json` / `review_json` /
28
+ `portfolio_json` / `custom_outline_json`. Each row is a `messages` list (system / user /
29
+ assistant).
30
+
31
+ ## Design: faithfulness + variation
32
+
33
+ This set was rebuilt to fix a **synthetic-data leakage** bug. The earlier version
34
+ rendered the example *user answers* and the *target* from the same skill/constraint
35
+ slots, so models learned to ignore inputs and reproduce a template. The fix:
36
+
37
+ - **Faithfulness anchors** — each synthetic answer carries a distinctive token (e.g.
38
+ *"the vendor scorecard"*) the target must preserve, teaching `target = f(input)`.
39
+ - **Seeded per-example variation** — every task draws phrasing from a per-example
40
+ deterministic RNG, so the data stops drilling the same few sentence frames (the
41
+ readiness review alone went from ~4 canned reasoning strings to 86 distinct).
42
+
43
+ ## Used by
44
+
45
+ [`visproj/proofkit-qwen0.5b-7k`](https://huggingface.co/visproj/proofkit-qwen0.5b-7k)
46
+ (direct SFT) and [`visproj/proofkit-gpt-oss-20b-lora`](https://huggingface.co/visproj/proofkit-gpt-oss-20b-lora)
47
+ (teacher).
48
+
49
+ ## About ProofKit
50
+
51
+ [ProofKit](https://huggingface.co/spaces/visproj/proofkit) is a work-sample generator for job seekers — it turns a target
52
+ role, background, and skills-to-prove into a realistic, **clearly-fictional**
53
+ practice work sample (a role-specific challenge, a guided builder, a readiness
54
+ review, and a recruiter-ready portfolio packet). Built for the Hugging Face **Build
55
+ Small Hackathon** (Backyard AI track). Integrity rules are load-bearing: outputs
56
+ never claim real employment, metrics are labeled hypothetical, and exports carry an
57
+ ethical disclosure.
58
+
59
+ ### The ProofKit model family
60
+
61
+ | Repo | What it is |
62
+ |---|---|
63
+ | [`visproj/proofkit-qwen0.5b-7k`](https://huggingface.co/visproj/proofkit-qwen0.5b-7k) | Qwen2.5-0.5B fine-tuned directly on the 7k set (Transformers) |
64
+ | [`visproj/proofkit-gpt-oss-20b-lora`](https://huggingface.co/visproj/proofkit-gpt-oss-20b-lora) | gpt-oss-20b LoRA — the distillation **teacher** |
65
+ | [`visproj/proofkit-distilled-qwen0.5b`](https://huggingface.co/visproj/proofkit-distilled-qwen0.5b) | Qwen2.5-0.5B distilled from the teacher (merged) |
66
+ | [`visproj/proofkit-distilled-qwen0.5b-gguf`](https://huggingface.co/visproj/proofkit-distilled-qwen0.5b-gguf) | GGUF of the distilled student (llama.cpp — **served**) |
67
+ | [`visproj/proofkit-sft`](https://huggingface.co/datasets/visproj/proofkit-sft) | SFT dataset (synthetic, license-safe) |
68
+ | [`visproj/proofkit-distill-qwen0.5b`](https://huggingface.co/datasets/visproj/proofkit-distill-qwen0.5b) | Distillation dataset (teacher completions) |
69
+
70
+ ### A note on training data (the "static responses" fix)
71
+
72
+ An earlier version of these models produced repetitive, input-ignoring drafts. The
73
+ root cause was **synthetic-data leakage**: the dataset rendered the example *user
74
+ answers* and the *target* from the same template slots, so the model learned
75
+ `target = template` instead of `target = f(input)`. The fix — **faithfulness anchors**
76
+ (a distinctive token shared by the answer and the target) + **seeded per-example
77
+ variation** across every task, then a full-chain retrain — is what these current
78
+ weights reflect.
79
+
80
+ ### Prompt format is a frozen contract
81
+
82
+ These 0.5B models were trained on the **exact** prompt shapes from ProofKit's
83
+ `prompt_formats.py`. They only behave well when prompted in that format; reworded or
84
+ free-form prompts push them off-distribution. They are purpose-built components of the
85
+ ProofKit app, not general chat models.
proofkit_sft.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ccec4ffcafd005edda08d715b93b2baa0ef7493dec21658b3b074aa8a633fc1
3
+ size 15760627