athenea-eval / MODELS.md
derebellon's picture
Professionalize eval docs: English, consistent, public model links, no self-labeling, privacy fix
c7f0797 verified
|
Raw History Blame Contribute Delete
3.23 kB

Our models: training provenance

Training hyperparameters extracted directly from the training scripts (not estimated). Where a value is not documented in the code, the cell is marked (not documented).

Lulu: clinical extractor/reasoner (text to JSON / QA)

Source: smartepi-hms/extraction/train_extraction.py. Method: supervised fine-tuning (SFT) with Low-Rank Adaptation (LoRA/PEFT), via the trl SFTTrainer.

Lulu 0.6B (server/GPU) Lulu 0.5B (on-device/CPU)
HF repo edeus-lulu-qwen3 edeus-lulu-onnx (subfolder out_qwen_base)
Base model Qwen/Qwen3-0.6B Qwen/Qwen2.5-0.5B-Instruct
Method LoRA (r=16, α=32, dropout=0.05, bias=none) LoRA (r=16, α=32, dropout=0.05)
target_modules q,k,v,o,gate,up,down_proj same
learning_rate 2e-4 2e-4
batch (per-device × grad_accum) 4 × 4 (effective 16) 4 × 4 (effective 16)
epochs 2 2
max_seq_length 1024 1024
scheduler / warmup cosine / warmup_ratio 0.03 cosine / 0.03
precision bf16 bf16

Training data (source extraction/): sft_train.jsonl = 116,302 rows (100,956 unique; the full extraction task is upsampled ×2 so that it is not diluted relative to the shorter tasks). It is built from 3 multi-task sources: extraction to OMOP (Observational Medical Outcomes Partnership) / FHIR / ICD-10 / CTCAE, named-entity recognition with assertion and correction, and reasoning over serial values. Validation: sft_eval.jsonl = 600 (held-out, 0.5% residual overlap), sft_hard.jsonl = 499 (adversarial cases, 100% held-out).

Corrector: clinical corrector (typos/ASR to corrected text)

Source: smartepi-hms/corrector/train_corrector.py. HF: edeus-corrector-onnx.

  • Base: Qwen/Qwen3-0.6B. Method: LoRA (r=16, α=32, dropout=0.05). max_seq 512
  • lr 2e-4. batch 8 × grad_accum 2 (effective 16). epochs 3. bf16. gradient checkpointing
  • Training/validation dataset: (see corrector/; exact size not verified here)

OMOP mapper: not a trained model

A deterministic mapper (OMOP/Athena vocabulary, 2.46M concepts plus a 468k index). It has no training hyperparameters. Measured: 84.8% exact / 93.8% clinical (n=145). See 05-omop-mapper/.

Third-party models (evaluated as external baselines, not trained by us)

  • Presidio (spaCy es_core_news_md plus rules): de-identification. Third-party, not trained by us.
  • GLiNER Ihor/gliner-biomed-base-v1.0: named-entity recognition (NER). Third-party, not trained by us.

Out of scope for this repository (if referenced by the HTML)

  • ASR (Sona/Whisper/Moonshine/Parakeet): scripts in smartepi-hms/training/finetune_whisper*.py, finetune_moonshine.py, parakeet/finetune_parakeet.py. Hyperparameters live there; they are not mined into this table (this deliverable focuses on the extraction pipeline). Word error rates (WER) on record: Whisper v3-distill ~20%, Moonshine-ES ~9.5%, Sona ~3.72% (public id edeus-sona-ort).
  • Verifier (derebellon/edeus-verifier-qwen3-1.7b, eval_loss 0.199): its training script was not located in this pass; confirm before citing.

Rule: any cell marked "(not documented)" remains so in the HTML. Hyperparameters are not fabricated.