quran-md-data / scripts /flatten_training.py

Commit History

5 days ago

  1. dpo-resplit: held-out DPO eval split added, aligned BY SURAH with the SFT eval set — train training/dpo.jsonl 153 rows (surah 2: 55, 19: 98), eval training/eval/dpo_eval.jsonl 32 rows (surah 6: 17, 9: 1, 14: 1, 60: 13); rows moved verbatim (verse_key multiset asserted), split_key preserved; scripts/resplit_dpo_by_surah.py + flatten_training.py extended (dpo_eval_flat 32); README: +dpo_eval +dpo_eval_flat configs (9 total), file table updated, stale judge-pending wording fixed (sweep complete, coverage full 185/185); verify G1-G6 PASS, validate_manifest PASS

    Z User
    0ea247b

7 days ago

  1. flatten+readme: flat string variants derived (training/flat/: sft_flat 160, sft_eval_flat 32, dpo_flat 185 — prompt/response|chosen|rejected as JSON strings for trainers expecting flat text; scripts/flatten_training.py, deterministic). README.md rewritten as the full dataset card with explicit HF configs (sft/sft_eval/dpo/hallucination_probe + flat variants) — pins each file to its own config so the viewer never lumps differently-shaped files into one split (the CastError cause); configs presence disables auto-detection for the plumbing shards. DATASET_CARD.md removed (README now carries the card; no drift risk). verify.py G1-G6 PASS, validate_manifest.py PASS

    Z User
    3513fe7