SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.18421 · 2024

BioMedLM: A 2.7B Parameter Language Model Trained On Biomedical Text

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.18421.json · badge: /api/ran/2403.18421.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
stanford-crfm/biomedlm canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
prepare_ctrl_input Ran
ran; our contract draft was wrong, not the code
stanford-crfm/biomedlm/finetune/textgen/gpt2/run_generation_batch.py
pointer only (licence: NONE) · get_code("a766a95b9fd5ee9c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, stanford-crfm/biomedlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_xlm_input Ran
ran; our contract draft was wrong, not the code
stanford-crfm/biomedlm/finetune/textgen/gpt2/run_generation_batch.py
pointer only (licence: NONE) · get_code("b7bf53f6b6b11a4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, stanford-crfm/biomedlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_xlnet_input Ran
ran; our contract draft was wrong, not the code
stanford-crfm/biomedlm/finetune/textgen/gpt2/run_generation_batch.py
pointer only (licence: NONE) · get_code("80844fa7cfa6e8d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, stanford-crfm/biomedlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_tf_weights_in_gpt_neo Not yet run
unverified (harvested, no recorded run)
stanford-crfm/biomedlm/finetune/utils/custom_modeling_gpt_neo.py
pointer only (licence: NONE) · get_code("df6cf1871503f5ed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, stanford-crfm/biomedlm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 1 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
prepare_ctrl_input 11 other papers
7 dated earlier, 4 later
1910.03771 (2019-10)
HuggingFace's Transformers: State-of-the-art Natural Language Processing
2009.14259 (2020-09)
Visually-Grounded Planning without Vision: Language Models Infer Detailed Plans from High-level Instructions
2106.06168 (2021-06)
Generate, Annotate, and Learn: NLP with Synthetic Text
and 8 more not named here
prepare_xlm_input 11 other papers
7 dated earlier, 4 later
1910.03771 (2019-10)
HuggingFace's Transformers: State-of-the-art Natural Language Processing
2009.14259 (2020-09)
Visually-Grounded Planning without Vision: Language Models Infer Detailed Plans from High-level Instructions
2106.06168 (2021-06)
Generate, Annotate, and Learn: NLP with Synthetic Text
and 8 more not named here
prepare_xlnet_input 8 other papers
4 dated earlier, 4 later
1910.03771 (2019-10)
HuggingFace's Transformers: State-of-the-art Natural Language Processing
2210.15097 (2022-10)
Contrastive Decoding: Open-ended Text Generation as Optimization
2305.01625 (2023-05)
Unlimiformer: Long-Range Transformers with Unlimited Length Input
and 5 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Models such as GPT-4 and Med-PaLM 2 have demonstrated impressive performance on a wide variety of biomedical NLP tasks. However, these models have hundreds of billions of parameters, are computationally expensive to run, require users to send their input data over the internet, and are trained on unknown data sources. Can smaller, more targeted models compete? To address this question, we build and release BioMedLM, a 2.7 billion parameter GPT-style autoregressive model trained exclusively on PubMed abstracts and full articles. When fine-tuned, BioMedLM can produce strong multiple-choice biomedical question-answering results competitive with much larger models, such as achieving a score of 57.3% on MedMCQA (dev) and 69.0% on the MMLU Medical Genetics exam. BioMedLM can also be fine-tuned to produce useful answers to patient questions on medical topics. This demonstrates that smaller models can potentially serve as transparent, privacy-preserving, economical and environmentally friendly foundations for particular NLP applications, such as in biomedicine. The model is available on the Hugging Face Hub: https://huggingface.co/stanford-crfm/BioMedLM.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.18421")
get_code_for_paper("2403.18421")
have("2403.18421")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.18421.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.18421.svg)](https://syntology.ai/paper/2403.18421)

Connect an agent — have() is free.