#3131st of 41 in Training and fine-tuningFor science, health and research

medicalgpt

Training scripts for medical LLMs: pretraining, SFT, RLHF, DPO, GRPO

Stars
5.9k
License
Apache-2.0
Last commit
Sep 2026
Last release
Apr 2026
Language
Python
Stars, last 30 weeks+780
3 Apr 2026: 5,097 stars10 Apr 2026: 5,138 stars17 Apr 2026: 5,183 stars24 Apr 2026: 5,239 stars1 May 2026: 5,264 stars8 May 2026: 5,288 stars15 May 2026: 5,333 stars22 May 2026: 5,371 stars29 May 2026: 5,393 stars5 Jun 2026: 5,428 stars12 Jun 2026: 5,460 stars19 Jun 2026: 5,486 stars26 Jun 2026: 5,504 stars3 Jul 2026: 5,529 stars10 Jul 2026: 5,558 stars17 Jul 2026: 5,584 stars24 Jul 2026: 5,618 stars31 Jul 2026: 5,639 stars7 Aug 2026: 5,660 stars14 Aug 2026: 5,687 stars21 Aug 2026: 5,707 stars28 Aug 2026: 5,733 stars4 Sept 2026: 5,757 stars11 Sept 2026: 5,781 stars18 Sept 2026: 5,806 stars25 Sept 2026: 5,823 stars2 Oct 2026: 5,833 stars9 Oct 2026: 5,845 stars16 Oct 2026: 5,855 stars23 Oct 2026: 5,861 stars30 Oct 2026: 5,877 stars

5,097 on 3 Apr 20265,877 on 30 Oct 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

MedicalGPT is a set of Python scripts that train domain LLMs through continued pretraining, supervised fine-tuning, reward modeling with PPO/RLOO, DPO, ORPO, GRPO and on-policy distillation. It supports Qwen, Llama-3, Mixtral and other model families, with LoRA/QLoRA and DeepSpeed ZeRO configs. Gradio, FastAPI and OpenAI-style demo servers are included for inference.

Who it is for: Engineers fine-tuning open LLMs on domain data with LoRA or full-parameter runs

Strengths

  • Covers PT, SFT, RM, PPO, DPO, ORPO, GRPO and OPD in one repo with shell launchers
  • Ships DeepSpeed ZeRO-1/2/3 configs and a VRAM table (QLoRA 4-bit 7B about 6GB)
  • Supports tool-call fine-tuning via SFT and DPO using ShareGPT-format jsonl
  • Colab notebooks run full PT+SFT+DPO or PPO pipelines in roughly 15-20 minutes

Weaknesses

  • Script collection, not a packaged library or UI; you edit shell scripts and arguments
  • Stages are chained by hand, merging LoRA adapters between each one
  • README is mostly Chinese; the English version is a separate file
  • No Docker or compose files; setup is pip install -r requirements.txt

What it needs

  • GPU required
  • Needs PyTorch, Hugging Face Transformers, PEFT, DeepSpeed
  • Models: Qwen 2/2.5/3.5, Llama-3, Mixtral 8x7B, Baichuan, ChatGLM

Quick answers

Is medicalgpt open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Does medicalgpt need a GPU?

Yes, it needs a GPU.

Also in Training and fine-tuning

See all 41
Also in Training and fine-tuning
RankProjectScore
1unslothDesktop and web app to run and fine-tune local models Live demo ↗ (opens in a new tab)78.9k starsApache-2.088 out of 100
2peftPython library for LoRA and other parameter-efficient fine-tuning of Transformers models Live demo ↗ (opens in a new tab)21.9k starsApache-2.086 out of 100
3deepspeedPyTorch library for distributed training of very large models with ZeRO43.3k starsApache-2.085 out of 100
#4verlReinforcement learning training library for LLM post-training with PPO and GRPO24.1k starsApache-2.084 out of 100
#5trlPost-training library with SFT, DPO, GRPO and KTO trainers19.6k starsApache-2.083 out of 100