← All projects
Training & fine-tuning

MedicalGPT

Code for training your own medical AI chat model, following the same steps used to train ChatGPT.

New this week

What it does

MedicalGPT is a set of training scripts for building a language model that specializes in medicine. It follows the training pipeline behind ChatGPT: extra reading on medical texts, then learning from example questions and answers, then learning from human preferences.

It supports several training methods, such as reinforcement learning from human feedback, DPO, ORPO and GRPO, and works with many open models like Qwen and Llama. The makers have also released some medical models trained this way.

It is a technical toolkit for researchers, not a medical advice service. The README is mainly in Chinese with an English version.

Who it's for

AI researchers and developers who want to adapt language models to the medical field or other specialist areas.

Can I use it without coding?

Developers only. It needs Python, training data and powerful graphics cards. New to this? Start here.

Can I run it?

Cost
FreeNothing to pay or sign up for.
Runs on
Linux
Computer
Works best on a powerful computer or one with a graphics card (GPU)
Privacy
Runs on your own device: your data stays with you
API key
Not needed

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • License (Apache-2.0): Permissive: free to use, change and share, including for business.
  • More on staying safe