nextGPT
📢 Open source implementation for ChatGPT replica to build the end-to-end pipeline from SFT to RLHF.
- 🔥 Step 1) SFT: Surpervised Fine-tuning
- 🔥 Step 2) RM: Reward Model
- 🔥 Step 3) PPO: Proximal Policy Optimization
Installation
$ pip install nextgpt
or install from git repo to the get always the latest version.
$ git clone https://github.com/louiezzang/next-gpt.git
$ cd next-gpt/
$ pip install .
$ cd ../
Examples
See chatGPT example
RLHF
What is RLHF?
Implementation of RLHF (Reinforcement Learning with Human Feedback) was powered by Colossal-AI. More details can be found in the blog.
The RLHF was forked and modified from these git repos.
- https://github.com/airobotlab/KoChatGPT/tree/main/colossalai_ChatGPT_230319
- https://github.com/hpcaitech/ColossalAI/tree/main/applications/Chat
References
- https://github.com/airobotlab/KoChatGPT
- https://github.com/airobotlab/KoChatGPT/tree/main/colossalai_ChatGPT_230319
- https://github.com/hpcaitech/ColossalAI/tree/main/applications/Chat
- https://github.com/juncongmoo/chatllama
- https://github.com/huggingface/peft
- https://github.com/dredwardhyde/gpt-neo-fine-tuning-example/blob/main/gpt_neo.py
- https://github.com/databrickslabs/dolly
Metadata
Release files for nextgpt 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nextgpt-0.0.4.tar.gz | 34.6 kB | Details |
Release files / nextgpt-0.0.4.tar.gz
| Download URL | nextgpt-0.0.4.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c534c6f3d98598b6954e9f15add8ab790fcc299746a86c97d1a9e0b8790298b9
|
|
BLAKE2b-256 checksum How to use checksums |
7cfc5ba1a653efa334f8d50994a7f9728fa5dacedaba7ebb3135d0000e622963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|