Supported document types (8)
Field-trip parent letter · parent-counseling schedule notice · after-school program application · staff business-trip report · budget execution request ·
school-steering-committee minutes summary · facility repair request · student award recommendation (award).
Each type has a fixed schema; the model emits one JSON object with those keys. Dates are not computed: the model copies the request's expression
(e.g. '다음 주 수요일'), and application code converts it to an ISO date against a reference date (resolve_date in the example).
Training
- Base
Qwen/Qwen3-1.7B (Apache-2.0), revision 70d244cc86ccca08cf5af4e1e306ecf908b1ad5e. The sha256 of the base weight shards used for training equals the public LFS sha256 of this revision.
- Teacher: in-house Qwen3.8-27B (NVFP4). Only teacher outputs with a perfect score on the same prompt were kept (all field values and numbers correct, no ungrounded values, no distractor leakage, date expression kept verbatim) — rejection sampling.
- 1,660 synthetic training rows. LoRA r=16, α=32, dropout 0.05 (all linear modules), lr 2e-4, effective batch 16, 300 steps, seed 20261130, 331 s on one GPU. Trained and evaluated with
enable_thinking=False.
- All training data is synthetic. No AI Hub data was used. Training data, evaluation items and prediction files are not published.
Evaluation — held-out (seed 1206, 229 items, pre-registered prereg-doc-distill17-1130) · verdict DOC17_PASS
Table with columns: Metric (same items, same scorer), Threshold, This model, 27B teacher, Base before training| Metric (same items, same scorer) | Threshold | This model | 27B teacher | Base before training |
|---|
| render_ok (minimal HWPX check) | ≥ 0.99 | 1.0 | 1.0 | 1.0 |
| fact_preserve | ≥ 0.95 | 0.985 | 0.990 | 0.851 |
| num_acc | ≥ 0.98 | 0.9971 | 1.0 | 0.768 |
| Ungrounded-field rate | ≤ 0.02 | 0.0 | 0.0 | 0.0189 |
| Distractor-leak item rate | ≤ 0.05 | 0.0 | 0.0 | 0.0786 |
- Non-inferiority vs teacher: per-item (model − teacher) fact_preserve mean −0.0049, paired CI95 [−0.0122, 0.0017] (threshold: lower bound ≥ −0.03).
- Weakness: text fact preservation for the student award recommendation (report-only) is 0.9355 — the training data had a single award row. Award augmentation is follow-up research for a later version and is not in this checkpoint.
Release confirmation (prereg-doc-confirm17-1201) — W1–W7 all passed, verdict DOC17_RELEASE_OK
The release checkpoint was fixed to seed 20261130 before results were seen (extra seeds are for confirmation and do not replace it even if better).
Two extra training seeds — same held-out (seed 1206, 229 items), 5 primary gates + non-inferiority:
Table with columns: Metric, Threshold, seed 20261130 (released), 20261201, 20261202| Metric | Threshold | seed 20261130 (released) | 20261201 | 20261202 |
|---|
| fact_preserve | ≥ 0.95 | 0.985 | 0.98 | 0.9882 |
| num_acc | ≥ 0.98 | 0.9971 | 0.9904 | 0.9884 |
| Ungrounded-field rate | ≤ 0.02 | 0.0 | 0.0013 | 0.0007 |
| Distractor-leak item rate | ≤ 0.05 | 0.0 | 0.0 | 0.0 |
Independent set S2 with request structures absent from training (bulleted official letter, table, email, minutes excerpt; seed 1207, 240 items incl. 48 award; all requests written by the in-house 27B):
Table with columns: Metric, Threshold, seed 20261130 (released), 20261201, 20261202| Metric | Threshold | seed 20261130 (released) | 20261201 | 20261202 |
|---|
| render_ok | ≥ 0.99 | 1.0 | 1.0 | 1.0 |
| fact_preserve | ≥ 0.95 | 0.9831 | 0.9819 | 0.9836 |
| num_acc | ≥ 0.98 | 0.9917 | 0.9868 | 0.991 |
| Ungrounded-field rate | ≤ 0.02 | 0.0013 | 0.0006 | 0.0013 |
| Distractor-leak item rate | ≤ 0.05 | 0.0042 | 0.0042 | 0.0042 |
- S2 non-inferiority vs teacher (released checkpoint): per-item fact_preserve difference mean +0.0032, paired CI95 [−0.0046, 0.0109] (threshold lower bound ≥ −0.03).
- fact_preserve spread across seeds: held-out 0.0082 · S2 0.0017 (threshold ≤ 0.03).
- The S2 request writer and the teacher are the same 27B model (favours the teacher).
- Package check (W7): in a fresh container, with only the package files and the base model (no repository code),
infer_cases5.py passed all 5 cases (JSON parse, schema validation, .hwpx structure check).
Usage
examples/document/infer_peft_hwpx.py — one request (field-trip letter) → .hwpx.
examples/document/infer_cases5.py — five document types: request → JSON → date resolution → schema validation → .hwpx.
python infer_cases5.py <adapter dir> <examples dir> out/. Set the base path with THAKI_BASE (default Qwen/Qwen3-1.7B). The requests are fictional illustrations, not evaluation items.
- Both examples use the training system prompt and schema format. Use
enable_thinking=False and greedy decoding.
- Schema validation is a format check. Whether the values match the request must be checked by the caller.
- Requirements:
transformers, peft (adapter config saved by peft 0.22), torch.
Relation to the HWPX engine
examples/document/thaki_hwpx/ (Apache-2.0, standard library only) writes the document file. render_ok above only says that the model output passed a minimal HWPX structure check; it is not a measure of engine quality or Hancom compatibility.
Limitations
- Synthetic training and evaluation data. Generalization to real education-office or school requests is not measured. Region- or school-specific forms are not supported.
- Some evaluation requests and the teacher outputs come from the same 27B model (favours the teacher).
- Document types outside the 8 are not supported. The model does not emit fields outside the schema.
- Hancom Office (Hangul) compatibility on a real device is not verified. Only the engine's structural check was passed.
- Award-recommendation text fact preservation is lower than for the other types.
License and sources
- Adapter: Apache-2.0. Base Qwen/Qwen3-1.7B (Apache-2.0); base copyright remains with the original authors.
- Training data: synthetic (in-house templates + requests written by an in-house 27B model). No AI Hub data was used.
- Integrity:
release_manifest.json lists size and sha256 for every file. adapter_model.safetensors sha256 9b2e7377ed6211a3b78e61fc0294cfe791d44de7a48be93ae96cc00759252912. This checkpoint is published under this name only.