30% OFF Pro PlanClaim
Medical AI Background

BioGPT

Microsoft's Advanced Biomedical Language Model

Medical AI chat by Dr7.ai

Experience the power of BioGPT, Microsoft's cutting-edge biomedical language model designed for medical text processing, literature analysis, and comprehensive biomedical NLP tasks.

🧬
BioGPT
Biomedical text generation model
347M
parameters (BioGPT-Large: 1.5B)
Microsoft Research
Open weights · MIT license

Try BioGPT Interactive Demo

Experience Microsoft's advanced biomedical language model for medical text processing and analysis

Unlock Full BioGPT Potential

Get unlimited access to Microsoft's advanced biomedical language model with enhanced features, priority support, and comprehensive biomedical text processing capabilities.

10+
Advanced Models
24/7
Expert Support
∞
Unlimited Usage

What is BioGPT?

BioGPT is a generative pre-trained Transformer for biomedical text, developed by Microsoft Research (Luo et al., Briefings in Bioinformatics, 2022). It uses the GPT-2 medium architecture (24 layers, 1024 hidden size, 16 attention heads) with 347 million parameters and its own vocabulary learned from biomedical text. You may also see it written as Bio GPT, BioGPT AI or Microsoft BioGPT; its larger sibling is BioGPT-Large.

BioGPT demonstrates superior performance on biomedical text generation, question answering, and literature analysis tasks. It has been trained on millions of biomedical papers and clinical texts to understand medical terminology and concepts.

The scaled-up BioGPT-Large (1.5B parameters, GPT-2 XL architecture) reaches 81.0% accuracy on PubMedQA after fine-tuning. Code and weights are MIT-licensed; the official GitHub repository has about 4.5k stars (October 2026), and the models are published on Hugging Face as microsoft/biogpt, microsoft/BioGPT-Large and microsoft/BioGPT-Large-PubMedQA.

🚀

Release & status

Released by Microsoft Research in October 2022 (arXiv 2210.10341)

≈4.5k
GitHub stars (October 2026)

The Hugging Face weights were last updated in February 2023; no newer BioGPT version has been published in the official repository since.

Key Features

What the model was designed and evaluated for

Core Capabilities

  • ✓Biomedical text generation (e.g., fluent descriptions of drugs, genes and diseases)
  • ✓End-to-end relation extraction: chemical–disease, drug–target and drug–drug interactions
  • ✓Question answering over PubMed abstracts (PubMedQA)
  • ✓Biomedical document classification (Hallmarks of Cancer)
  • ✓In-domain vocabulary learned from PubMed text
  • ✓Fine-tunable for new biomedical text tasks

Performance Benchmarks

Fine-tuned results reported by Microsoft in the BioGPT paper (Luo et al., 2022) — not measured by Dr7.ai

BC5CDR
Chemical–disease relation extraction (end-to-end F1)
44.98
KD-DTI
Drug–target interaction extraction (F1)
38.42
DDI
Drug–drug interaction extraction (F1)
40.76
PubMedQA
Biomedical question answering (accuracy)
78.2%
PubMedQA · BioGPT-Large
Same task with the 1.5B model (accuracy)
81.0%
HoC
Hallmarks of Cancer document classification (F1)
85.12

Use Cases

🔬

Biomedical Research

Generate literature-style descriptions of biomedical terms and mine PubMed abstracts for entities and relationships.

🏥

Biomedical QA research

Fine-tune for question answering over research abstracts (PubMedQA). It is a research model, not a clinical decision-support tool.

💊

Drug Discovery

Extract drug–target and drug–drug interactions from published literature to support curation and hypothesis generation.

How to Use BioGPT

Run Microsoft's BioGPT with Hugging Face or locally, or try Dr7's own biomedical AI chat.

1

Access BioGPT

The Hugging Face demo Spaces linked from Microsoft's official README (BioGPT-Large text generation and PubMedQA question answering) showed a runtime error when we checked on 20 October 2026, so there is currently no working official online demo. You can try the biomedical chat on this page (Dr7.ai's own assistant, not the original checkpoint) or run the model yourself as shown below.

2

Hugging Face (transformers)

BioGPT is built into the Hugging Face transformers library. Install transformers, torch and sacremoses (required by BioGptTokenizer), then load the model:

# pip install transformers torch sacremoses
from transformers import BioGptTokenizer, BioGptForCausalLM, pipeline

tokenizer = BioGptTokenizer.from_pretrained("microsoft/biogpt")
model = BioGptForCausalLM.from_pretrained("microsoft/biogpt")
generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
print(generator("COVID-19 is", max_new_tokens=40)[0]["generated_text"])

•microsoft/biogpt — base model, 347M parameters

•microsoft/BioGPT-Large — 1.5B parameters (~6.3 GB fp32 weights)

•microsoft/BioGPT-Large-PubMedQA — fine-tuned for PubMedQA

•Swap the model ID in the snippet to use the larger checkpoints

3

Locally with the original code

Microsoft's GitHub repository (microsoft/BioGPT) provides the original fairseq implementation and downloadable checkpoints, including models fine-tuned for each paper task.

•Fine-tuned checkpoints for BC5CDR, KD-DTI, DDI, HoC and PubMedQA

•Original setup pins PyTorch 1.12, Python 3.10 and fairseq 0.12

•Needs Moses and fastBPE for tokenization

•A GPU is recommended, especially for BioGPT-Large

BioGPT is not a diagnosis chatbot

BioGPT is a biomedical text generation and mining model: it continues literature-style text and performs well after task-specific fine-tuning, but it was not trained to hold a conversation or to interpret your symptoms, lab results or images. For a structured AI report on symptoms, a lab report or a medical image, use Dr7.ai's AI medical diagnosis tool.

Open AI medical diagnosis

Important Considerations

Domain Expertise Required

BioGPT outputs should be validated by domain experts, especially for clinical or research applications.

Task-Specific Fine-tuning

Consider fine-tuning BioGPT on your specific biomedical domain or task for optimal performance.

BioGPT vs other biomedical language models

BioGPT, BioGPT-Large, BioMedLM, PubMedBERT and PMC-LLaMA at a glance

ModelParametersTraining corpusLicensePubMedQA (accuracy)
BioGPT347M15M PubMed titles + abstractsMIT78.2%
BioGPT-Large1.5BPubMedMIT81.0%
BioMedLM2.7BPubMed abstracts + full articles (from The Pile)BigScience BLOOM RAIL 1.074.4%
PubMedBERT~110M (BERT-base)PubMed abstracts (one variant adds PubMed Central full text)MIT55.8%
PMC-LLaMA 13B13BLLaMA-13B + 4.8M biomedical papers + 30K medical textbooksOpenRAIL (Hugging Face card); LLaMA-based77.9%

Scores come from each model's own paper (PubMedBERT from the BioGPT paper's comparison) under different setups — fine-tuning vs instruction tuning — so treat them as indicative, not a head-to-head benchmark.

Frequently Asked Questions

Common questions about BioGPT

Is BioGPT free?

Yes. Microsoft released BioGPT's code and model weights under the MIT license, which also covers the pre-trained models, so you can download and run BioGPT and BioGPT-Large free of charge, including for commercial use. Running it yourself only costs your own compute.

Can I use BioGPT online?

Not through an official hosted service. Microsoft provides no hosted BioGPT app, and the Hugging Face demo Spaces linked from its README showed a runtime error when checked on 20 October 2026. You can run the model yourself from Hugging Face, or try the biomedical chat on this page, which is Dr7.ai's own assistant rather than the original BioGPT checkpoint.

BioGPT vs ChatGPT: which is better for biomedical text?

They do different jobs. BioGPT is a small model (347M; 1.5B for BioGPT-Large) pre-trained only on PubMed abstracts and meant to be fine-tuned for specific tasks such as relation extraction, PubMedQA or document classification; it can run on your own hardware. It is not instruction-tuned for chat. ChatGPT is a general-purpose conversational assistant that is far better at following instructions and explaining things, but it is not specialised or locally fine-tunable in the same way.

How do I run BioGPT from Hugging Face?

Install transformers, torch and sacremoses, then load BioGptTokenizer and BioGptForCausalLM from "microsoft/biogpt" (or "microsoft/BioGPT-Large") and generate text, for example with the transformers text-generation pipeline. The code snippet in the "How to use BioGPT" section above shows the minimal version.

What is BioGPT-Large?

BioGPT-Large is the scaled-up version of BioGPT, built on the GPT-2 XL architecture with 1.5 billion parameters. Fine-tuned, it reaches 81.0% accuracy on PubMedQA (vs 78.2% for the 347M BioGPT); that fine-tuned model is published as microsoft/BioGPT-Large-PubMedQA. Both are MIT-licensed on Hugging Face.

How accurate is BioGPT on biomedical benchmarks?

In the BioGPT paper, fine-tuned BioGPT scored 44.98% F1 on BC5CDR, 38.42% on KD-DTI and 40.76% on DDI end-to-end relation extraction, 78.2% accuracy on PubMedQA and 85.12% F1 on HoC document classification. These are task-specific fine-tuned results; outputs should still be checked by domain experts.

Can BioGPT be used for clinical applications?

BioGPT is a research model trained on published literature, not on clinical records, and it has not been validated for patient care. It can support research workflows such as literature mining, but it should not replace clinical judgment or be used to make autonomous clinical decisions.