
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.
Experience Microsoft's advanced biomedical language model for medical text processing and analysis
Experience Biomedical AI
Have a lab report, X-ray or skin photo? Get a full AI analysis.
Upload imageGet unlimited access to Microsoft's advanced biomedical language model with enhanced features, priority support, and comprehensive biomedical text processing capabilities.
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.
Released by Microsoft Research in October 2022 (arXiv 2210.10341)
The Hugging Face weights were last updated in February 2023; no newer BioGPT version has been published in the official repository since.
What the model was designed and evaluated for
Fine-tuned results reported by Microsoft in the BioGPT paper (Luo et al., 2022) — not measured by Dr7.ai
Generate literature-style descriptions of biomedical terms and mine PubMed abstracts for entities and relationships.
Fine-tune for question answering over research abstracts (PubMedQA). It is a research model, not a clinical decision-support tool.
Extract drug–target and drug–drug interactions from published literature to support curation and hypothesis generation.
Run Microsoft's BioGPT with Hugging Face or locally, or try Dr7's own biomedical AI chat.
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.
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
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 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 diagnosisBioGPT outputs should be validated by domain experts, especially for clinical or research applications.
Consider fine-tuning BioGPT on your specific biomedical domain or task for optimal performance.
BioGPT, BioGPT-Large, BioMedLM, PubMedBERT and PMC-LLaMA at a glance
| Model | Parameters | Training corpus | License | PubMedQA (accuracy) |
|---|---|---|---|---|
| BioGPT | 347M | 15M PubMed titles + abstracts | MIT | 78.2% |
| BioGPT-Large | 1.5B | PubMed | MIT | 81.0% |
| BioMedLM | 2.7B | PubMed abstracts + full articles (from The Pile) | BigScience BLOOM RAIL 1.0 | 74.4% |
| PubMedBERT | ~110M (BERT-base) | PubMed abstracts (one variant adds PubMed Central full text) | MIT | 55.8% |
| PMC-LLaMA 13B | 13B | LLaMA-13B + 4.8M biomedical papers + 30K medical textbooks | OpenRAIL (Hugging Face card); LLaMA-based | 77.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.
Common questions about BioGPT
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.
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.
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.
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.
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.
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.
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.