Osler-9B
a calibrated medical model for probabilistic analysis
2 min readupdated
Osler-9B is a specialized medical decision-making model based on vllm-sr/d3-flash (with about 8.39B parameters), created by developer abhinand. Instead of generating text, it analyzes patient status and a list of options, returning probabilities for each choice in a single prefill pass (context pre-computation stage). The model uses the Qwen3_5Model architecture with attention-only LoRA (a small add-on over the base model for adaptation) and a special option reader. It is useful for researchers and developers of medical systems to accurately evaluate clinical options without the risk of text hallucinations.
Key features
- Non-generative approach: outputs response option probabilities in a single prefill pass without text generation.
- High accuracy in clinical benchmarks: leads on the Pareto front among models under 10B parameters.
- Data security: the repository does not contain MIMIC source texts or training datasets.
- Operating efficiency: peak VRAM consumption is about 17.32 GB at a batch size of 1.
What you can do
- Integrate into analytical medical systems to evaluate probabilities of diagnoses or treatment options.
- Perform automated audits of clinical records and medical tests with fixed-choice answers.
- Set up prefill-pass data processing pipelines using question-type calibration.
Example
import torch
from transformers import AutoModel
from meddecide.distill.d3_train import D3Student, prepare_rows
snapshot = 'vllm-sr/d3-flash'
runtime = AutoModel.from_pretrained(snapshot, trust_remote_code=True, dtype=torch.bfloat16,
device='cuda:0').runtime
student = D3Student(runtime, lora_r=32, lora_alpha=32).to(runtime.device)
state = torch.load('weights/osler_9b_rc0.pt', map_location=student.device)['model']
student.load_checkpoint_state(state) # LoRA + [255, 4096] option-code readout
student.eval()Read more
Details• Parameters: 8.39B, Apache-2.0 license
• mr_verdict benchmark metrics: accuracy 0.9016 (+0.1665 gain over base)
• Hardware requirements: peak VRAM 17.32 GB (batch 1)
• Limitations: not intended for independent clinical decisions, requires physician oversight










Comments