Skip to content

Quick-start guide to fine-tuning ChatGPT using Python. Includes scripts for data preprocessing, model training, and evaluation. 快速入门指南: 使用Python微调ChatGPT。包含数据预处理、模型训练和评估脚本。

License

Notifications You must be signed in to change notification settings

yuyou-dev/ChatGPT-Fine-tuning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-Fine-tuning / ChatGPT微调指南

Quick-start guide to fine-tuning ChatGPT using Python. Includes scripts for data preprocessing, model training, and evaluation.

快速入门指南: 使用Python微调ChatGPT。包含数据预处理、模型训练和评估脚本。

Project Structure / 项目结构

chatgpt-finetuning/
│
├── data/
│   ├── raw/
│   │   ├── training_data.txt
│   │   └── validation_data.txt
│   └── processed/
│       └── ...
│
├── scripts/
│   ├── preprocess_data.py
│   ├── upload_data.py
│   └── finetuning.py
│
├── notebooks/
│   ├── fine-tuning.ipynb
│   ├── fine-tuning-format.ipynb
│   ├── fine-tuning-format-comparison.ipynb
│   └── 视频解说.ipynb
│
├── README.md
└── requirements.txt

Getting Started / 开始

  1. Clone the Repository / 克隆仓库:
git clone https://github.com/yuyou-dev/chatgpt-fine-tuning.git
cd chatgpt-fine-tuning
  1. Install Dependencies / 安装依赖:
pip install -r requirements.txt
  1. Fine-tuning the Model / 微调模型:

Navigate to the scripts/ directory and run the script to preprocess data:

Preprocess Data / 预处理数据

python3 preprocess_data.py

Upload Data / 上传数据

Run the upload script:

python3 upload_data.py

Fine-tuning / 微调训练

Run the fine-tuning script:

python3 finetuning.py

Running Tests / 验证和测试

Run API test on PlayGround

Colab 微调

其他GPT技术

Contributing / 贡献

We welcome contributions! Please open an issue or submit a pull request on GitHub. 我们欢迎各种贡献!请在GitHub上开启一个问题(issue)或提交一个拉取请求(pull request)。

License / 许可

MIT License

About

Quick-start guide to fine-tuning ChatGPT using Python. Includes scripts for data preprocessing, model training, and evaluation. 快速入门指南: 使用Python微调ChatGPT。包含数据预处理、模型训练和评估脚本。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published