Model reference · open weights
BioMedLM is an open-weight language model from stanford-crfm. BioMedLM (BF16) weighs 10.7 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the stanford-crfm/BioMedLM model card, 2026-10-01
What it is
| Released by | stanford-crfm |
|---|---|
| Released | 2022-12-14 |
| VRAM | 10.7 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 1K each | |||
| RTX 3060 12 GB | 993 | 11.6 GB | |
| RTX 4060 Ti 16 GB | 12 | all 1K | 15.4 GB |
| RTX 3090 24 GB | 36 | all 1K | 23.4 GB |
| RTX 4090 24 GB | 35 | all 1K | 23.4 GB |
| RTX 5090 32 GB | 58 | all 1K | 31.0 GB |
| L40S 48 GB | 97 | all 1K | 44.0 GB |
| A100 80 GB | 199 | all 1K | 78.2 GB |
| H100 80 GB | 190 | all 1K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 237 | all 1K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 277 | all 1K | 107 GB |
| H200 141 GB | 369 | all 1K | 138 GB |
| B200 180 GB | 481 | all 1K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 33 | all 1K | 11.6 GB a card |
| Requests at once | 1K tokens each |
|---|---|
| 1 | 11.6 GB |
| 5 | 13.0 GB |
| 8 | 14.0 GB |
| 16 | 16.7 GB |
| 32 | 22.0 GB |
| 64 | 32.8 GB |
One card, with vLLM's small-card settings.
From the model card
Note: This model was previously known as PubMedGPT 2.7B, but we have changed it due to a request from the NIH which holds the trademark for "PubMed".
Paper: BioMedLM: A 2.7B Parameter Language Model Trained On Biomedical Text
BioMedLM 2.7B is new language model trained exclusively on biomedical abstracts and papers from The Pile. This GPT-style model can achieve strong results on a variety of biomedical NLP tasks, including a new state of the art performance of 50.3% accuracy on the MedQA biomedical question answering task.
As an autoregressive language model, BioMedLM 2.7B is also capable of natural language generation. However, we have only begun to explore the generation capabilities and limitations of this model, and we emphasize that this model’s generation capabilities are for research purposes only and not suitable for production. In releasing this model, we hope to advance both the development of biomedical NLP applications and best practices for responsibly training and utilizing domain-specific language models; issues of reliability, truthfulness, and explainability are top of mind for us.
This model was a joint collaboration of Stanford CRFM and MosaicML.
BioMedLM 2.7B is new language model trained exclusively on biomedical abstracts and papers from The Pile. This GPT-style model can achieve strong results on a variety of biomedical NLP tasks, including a new state of the art performance of 50.3% accuracy on the MedQA biomedical question answering task.
As an autoregressive language model, BioMedLM 2.7B is also capable of natural language generation. However, we have only begun to explore the generation capabilities and limitations of this model, and we emphasize that this model’s generation capabilities are for research purposes only and not suitable for production. In releasing this model, we hope to advance both the development of biomedical NLP applications and best practices for responsibly training and utilizing domain-specific language models; issues of reliability, truthfulness, and explainability are top of mind for us.
This model was a joint collaboration of Stanford CRFM and MosaicML.
This model is licensed under the terms of BigScience Open RAIL-M license used for BLOOM. Please note that, among other restrictions, this license forbids use of the model (or derivatives thereof) "To provide medical advice and medical results interpretation." If you are concerned that your use case would follow under the "letter" of this restriction, but not the "spirit," you can contact us to discuss.
It is possible to use this model to generate text, which is useful for experimentation and understanding its capabilities. It should not be directly used for production or work that may directly impact people.
The main way we have used this model is finetuning for downstream question answering tasks, and we recommend using this model that way.
We do not recommend using this model for natural language generation in a production environment, finetuned or otherwise.
Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
While this model is capable of generating natural language text, we have only begun to explore this capability and its limitations. Understanding these limitations is especially important in a domain like medicine. Therefore, we strongly recommend against using this model in production for natural language generation.
This model was trained on the Pubmed Abstracts and Full Text from The Pile.
The model was trained on MosaicML Cloud, a platform designed for large workloads like LLMs. Using the Composer training library and PyTorch FSDP, it was easy to enable multi-node training across 128 A100-40GB GPUs, and the total run was completed in ~6.25 days. The model was trained with batch size=1024 and sequence length=1024 for 300B tokens using Decoupled AdamW with the following settings:
| lr | 1.6e-4 |
| eps | 1e-8 |
| betas | [0.9, 0.95] |
| weight decay | 1.6e-5 |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.