quran-md-data / training

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
  2. dpo-judge-fix: re-judged the 4 rows whose checkpoint held unparseable judge responses (2:9, 2:19, 2:129, 60:11) — checkpoint now 185/185 valid JSON; apply re-merged: biblical_backmapping 6->8, sectarian_collapse 2 (unchanged), primaries unchanged; flat re-derived; verify G1-G6 PASS

    Z User
    3f66f4d

6 days ago

  1. dpo-judge: stance-mode judge sweep complete — judge_coverage full on all 185 rows (was 79); apply merged judge-verified failure modes (evidence-substring enforced): +2 sectarian_collapse (all-modes tally now fake_quote 185, wrong_root 178, fabricated_hadith 31, biblical_backmapping 6, sectarian_collapse 2); primary modes unchanged (deterministic checks dominate); flat variants re-derived; kept 185 / dropped 0; verify G1-G6 PASS, validate_manifest PASS

    Z User
    5447b0a

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
  2. dpo-negatives: rejected side FILLED for all 185 rows with REAL on-policy base-model outputs (glm-4-plus via z-ai, no stored context supplied — model answers from its own knowledge, failures are natural, never hand-written). Primary verified failure_mode: wrong_root 147 / fabricated_hadith 31 / fake_quote 7; all-mode counts: fake_quote 185 (verse-text orthography + non-verbatim excerpts), wrong_root 178, fabricated_hadith 31, biblical_backmapping 6. Every label verified: deterministic checks (verse text vs Tanzil store; excerpt verbatim-or-fail vs all stored substrates; morphology vs corpus words incl. fabricated word_refs) + LLM judge with evidence-substring enforcement (79/185 rows judged so far — judge_coverage field per row; stance-mode sweep continues when API quota recovers). structure_match 178/185; length median ratio 0.6. Zero rows dropped (every draft had >=1 verified failure). Audit trail: training/dpo_generation_report.json + scripts/generate_dpo_negatives.py (checkpointed/resumable). verify.py G1-G6 PASS

    Z User
    e916cce
  3. probe-expand: hallucination_probe.jsonl 5 -> 45 items (22 real / 23 fake) — real items are verbatim substrings of stored substrates (tafsir tabari/ibn-kathir/qurtubi/majma/qummi + hadith), asserted at build; fake items are deterministic mutations of stored quotes (invented-tail templates covering all 8 failure modes incl. sectarian_collapse/ghayb_adjudication/secular_reductionist/false_balance, isnad cross-splices from two stored hadiths, wrong-root claims vs corpus), asserted absent from every substrate. Legacy probe_real_1 work label corrected to tafsir_majma_albayan (matches its stored substrate); legacy duplicate probe_fake_2 id disambiguated. scripts/expand_hallucination_probe.py added. verify.py G1-G6 PASS

    Z User
    bdbbc04
  4. training-resplit: SFT split fixed by surah (never random) — train sft.jsonl 160 rows (surah 1:7, 2:55, 19:98; was 7 rows surah-1-only), held-out eval sft_eval.jsonl 32 rows (6:17, 9:1, 14:1, 60:13 — the 6:74 'ab' hadith-grounded anti-hallucination cases stay held out). Rows moved verbatim, split_key=own-surah asserted for every row, deterministic (surah,ayah) sort. scripts/resplit_sft_by_surah.py added. verify.py G1-G6 PASS

    Z User
    0c42289

8 days ago

  1. phase4b: Tafsir al-Qummi ingested - Imami layer now two works deep (898 units)⁠

    Z User
    e046739
  2. phase4 v2: Majma substrate cleanup + Imami position grounded⁠

    Z User
    85b6476

9 days ago

  1. phase3-6 continued: NOTICE.md + DATASET_CARD.md (attribution compliance); mutashabihat detector (71 pairs) wired into graph (23,521 edges); KB expanded to 192 verses (Surah 19+60 complete, Ibrahim blocks 2:124-141, 6:74-90) with 576 commentary units + 1,662 citations; surah names + page numbers backfilled from API with provenance; probe expanded (2 real / 3 labeled fake); PERMISSION_REQUESTS.md drafts

    Z User
    cbbb668
  2. phase6: words data re-sharded to plain-text parts under HF 10MiB limit (data/words_[0-9]*.jsonl + words_manifest.json with sha256); all consumers updated; pipeline order build->classify; gates + acceptance PASS

    Z User
    e1b60ee
  3. phase6: words.jsonl -> words.jsonl.gz (1.1MB, HF 10MiB push limit); all consumers updated; pipeline order build->classify enforced; gates + acceptance test PASS

    Z User
    21b1447
  4. phase4-6: tafsir pipeline complete (171 units; Imami sources pending per manifest); rijal/audit MVP (hadith/narrators/audits with unresolved states, ghayb rule, 'ard test); compile_v2 (grounded SFT train/eval split by surah, hallucination probe 1 real + 2 labeled fake, DPO chosen staged with negatives gated on real base model); labeled md regenerated

    Z User
    5945aa9

10 days ago

  1. Enrich pages 1-6 with Tafsir Ibn Kathir, add verify.py and 6-page macro context

    842ec34
  2. Add 6-page ingestion pipeline and ingest pages 1-6

    8515547
  3. Initial quran.md schema, compiler, and 6:74 canonical test case

    082342a