Repository navigation
Preference Dataset
Sudhanshu edited this page Nov 11, 2026
·
1 revision
The draft DPO_SFT.py defines five intended comparison records, each containing three keys: prompt, chosen, and rejected. Since the source cannot be parsed, these are documented from inspection, not loaded or validated during execution.
flowchart LR
A[Prompt] --> D[Preference record]
B[Chosen preferred response] --> D
C[Rejected less-preferred response] --> D
D --> E{Data validation: future work}
E -->|valid| F[DPO trainer: proposed]
E -->|invalid| G[Reject / repair record]
- Validate every record has all three nonempty string values.
- Normalize prompt formatting to the selected model's tokenizer/template.
- Confirm chosen responses are consistently preferable, avoid label leakage, and maintain a separate held-out preference evaluation set.
- Revisit whether length, formatting, or canned answers are spurious preference signals.
- Protect private or proprietary prompts from publishing.
The ORPO block is a triple-quoted string and is not executed.
Transformer Training Wiki · Implementation status: DistilBERT source available.This project is licensed under the Apache License, Version 2.0.© 2026 Sudhanshu Shukla · Licensed under the Apache License, Version 2.0
Overview
Architecture
Implemented classifier
- DistilBERT-Workflow
- Dataset-and-Labels
- Training-Configuration
- Evaluation-and-Inference
- Frozen-Backbone-Comparison
- Artifacts-and-Checkpoints
Experimental alignment draft
Operations