SuperAPI AI Directory

LLM-Dojo

LLM-Dojo is a lightweight post-training framework for large language models, supporting SFT, RLVR, On-Policy KD, Guide KD, and mixed training. It is built on OpenRLHF, with the core part being openrlhf-kd, which streamlines the RLVR part and removes components such as the critic, while adding knowledge distillation (KD), Guide-KD, and mixed training with reward, and supports routing by datasource. The SFT part in the root directory provides a concise training entry point, suitable for rapid fine-tuning experiments, supports LoRA, QLoRA, and full-parameter fine-tuning, and can automatically adapt to chat templates.

Open website

About this tool

LLM-Dojo is a lightweight experimental framework for post-training large language models, mainly used for RLHF and SFT experiments, and extended to support RLVR, knowledge distillation (KD), and Guide-KD.

Purpose

This framework aims to provide researchers and developers with a streamlined and easy-to-use platform for conducting supervised fine-tuning (SFT) and reinforcement learning-based training experiments for large language models, while also supporting knowledge distillation and mixed training strategies.

Main Capabilities

  • Supports SFT (supervised fine-tuning), RLVR, On-Policy KD, Guide KD, and mixed training.
  • Implements single-turn/multi-turn Guide distillation, multi-teacher distillation, reward mixed training, and automated data routing.
  • The core part openrlhf-kd is built on OpenRLHF, streamlines the RLVR part, and removes unnecessary components such as the critic.
  • Adds mixed training of KD, Guide-KD, and reward, and supports routing by datasource.
  • The SFT part in the root directory provides a concise training entry point, suitable for rapid fine-tuning experiments.
  • Supports LoRA, QLoRA, and full-parameter fine-tuning.
  • Automatically adapts to chat templates.

Usage

For specific training usage, see the document openrlhf-kd/examples/README.md. For SFT example files, see data/sft_data.jsonl.

Applicable Scenarios

Suitable for research and development scenarios that require post-training experiments for large language models, including supervised fine-tuning, reinforcement learning, knowledge distillation, and mixed training, etc.

Limitations

Facts regarding fees, pricing, platform support, specific results, etc. are not yet provided.