Text Generation
Transformers
Safetensors
PyTorch
English
Spanish
neollm
causal-lm
research
dpo
conversational
custom_code
KitsuVp commited on
Commit
81bf4cc
·
verified ·
1 Parent(s): 9946bca

Diagram NeoLLM objective flow and data checks

Browse files
.gitattributes CHANGED
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  docs/dpo-workflow.png filter=lfs diff=lfs merge=lfs -text
37
  docs/validation-workflow.png filter=lfs diff=lfs merge=lfs -text
 
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  docs/dpo-workflow.png filter=lfs diff=lfs merge=lfs -text
37
  docs/validation-workflow.png filter=lfs diff=lfs merge=lfs -text
38
+ docs/objective-routing.png filter=lfs diff=lfs merge=lfs -text
39
+ docs/data-acceptance.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -52,6 +52,8 @@ Use DPO when two answers to the same prompt demonstrate a clear preference, such
52
 
53
  ### Objective handling in DPO
54
 
 
 
55
  The policy update combined **clean sigmoid DPO with `β=0.1`** and **`0.1 ×` a chosen-only SFT loss**. The policy and frozen SFT reference scored both replies through EOS using the same clean inputs. The reference scores were precomputed without gradients. The same setup was used in the pilot and the extended run.
56
 
57
  | Component | Clean pair scoring | Chosen-only SFT anchor on the trainable policy |
@@ -65,6 +67,12 @@ The policy update combined **clean sigmoid DPO with `β=0.1`** and **`0.1 ×` a
65
 
66
  For a labeled window, the clean sequence score is `−N × CE`, where `N` is the number of valid shifted completion targets and CE is the unweighted mixed-distribution cross-entropy. The anchor is computed separately in training mode. Its auxiliary terms contribute to the policy update outside the preference log-ratios.
67
 
 
 
 
 
 
 
68
  ## Evaluation and limitations
69
 
70
  [![Validation protocol showing held-out scores and generation probes, with a worked example from DPO step 1450](./docs/validation-workflow.png)](./docs/validation-workflow.png)
 
52
 
53
  ### Objective handling in DPO
54
 
55
+ [![DPO update showing clean policy and frozen-reference preference scores above the chosen-only SFT anchor, with both gradient paths joining at the policy update](./docs/objective-routing.png)](./docs/objective-routing.png)
56
+
57
  The policy update combined **clean sigmoid DPO with `β=0.1`** and **`0.1 ×` a chosen-only SFT loss**. The policy and frozen SFT reference scored both replies through EOS using the same clean inputs. The reference scores were precomputed without gradients. The same setup was used in the pilot and the extended run.
58
 
59
  | Component | Clean pair scoring | Chosen-only SFT anchor on the trainable policy |
 
67
 
68
  For a labeled window, the clean sequence score is `−N × CE`, where `N` is the number of valid shifted completion targets and CE is the unweighted mixed-distribution cross-entropy. The anchor is computed separately in training mode. Its auxiliary terms contribute to the policy update outside the preference log-ratios.
69
 
70
+ ### Data acceptance and debugging
71
+
72
+ [![Recommended workflow for accepting SFT rows and DPO pairs, checking supervision, validating checkpoints and fixing the first failing stage](./docs/data-acceptance.png)](./docs/data-acceptance.png)
73
+
74
+ For a new run, keep the original pair and record the first failing check. Repair the derived example or scoring code and repeat the check. This pipeline validated distinct replies and a shared tokenized prefix, excluded exact training-prefix matches from the held-out set, and trimmed supervision after the last EOS. For a generation failure, trace the first wrong token with the mixed distribution and the vocabulary-only diagnostic.
75
+
76
  ## Evaluation and limitations
77
 
78
  [![Validation protocol showing held-out scores and generation probes, with a worked example from DPO step 1450](./docs/validation-workflow.png)](./docs/validation-workflow.png)
docs/data-acceptance.png ADDED

Git LFS Details

  • SHA256: bdc509a0a3421c3b3223dc5730fe996ebcb0dcbc57c69b7e3ee3143eb9e43a9b
  • Pointer size: 131 Bytes
  • Size of remote file: 271 kB
docs/objective-routing.png ADDED

Git LFS Details

  • SHA256: fca29a7523684baf526ee0b4975f0617782d0c59081e9b2b27716af87250a444
  • Pointer size: 131 Bytes
  • Size of remote file: 222 kB