TRIAGE trains an LLM to generate dialectical reasoning over competing clinical outcomes by eliciting outcome-specific rationales. This approach mitigates risk polarization and enables a single LLM to yield continuous risk scores grounded in explicit clinical reasoning. This specific model is applied to the P12 dataset.
Each split in this repository is RL-trained on top of an SFT warm-start and placed in its own split_N/ subfolder. Per-split RL checkpoints were selected by Validation AUPRC over the RL trajectory.
The SFT warm-start used to initialize this RL run lives on the
rl_init branch of this same repo.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3split = "split_1" # one of split_1 ... split_5
4repo = "Hyeongwon/TRIAGE-4B-P12-SFT-RL"
5
6tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=split)
7model = AutoModelForCausalLM.from_pretrained(repo, subfolder=split, device_map="auto")
The model expects a task-specific input/output template; for the full inference pipeline, see the linked GitHub repository.
Further preprocessing and split-construction details are in the linked GitHub repository.