Holistic evaluation of language models for medical applications (HELM for medicine)
Project description
MedHELM
MedHELM
MedHELM is a multi-institutional effort to develop standardized, clinically grounded benchmarks for evaluating large language models in healthcare. While it builds on the HELM evaluation framework, MedHELM is independently developed through a broad collaboration spanning Stanford Medicine, HAI, Microsoft, and partners across the healthcare and research ecosystem.
The initiative focuses on real-world clinical tasks, emphasizing:
- Transparency
- Reproducibility
- Practical relevance for healthcare deployment
This framework includes the following features:
- Datasets and benchmarks in a standardized format (e.g. MMLU-Pro, GPQA, IFEval, WildBench)
- Models from various providers accessible through a unified interface (e.g. OpenAI models, Anthropic Claude, Google Gemini)
- Metrics for measuring various aspects beyond accuracy (e.g. efficiency, bias, toxicity)
- Web UI for inspecting individual prompts and responses
- Web leaderboard for comparing results across models and benchmarks
Documentation
Documentation: medhelm.org
Install & run (MedHELM library)
MedHELM uses the HELM core engine and adds medical benchmarks.
Getting started from a git clone (development)
Follow these steps in order. Skipping a step is a common cause of command not found: uv, ModuleNotFoundError: helm.benchmark.static_build, or bus error on Apple Silicon.
0. Install tools (once per machine)
uv (manages Python and the virtual environment):
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env # add uv to PATH; restart the terminal or add this to ~/.zshrc
uv --version
Node.js 18+ (only needed to build the web UI for helm-server):
# macOS (Homebrew): brew install node
# Or use fnm/nvm — see https://nodejs.org/
node --version
npm --version
You do not need to install Python separately: uv venv --python 3.12 downloads Python 3.12 for you.
1. Clone and enter the repository
git clone https://github.com/PacificAI/medhelm.git
cd medhelm
2. Create and activate a virtual environment
uv venv --python 3.12 .venv
source .venv/bin/activate
3. Install MedHELM (editable / development mode)
uv pip install -e .
4. Build the web UI (required before helm-server)
The React UI is not shipped inside the git clone; build it once:
cd helm-frontend
npm install
npm run build -- --outDir '../src/helm/benchmark/static_build' --emptyOutDir
cd ..
5. Run a quick benchmark and open the results
medhelm-run --run-entries "pubmed_qa:model=openai/gpt2,model_deployment=huggingface/gpt2" --suite my_med_test --max-eval-instances 2 --num-threads 1
helm-summarize --suite my_med_test -o ./benchmark_output
helm-server --suite my_med_test -o ./benchmark_output --port 8000
Open http://localhost:8000 in your browser (not 0.0.0.0). Press Ctrl-C in the terminal to stop the server.
Local Hugging Face models (e.g. gpt2) automatically use the best available PyTorch device: CUDA → Apple MPS → CPU.
Getting started from PyPI (no git clone)
If you only want to run benchmarks and view results — no local code changes:
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install medhelm
The PyPI package includes a pre-built web UI (no Node.js required). Then run the commands in step 5 below.
Optional tiers (summarization & gated)
The standard install (uv pip install -e . or uv pip install medhelm) covers PubMedQA, MedCalc-Bench, MedicationQA, and MedHallu. For clinical summarization or gated (Google Drive) scenarios, install the extra dependencies once:
# From a git clone (editable install):
uv pip install -e ".[summarization,gated]"
# From PyPI:
uv pip install "medhelm[summarization,gated]"
The summarization extra adds bert-score, rouge-score, and nltk (2–3 minute install). The gated extra adds gdown for MedQA / MedMCQA dataset downloads.
Standard tier (recommended to start)
Scenarios: PubMedQA, MedCalc-Bench, MedicationQA, MedHallu.
Included in the base install — no extra [summarization] or [gated] needed.
Quick test (small local model, 2 instances — runs in seconds):
medhelm-run --run-entries "pubmed_qa:model=openai/gpt2,model_deployment=huggingface/gpt2" --suite my_med_test --max-eval-instances 2 --num-threads 1
helm-summarize --suite my_med_test -o ./benchmark_output
helm-server --suite my_med_test -o ./benchmark_output --port 8000
Full example (better quality, 10 instances; needs more RAM/VRAM):
medhelm-run --run-entries "pubmed_qa:model=qwen/qwen2.5-7b-instruct,model_deployment=huggingface/qwen2.5-7b-instruct" --suite my_med_test --max-eval-instances 10
helm-summarize --suite my_med_test -o ./benchmark_output
helm-server --suite my_med_test -o ./benchmark_output --port 8000
Then open http://localhost:8000/ in your browser.
Clinical NLP tier ([summarization])
Scenarios: ACI-Bench (clinical transcripts; no extra data required), Patient-Edu (simplifying medical jargon), DischargeMe (hospital course summaries; requires PhysioNet credentials and a data_path).
Install (in addition to the base install):
# Git clone:
uv pip install -e ".[summarization]"
# PyPI:
uv pip install "medhelm[summarization]"
Quick test — ACI-Bench with gpt2, 2 instances (first run may take several minutes while metrics download):
medhelm-run --run-entries "aci_bench:model=openai/gpt2,model_deployment=huggingface/gpt2" --suite med_summaries --max-eval-instances 2 --num-threads 1
helm-summarize --suite med_summaries -o ./benchmark_output
helm-server --suite med_summaries -o ./benchmark_output --port 8000
Full example — ACI-Bench with a larger model:
medhelm-run --run-entries "aci_bench:model=qwen/qwen2.5-7b-instruct,model_deployment=huggingface/qwen2.5-7b-instruct" --suite med_summaries --max-eval-instances 5
helm-summarize --suite med_summaries -o ./benchmark_output
helm-server --suite med_summaries -o ./benchmark_output --port 8000
Notes:
- Prefer ACI-Bench for a first summarization test — it does not require external data files.
- DischargeMe is not a quick test; it needs a PhysioNet
data_pathargument in the run entry. - The first ACI-Bench run downloads evaluation assets (e.g. QAFactEval) and runs heavyweight metrics — expect minutes, not seconds.
- ACI-Bench uses an LLM jury for some scores; the default jury config targets hosted APIs. Local runs complete, but jury scores may be empty without API credentials.
Gated / licensing tier ([gated])
Adds gdown for scenarios that download datasets from Google Drive.
Scenarios: MedQA (USMLE/Board exams), MedMCQA (AIIMS/NEET exams).
Install (in addition to the base install):
# Git clone:
uv pip install -e ".[gated]"
# PyPI:
uv pip install "medhelm[gated]"
Quick test — MedQA with gpt2, 2 instances (downloads the dataset from Google Drive on first run):
medhelm-run --run-entries "med_qa:model=openai/gpt2,model_deployment=huggingface/gpt2" --suite board_exams --max-eval-instances 2 --num-threads 1
helm-summarize --suite board_exams -o ./benchmark_output
helm-server --suite board_exams -o ./benchmark_output --port 8000
Full example — MedQA with a larger model:
medhelm-run --run-entries "med_qa:model=qwen/qwen2.5-7b-instruct,model_deployment=huggingface/qwen2.5-7b-instruct" --suite board_exams --max-eval-instances 10
helm-summarize --suite board_exams -o ./benchmark_output
helm-server --suite board_exams -o ./benchmark_output --port 8000
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
command not found: uv |
uv not installed or not on PATH |
Install uv, then source $HOME/.local/bin/env |
ModuleNotFoundError: helm.benchmark.static_build |
Web UI not built (git clone only) | Build the web UI |
command not found: npm |
Node.js not installed | Install Node.js 18+ (only needed for helm-server after a git clone) |
zsh: bus error on Mac when running a local Hugging Face model |
PyTorch CPU crash on Apple Silicon | Use a build with MPS device support (CUDA → MPS → CPU); add --num-threads 1 |
Blank browser page at helm-server |
Wrong URL or UI not built | Open http://localhost:8000 (not 0.0.0.0); rebuild the UI if needed |
Missing gdown / Drive download errors |
Gated extra not installed | uv pip install -e ".[gated]" or uv pip install "medhelm[gated]" |
| Summarization import / metric errors | Summarization extra not installed | uv pip install -e ".[summarization]" or uv pip install "medhelm[summarization]" |
| Run runs out of memory | Model too large (e.g. Qwen 7B) | Use the quick test commands with gpt2 first |
Tips:
- Always run
helm-summarizeaftermedhelm-run, thenhelm-server. - On macOS, add
--num-threads 1tomedhelm-runif you see instability with local models. - Local Hugging Face models use the best available device: CUDA → Apple MPS → CPU.
Alternative: Using pip
If you prefer pip instead of uv:
python3 -m venv .venv
source .venv/bin/activate
pip install -e . # git clone
# pip install medhelm # PyPI
# pip install -e ".[summarization,gated]" # optional tiers (git clone)
Classic HELM commands
You can still use helm-run, helm-summarize, and helm-server; medhelm-run is an alias for helm-run.
After activating your environment:
medhelm-run --run-entries mmlu:subject=philosophy,model=openai/gpt2 --suite my-suite --max-eval-instances 10
helm-summarize --suite my-suite -o ./benchmark_output
helm-server --suite my-suite -o ./benchmark_output --port 8000
Quick Start (summary)
| Tier | Install | Scenarios |
|---|---|---|
| Standard | uv pip install -e . (repo) or uv pip install medhelm (PyPI) |
PubMedQA, MedCalc-Bench, MedicationQA, MedHallu |
| Summarization | uv pip install -e ".[summarization]" or uv pip install "medhelm[summarization]" |
ACI-Bench, Patient-Edu, DischargeMe (2–3 min install) |
| Gated | uv pip install -e ".[gated]" or uv pip install "medhelm[gated]" |
MedQA, MedMCQA (Google Drive) |
| All optional tiers | uv pip install -e ".[summarization,gated]" or uv pip install "medhelm[summarization,gated]" |
All of the above |
Quick tests (local gpt2, 2 instances): pubmed_qa (standard), aci_bench (summarization), med_qa (gated). Always run helm-summarize then helm-server after medhelm-run. See Install & run for full commands and Troubleshooting.
Goals & roadmap
MedHELM aims to be a new public repo with fewer dependencies, easier installation, and public documentation. We welcome feedback on the following:
- HealthBench: We are considering new subcategories to include HealthBench. Do you see value in adding HealthBench, and how would you use it?
- Non-gated alternatives: We provide 7 non-gated datasets (e.g. PubMedQA, MedCalc-Bench, MedicationQA, MedHallu, and others in the Standard and Summarization tiers) as free alternatives for the same kinds of tasks as gated benchmarks.
- Hospital & private data: We want to make it easier for hospital systems to contribute or add their own private datasets. If your institution is interested in running or contributing benchmarks, we’d like to hear from you.
Leaderboard
We maintain a medical leaderboard for comparing models on MedHELM benchmarks:
- MedHELM Leaderboard — PubMedQA, MedQA, MedMCQA, and other medical benchmarks.
To reproduce or extend results locally, see medhelm.org (Reproducing Leaderboards, MedHELM docs).
Citation
MedHELM builds on the Holistic Evaluation of Language Models framework. If you use this software in your research, please cite the MedHELM and HELM papers as below.
@Article{Bedi2026,
author={Bedi, Suhana and Cui, Hejie and Fuentes, Miguel and Unell, Alyssa and Wornow, Michael and Banda, Juan M. and Kotecha, Nikesh and Keyes, Timothy and Mai, Yifan and Oez, Mert and Qiu, Hao and Jain, Shrey and Schettini, Leonardo and Kashyap, Mehr and Fries, Jason Alan and Swaminathan, Akshay and Chung, Philip and Haredasht, Fateme Nateghi and Lopez, Ivan and Aali, Asad and Tse, Gabriel and Nayak, Ashwin and Vedak, Shivam and Jain, Sneha S. and Patel, Birju and Fayanju, Oluseyi and Shah, Shreya and Goh, Ethan and Yao, Dong-han and Soetikno, Brian and Reis, Eduardo and Gatidis, Sergios and Divi, Vasu and Capasso, Robson and Saralkar, Rachna and Chiang, Chia-Chun and Jindal, Jenelle and Pham, Tho and Ghoddusi, Faraz and Lin, Steven and Chiou, Albert S. and Hong, Hyo Jung and Roy, Mohana and Gensheimer, Michael F. and Patel, Hinesh and Schulman, Kevin and Dash, Dev and Char, Danton and Downing, Lance and Grolleau, Francois and Black, Kameron and Mieso, Bethel and Zahedivash, Aydin and Yim, Wen-wai and Sharma, Harshita and Lee, Tony and Kirsch, Hannah and Lee, Jennifer and Ambers, Nerissa and Lugtu, Carlene and Sharma, Aditya and Mawji, Bilal and Alekseyev, Alex and Zhou, Vicky and Kakkar, Vikas and Helzer, Jarrod and Revri, Anurang and Bannett, Yair and Daneshjou, Roxana and Chen, Jonathan and Alsentzer, Emily and Morse, Keith and Ravi, Nirmal and Aghaeepour, Nima and Kennedy, Vanessa and Chaudhari, Akshay and Wang, Thomas and Koyejo, Sanmi and Lungren, Matthew P. and Horvitz, Eric and Liang, Percy and Pfeffer, Michael A. and Shah, Nigam H.},
title={Holistic evaluation of large language models for medical tasks with MedHELM},
journal={Nature Medicine},
year={2026},
month={Mar},
day={01},
volume={32},
number={3},
pages={943-951},
abstract={While large language models (LLMs) achieve near-perfect scores on medical licensing exams, these evaluations inadequately reflect the complexity and diversity of real-world clinical practice. Here we introduce MedHELM, an extensible evaluation framework with three contributions. First, a clinician-validated taxonomy organizing medical AI applications into five categories that mirror real clinical tasks---clinical decision support (diagnostic decisions, treatment planning), clinical note generation (visit documentation, procedure reports), patient communication (education materials, care instructions), medical research (literature analysis, clinical data analysis) and administration (scheduling, workflow coordination). These encompass 22 subcategories and 121 specific tasks reflecting daily medical practice. Second, a comprehensive benchmark suite of 37 evaluations covering all subcategories. Third, systematic comparison of nine frontier LLMs---Claude 3.5 Sonnet, Claude 3.7 Sonnet, DeepSeek R1, Gemini 1.5 Pro, Gemini 2.0 Flash, GPT-4o, GPT-4o mini, Llama 3.3 and o3-mini---using an automated LLM-jury evaluation method. Our LLM-jury uses multiple AI evaluators to assess model outputs against expert-defined criteria. Advanced reasoning models (DeepSeek R1, o3-mini) demonstrated superior performance with win rates of 66{\%}, although Claude 3.5 Sonnet achieved comparable results at 15{\%} lower computational cost. These results not only highlight current model capabilities but also demonstrate how MedHELM could enable evidence-based selection of medical AI systems for healthcare applications.},
issn={1546-170X},
doi={10.1038/s41591-025-04151-2},
url={https://doi.org/10.1038/s41591-025-04151-2}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file medhelm-0.7.0.tar.gz.
File metadata
- Download URL: medhelm-0.7.0.tar.gz
- Upload date:
- Size: 18.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b23985228dcdfe50d55e340afdf6b1e427b6935a3d899edb20d1f667645e9316
|
|
| MD5 |
3c732297cc7901700b336b552dc2739e
|
|
| BLAKE2b-256 |
306c9d900a6cba5e3f8172684c3d29996bc2fa9a9e916e91fe27d51bebdff88c
|
Provenance
The following attestation bundles were made for medhelm-0.7.0.tar.gz:
Publisher:
publish.yml on PacificAI/medhelm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medhelm-0.7.0.tar.gz -
Subject digest:
b23985228dcdfe50d55e340afdf6b1e427b6935a3d899edb20d1f667645e9316 - Sigstore transparency entry: 1922388529
- Sigstore integration time:
-
Permalink:
PacificAI/medhelm@d300eaea55c36fee57102521c19252ca099e9dd9 -
Branch / Tag:
refs/tags/0.7.0 - Owner: https://github.com/PacificAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d300eaea55c36fee57102521c19252ca099e9dd9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file medhelm-0.7.0-py3-none-any.whl.
File metadata
- Download URL: medhelm-0.7.0-py3-none-any.whl
- Upload date:
- Size: 9.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fffbef72ea5a97b86adff180eeacd8fdef8637032697b48a2436591105426e5d
|
|
| MD5 |
a5cadc0d6f51b09ab077e6e48358d07e
|
|
| BLAKE2b-256 |
d30e33302e38807ac1b34a565f0da8e3aa389f207766013f6f909f4babdf4947
|
Provenance
The following attestation bundles were made for medhelm-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on PacificAI/medhelm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medhelm-0.7.0-py3-none-any.whl -
Subject digest:
fffbef72ea5a97b86adff180eeacd8fdef8637032697b48a2436591105426e5d - Sigstore transparency entry: 1922388720
- Sigstore integration time:
-
Permalink:
PacificAI/medhelm@d300eaea55c36fee57102521c19252ca099e9dd9 -
Branch / Tag:
refs/tags/0.7.0 - Owner: https://github.com/PacificAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d300eaea55c36fee57102521c19252ca099e9dd9 -
Trigger Event:
release
-
Statement type: