Holistic evaluation of language models for medical applications (HELM for medicine)
Project description
MedHELM
Holistic Evaluation of Language Models (HELM) is an open source Python framework created by the Center for Research on Foundation Models (CRFM) at Stanford for holistic, reproducible and transparent evaluation of foundation models, including large language models (LLMs) and multimodal models. 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. Install from PyPI:
Standard (recommended to start)
Scenarios: PubMedQA, MedCalc-Bench, MedicationQA, MedHallu.
pip install medhelm
# or with uv:
uv pip install medhelm
Run a benchmark:
uv run medhelm-run --run-entries "pubmed_qa:model=huggingface/qwen2.5-7b" --suite my_med_test --max-eval-instances 10
uv run helm-summarize --suite my_med_test
uv run helm-server --suite my_med_test
Then open http://localhost:8000/ in your browser.
Clinical NLP tier ([summarization])
Adds heavy libraries (bert-score, rouge-score, nltk). Install can take 2–3 minutes.
Scenarios: DischargeMe (hospital course summaries), ACI-Bench (clinical transcripts), Patient-Edu (simplifying medical jargon).
pip install "medhelm[summarization]"
# or: uv pip install "medhelm[summarization]"
Example:
uv run medhelm-run --run-entries "discharge_summaries:model=huggingface/qwen2.5-7b" --suite med_summaries --max-eval-instances 5
uv run helm-summarize --suite med_summaries
uv run helm-server --suite med_summaries
Gated / licensing tier ([gated])
Adds gdown for scenarios that use Google Drive. Install can also take longer.
Scenarios: MedQA (USMLE/Board exams), MedMCQA (AIIMS/NEET exams).
pip install "medhelm[gated]"
# or: uv pip install "medhelm[gated]"
Example:
uv run medhelm-run --run-entries "med_qa:model=huggingface/qwen2.5-7b" --suite board_exams --max-eval-instances 10
uv run helm-summarize --suite board_exams
uv run helm-server --suite board_exams
Classic HELM commands
You can still use helm-run, helm-summarize, and helm-server; medhelm-run is an alias for helm-run.
helm-run --run-entries mmlu:subject=philosophy,model=openai/gpt2 --suite my-suite --max-eval-instances 10
helm-summarize --suite my-suite
helm-server --suite my-suite
Quick Start (summary)
| Tier | Install | Scenarios |
|---|---|---|
| Standard | pip install medhelm or uv pip install medhelm |
PubMedQA, MedCalc-Bench, MedicationQA, MedHallu |
| Summarization (Clinical NLP tier) | pip install "medhelm[summarization]" |
DischargeMe, ACI-Bench, Patient-Edu (2–3 min install; bert-score, rouge-score, nltk) |
| Gated (licensing tier) | pip install "medhelm[gated]" |
MedQA, MedMCQA (Drive; gdown) |
Run: uv run medhelm-run --run-entries "<scenario>:model=<model>" --suite <name> --max-eval-instances <n> then helm-summarize and helm-server. See medhelm.org for full docs.
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.
Leaderboards
We maintain official leaderboards with results from evaluating recent models on notable benchmarks using this framework. Our current flagship leaderboards are:
We also maintain leaderboards for a diverse range of domains (e.g. medicine, finance) and aspects (e.g. multi-linguality, world knowledge, regulation compliance). Refer to the HELM website for a full list of leaderboards.
Papers
The HELM framework was used in the following papers for evaluating models.
- Holistic Evaluation of Language Models - paper, leaderboard
- Holistic Evaluation of Vision-Language Models (VHELM) - paper, leaderboard, documentation
- Holistic Evaluation of Text-To-Image Models (HEIM) - paper, leaderboard, documentation
- Image2Struct: Benchmarking Structure Extraction for Vision-Language Models - paper
- Enterprise Benchmarks for Large Language Model Evaluation - paper, documentation
- The Mighty ToRR: A Benchmark for Table Reasoning and Robustness - paper, leaderboard
- Reliable and Efficient Amortized Model-based Evaluation - paper, documentation
- MedHELM - paper in progress, leaderboard, documentation
- Holistic Evaluation of Audio-Language Models - paper, leaderboard
The HELM framework can be used to reproduce the published model evaluation results from these papers. To get started, refer to the documentation links above for the corresponding paper, or the Reproducing Leaderboards documentation on medhelm.org.
Citation
If you use this software in your research, please cite the Holistic Evaluation of Language Models paper as below.
@article{
liang2023holistic,
title={Holistic Evaluation of Language Models},
author={Percy Liang and Rishi Bommasani and Tony Lee and Dimitris Tsipras and Dilara Soylu and Michihiro Yasunaga and Yian Zhang and Deepak Narayanan and Yuhuai Wu and Ananya Kumar and Benjamin Newman and Binhang Yuan and Bobby Yan and Ce Zhang and Christian Alexander Cosgrove and Christopher D Manning and Christopher Re and Diana Acosta-Navas and Drew Arad Hudson and Eric Zelikman and Esin Durmus and Faisal Ladhak and Frieda Rong and Hongyu Ren and Huaxiu Yao and Jue WANG and Keshav Santhanam and Laurel Orr and Lucia Zheng and Mert Yuksekgonul and Mirac Suzgun and Nathan Kim and Neel Guha and Niladri S. Chatterji and Omar Khattab and Peter Henderson and Qian Huang and Ryan Andrew Chi and Sang Michael Xie and Shibani Santurkar and Surya Ganguli and Tatsunori Hashimoto and Thomas Icard and Tianyi Zhang and Vishrav Chaudhary and William Wang and Xuechen Li and Yifan Mai and Yuhui Zhang and Yuta Koreeda},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2023},
url={https://openreview.net/forum?id=iO4LZibEqW},
note={Featured Certification, Expert Certification}
}
Project details
Release history Release notifications | RSS feed
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.5.14.tar.gz.
File metadata
- Download URL: medhelm-0.5.14.tar.gz
- Upload date:
- Size: 8.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80421080df8bf3e6db9bcbf094c1bc690f1fea70ef3c88abea1086b25ceadc30
|
|
| MD5 |
2178e12ebd7f8f2b6b39def5492f2d57
|
|
| BLAKE2b-256 |
d0a12c8e81450246f86473a44d01222852c8ff7c5d8d6b46f7578536a1d967c4
|
Provenance
The following attestation bundles were made for medhelm-0.5.14.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.5.14.tar.gz -
Subject digest:
80421080df8bf3e6db9bcbf094c1bc690f1fea70ef3c88abea1086b25ceadc30 - Sigstore transparency entry: 1085469241
- Sigstore integration time:
-
Permalink:
PacificAI/medhelm@3d2d64bf478178b64fcdd5e05d6481a4798deda6 -
Branch / Tag:
refs/tags/0.5.14 - Owner: https://github.com/PacificAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3d2d64bf478178b64fcdd5e05d6481a4798deda6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file medhelm-0.5.14-py3-none-any.whl.
File metadata
- Download URL: medhelm-0.5.14-py3-none-any.whl
- Upload date:
- Size: 8.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0bfe51dbd0d0a610f5faaba2c6f181383b843e5f33f3af594f8dd10c851c507
|
|
| MD5 |
61fda06251409822508033b62e77b772
|
|
| BLAKE2b-256 |
5cb71a298648346dc5a8a536853969d4e9d72ef3699829166d9fa22b6382d3d0
|
Provenance
The following attestation bundles were made for medhelm-0.5.14-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.5.14-py3-none-any.whl -
Subject digest:
d0bfe51dbd0d0a610f5faaba2c6f181383b843e5f33f3af594f8dd10c851c507 - Sigstore transparency entry: 1085469294
- Sigstore integration time:
-
Permalink:
PacificAI/medhelm@3d2d64bf478178b64fcdd5e05d6481a4798deda6 -
Branch / Tag:
refs/tags/0.5.14 - Owner: https://github.com/PacificAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3d2d64bf478178b64fcdd5e05d6481a4798deda6 -
Trigger Event:
release
-
Statement type: