Example Prompts & Expected Outputs
Example 1: Multi-Drug Toxicity Detection
Prompt:
You are an expert biomedical information extraction system. Extract all mentioned drugs and adverse drug events (ADEs) from the clinical narrative as JSON.
Clinical Narrative:
"A 64-year-old female patient with chronic atrial fibrillation presented with severe bradycardia, visual yellow halos, and nausea after increasing her digoxin dosage to 0.25 mg daily. Electrocardiogram confirmed digitalis toxicity. Concurrently, she had been prescribed amiodarone two weeks earlier."
Model Output:
{
"drugs": ["digoxin", "amiodarone"],
"adverse_drug_events": ["severe bradycardia", "visual yellow halos", "nausea"]
}
Example 2: Negative Control (No Adverse Effects)
Prompt:
You are an expert biomedical information extraction system. Extract all mentioned drugs and adverse drug events (ADEs) from the clinical narrative as JSON.
Clinical Narrative:
"The patient was initiated on metformin 500 mg twice daily for type 2 diabetes mellitus and reported good glycemic control without any adverse symptoms."
Model Output:
{
"drugs": ["metformin"],
"adverse_drug_events": []
}
Direct Ingestion with vLLM
vllm serve andreasmartin/apertus-1.5-8b-biomedical-ade --tensor-parallel-size 1 --gpu-memory-utilization 0.9
Direct Python Ingestion
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("andreasmartin/apertus-1.5-8b-biomedical-ade")
model = AutoModelForCausalLM.from_pretrained("andreasmartin/apertus-1.5-8b-biomedical-ade", device_map="auto")
Training Configuration & Metrics