modelscope/easydistill
a toolkit on knowledge distillation for large language models
What it solves
EasyDistill 2 is a config-driven toolkit designed to transform black-box teacher models into high-quality training data. It simplifies the process of knowledge distillation by automating the generation and refinement of datasets used for supervised fine-tuning (SFT) and direct preference optimization (DPO).
How it works
The toolkit uses a pipeline-based approach where atomic operators—such as generation, evaluation, filtering, rewriting, balancing, and preference scoring—are composed into end-to-end workflows. These pipelines can be configured via YAML files to produce various types of training data, including text instructions, chain-of-thought (CoT) reasoning, multi-modal conversations, and agent trajectories. It is backend-agnostic, supporting any OpenAI-compatible endpoint (e.g., vLLM, Azure OpenAI) and specialized backends for image and video generation.
Who it’s for
It is intended for developers and researchers who want to create high-quality synthetic datasets to train smaller, specialized models using the knowledge of larger, proprietary or open-source teacher models.
Highlights
- Multi-modal Support: Distills data for text, vision-language, text-to-image (T2I), and text-to-video (T2V) tasks.
- Composable Pipelines: Offers both ready-made end-to-end pipelines and individual operators for custom data strategies.
- Agentic Distillation: Capable of synthesizing virtual tool-use tasks and multi-turn agent trajectories using LangGraph ReAct loops.
- Training-Ready Outputs: Exports data in formats compatible with LLaMA-Factory and ms-swift.
- Diverse Data Types: Generates SFT datasets, DPO preference pairs, and complex reasoning traces (CoT).
Related
- Project
- Project
- Project
- Project
- Project