Instructions to use Hyeongwon/TRIAGE-4B-P12-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hyeongwon/TRIAGE-4B-P12-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hyeongwon/TRIAGE-4B-P12-SFT")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Hyeongwon/TRIAGE-4B-P12-SFT", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Hyeongwon/TRIAGE-4B-P12-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hyeongwon/TRIAGE-4B-P12-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hyeongwon/TRIAGE-4B-P12-SFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Hyeongwon/TRIAGE-4B-P12-SFT
- SGLang
How to use Hyeongwon/TRIAGE-4B-P12-SFT with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Hyeongwon/TRIAGE-4B-P12-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hyeongwon/TRIAGE-4B-P12-SFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Hyeongwon/TRIAGE-4B-P12-SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hyeongwon/TRIAGE-4B-P12-SFT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Hyeongwon/TRIAGE-4B-P12-SFT with Docker Model Runner:
docker model run hf.co/Hyeongwon/TRIAGE-4B-P12-SFT
TRIAGE-4B-P12-SFT
SFT checkpoints released as part of the work, applied to the P12 dataset.
The model was presented in the paper TRIAGE: Dialectical Reasoning for Explainable Risk Prediction on Irregularly Sampled Medical Time Series with LLMs.
Each split was fine-tuned from Qwen/Qwen3-4B-Base and placed in its own split_N/ subfolder; per-split checkpoints were selected by Validation AUPRC over a 3-epoch SFT run.
Code, data, & training pipeline: https://github.com/HyeongWon-Jang/TRIAGE
Quick start
from transformers import AutoModelForCausalLM, AutoTokenizer
split = "split_1" # one of split_1 ... split_5
repo = "Hyeongwon/TRIAGE-4B-P12-SFT"
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=split)
model = 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.
Data
- Raw: PhysioNet Mortality Prediction Challenge 2012
- Processed (Raindrop, CC BY 4.0): figshare DOI
Further preprocessing and split-construction details are in the linked GitHub repository.
Framework versions
- Transformers: 4.57.3
- PyTorch: 2.6.0
- Datasets: 3.6.0
- Tokenizers: 0.22.2
License
Model checkpoints are released under CC BY-NC 4.0 (non-commercial). Datasets remain under their respective licenses.
Model tree for Hyeongwon/TRIAGE-4B-P12-SFT
Base model
Qwen/Qwen3-4B-Base