Skip to content

fix: distill lint on main + Thai teacher recovery + parts-aware publish - #12

Merged
ronaldtse merged 4 commits into
mainfrom
fix/distill-lint-thai-registration
Aug 18, 2026
Merged

fix: distill lint on main + Thai teacher recovery + parts-aware publish#12
ronaldtse merged 4 commits into
mainfrom
fix/distill-lint-thai-registration

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • Register the distilled Thai G2P student for IMF export: tha-g2p-small entry in modal_export.py MODELS (checkpoint secryst_thai_g2p_distill_small/run-001/best on secryst-checkpoints)
  • evaluate_per in modal_distill.py: teacher/student PER gate on the SAME harness as the source results — held-out thai-ipa/test.jsonl (1,219 Kaikki sentences), beam-4, corpus-level PER (train_thai_combined.py protocol); gate = teacher + 5pp
  • Lint fixes in modal_distill.py (unused val_path/epoch flagged by ruff on main)

Test plan

  • ruff + syntax
  • CI green
  • gate eval: evaluate_per --spec tha-g2p-small passes before export runs

Ronald Tse added 4 commits August 18, 2026 17:04
- ruff: unused val_path/epoch/math in modal_distill/modal_teacher_thai
- modal_teacher_thai.py: recover the Thai umt5 teacher under
  transformers 5.14.1 — every secryst-saved umt5 artifact is unusable
  (5.15 save dropped the untied lm_head; verified by probes 2026-08-18).
  Same recipe as train_thai_combined.py: B-K base + 60K Kaikki+epitran.
- decode_joined everywhere: 5.x batch_decode inserts spurious spaces
  between sentencepiece pieces — this mangled the first student's
  teacher labels; tha-g2p-small moves to run-002 (retrain pending)
- publish_model.py: worktree-based branch handling (dirty trees no
  longer block publication), skip re-upload when assets already match
@ronaldtse
ronaldtse merged commit abf0777 into main Aug 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant