Run this model with HF Jobs

Run EPFLiGHT/Gemma-3-27B-MeditronFO on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/EPFLiGHT/Gemma-3-27B-MeditronFO. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/EPFLiGHT/Gemma-3-27B-MeditronFO on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/EPFLiGHT/Gemma-3-27B-MeditronFO. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/EPFLiGHT/Gemma-3-27B-MeditronFO. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Gemma-3-27B-MeditronFO

👋 Join our LiGHT community.
📖 Check out the MeditronFO blog and MeditronFO preprint.
🔜 If you are a clinician join the MOOVE initiative here.

[Website] [Hugging Face] [Preprint] [GitHub] [Dataset]
License: gemma | Authors: LiGHT

We're introducing Gemma-3-27B-MeditronFO, our latest open-weight medical specialist LLM, medical specialization of Gemma-3-27B-IT on the MeditronFO Corpus. This model is part of the MeditronFO family — the first end-to-end auditable pipeline for clinical LLMs, with open weights, open data, open training recipe, and clinician-vetted corpus construction.

  • Part of the MeditronFO family: End to end fully open clinical LLMs
  • Preferred over MedGemma-27B in 57.1% of comparisons on AutoMOOVE, the clinician-validated LLM-judge evaluation (three-judge majority, 516 clinician-written vignettes)
  • Scores higher on HealthBench than MedGemma-27B (56.2 vs 54.8), trained on fully open data

Benchmark

Accuracy (%) on four multiple-choice medical benchmarks (greedy decoding) and score (%) on HealthBench (all 5,000 conversations, Gemma-4-31B grader). See the paper for the full evaluation details, confidence intervals and the AutoMOOVE results.

Benchmark Gemma-3-27B-IT Gemma-3-27B-MeditronFO Δ
MedMCQA 64.5 63.7 −0.8
MedQA 76.9 78.2 +1.3
PubMedQA 76.5 76.7 +0.2
MedXpertQA 16.9 18.4 +1.5
HealthBench 55.4 56.2 +0.8
Average (5) 58.02 58.65 +0.63

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "EPFLiGHT/Gemma-3-27B-MeditronFO"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "user", "content": "A 62-year-old woman presents with a three-day history of dyspnea on exertion and a productive cough. What is the differential diagnosis?"},
]
inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=8192, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Training

  • Base model: Gemma-3-27B-IT
  • Corpus: MeditronFO corpus, 533,888 examples: Curated QA (195.5k, seven public medical QA datasets), Synthetic Curated QA (184.5k), Guidelines QA (129.8k, generated from 14,192 clinical practice guidelines) and Synthetic vignettes (24.0k, modelled on clinician-written MOOVE vignettes). Every answer is written by gpt-oss-120b with rejection sampling (pass@8; multiple-choice answers must match the gold label), with generation prompts co-authored by four clinicians
  • Decontamination: two-stage n-gram decontamination against all evaluation benchmarks and the AutoMOOVE test set (4,197 rows removed)
  • Recipe: 2 epochs, learning rate 1e-6 with cosine decay and 10% warmup, effective batch 128 sequences of 8,192 packed tokens, AdamW, β2 0.95, weight decay 0.1, activation offloading, seed 42
  • Framework: Axolotl with FSDP v2, bf16

Full hyperparameters are in the training appendix of the paper.

Compute & footprint

The training was done on 16 nodes of 4 NVIDIA GH200 GPUs for 3 h 25 min (219 GPU-hours) on the Alps supercomputer of the CSCS Swiss National Supercomputing Centre. Our trainings have a carbon neutral footprint as the CSCS data center is carbon neutral (CSCS energy efficiency).

Limitations & intended use

MeditronFO can produce text on a variety of topics, but the generated content may not always be factually accurate, logically consistent, or free from biases present in the training data. MeditronFO has been trained to be specialised for Medicine and is intended to be used for Medicine related tasks evaluation. These models should be used as assistive tools rather than definitive sources of information. Users should always verify important information and critically evaluate any generated content.

Citation

If you find MeditronFO useful in your research, please cite our preprint:

@misc{theimerlienhard2026meditronfoauditablepipelineclinical,
  title         = {MeditronFO: An Auditable Pipeline for Clinical LLMs},
  author        = {Xavier Theimer-Lienhard and Vadim El Guedj and Mushtaha El-Amin and Fay Elhassan and Sahaj Vaidya and Kristina Keitel and David Sasu and Lars Klein and Mary-Anne Hartley},
  year          = {2026},
  eprint        = {2605.16215},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url           = {https://arxiv.org/abs/2605.16215}
}

Contact

Please use the community tab for any discussions or issue related to this model. Questions related to the project can be sent to xavier.theimer-lienhard@epfl.ch or mary-anne.hartley@epfl.ch.

Downloads last month
851
Safetensors
Model size
29B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for EPFLiGHT/Gemma-3-27B-MeditronFO

Finetuned
(457)
this model
Quantizations
2 models

Dataset used to train EPFLiGHT/Gemma-3-27B-MeditronFO

Collection including EPFLiGHT/Gemma-3-27B-MeditronFO

Paper for EPFLiGHT/Gemma-3-27B-MeditronFO