Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
distillops is a Python toolkit for black-box distillation of a large language model into a small model you run yourself. The user describes a task once in a Task class that supplies data, prompts, a verifier and a score. A teacher model behind any OpenAI-compatible endpoint, whether a hosted API or an open model served locally with vLLM or SGLang, answers the inputs, and only answers that pass the verifier become training rows, with failed answers retried up to three times. A small student, which can be any causal language model on the Hugging Face hub, is then fine-tuned with SFT and optionally improved with GRPO reinforcement learning using the task's score as reward. Only the teacher's text answers are needed, never its weights or logits. The README's quick start distils DeepSeek's math reasoning into Qwen3-0.6B-Base on one 24 GB GPU and reports accuracy on the 1,319 GSM8K test problems rising from 56.8% to 65.9%, with API calls costing 3.79 CNY. It also reports that a 0.6B personal-information detector trained without human labels reached 0.955 F1 against 0.934 for its API teacher, and that a 2B vision model tied its 32B teacher at reading receipt photos through a vision extension. Each example is compared against a control trained on the dataset's own labels so the teacher's contribution can be measured, with paired comparisons and 95% confidence intervals. Task types suggested include classification, extraction, math and routing. Released models and a verified teacher dataset are linked on Hugging Face. The project is MIT-licensed and written in Python, tested on Python 3.11 and 3.12.