Projects
View on GitHub
mst272/LLM-Dojo
About
Lightweight LLM post-training framework supporting SFT, RLVR, On-Policy KD, Guide KD, and hybrid training; implements single-turn and multi-turn Guide distillation, multi-teacher distillation, Reward hybrid training, and automated data routing👩🎓👨🎓
Productivity & AutomationMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original🥋 LLM-Dojo
A lightweight playground for
RLHFandSFTexperiments, with support forRLVR,KD, andGuide-KD.轻量级 RLHF/SFT 实验平台,支持
RLVR、KD与Guide-KD。
📋 Overview
| 模块 | 说明 |
|---|---|
openrlhf-kd |
当前主线,基于 OpenRLHF 重构,实现 RLVR + KD + Guide-KD |
main_train.py |
简洁 SFT 训练入口 |
🎯 RLVR
openrlhf-kd 是这个仓库当前最核心的部分,基于 OpenRLHF 构建,具体训练使用可参见文档 openrlhf-kd/examples/README.md
主要改动:
- 精简框架,只保留
RLVR部分,移除了critic等不需要的内容 - 增加
KD、Guide-KD与reward的混合训练,支持按datasource路由
✏️ SFT
根目录的 SFT 部分保持了比较简洁的训练入口,适合快速微调实验。
特性:
- 支持
Deepspeed - 支持
LoRA、QLoRA、全参微调 - 自动适配 chat template
示例文件可参见 data/sft_data.jsonl
Quick Start:
bash run_example.sh
或:
deepspeed --include localhost:0,1 main_train.py \
--train_data_path /path/to/data.jsonl \
--model_name_or_path /path/to/model \
--task_type sft \
--train_mode qlora \
--output_dir /path/to/output
Explore related projects
Loading…