thinking-machines-lab/tinker-cookbook
Post-training with Tinker
What it solves
Tinker Cookbook provides a set of high-level abstractions and realistic examples to simplify the process of customizing and fine-tuning large language models (LLMs). It removes the complexities of distributed training by leveraging the Tinker API, allowing developers to focus on training recipes rather than infrastructure.
How it works
The library builds on the tinker SDK, which handles the distributed training backend. Tinker Cookbook provides a library of "recipes"—pre-configured training environments—and utilities for rendering token sequences into chat messages, managing hyperparameters for LoRA training, and evaluating models.
Who it’s for
It is designed for researchers and developers who want to perform advanced post-training techniques like Supervised Fine-Tuning (SFT), Reinforcement Learning (RL), and Distillation without managing their own training clusters.
Highlights
- Diverse Training Recipes: Includes implementations for Chat SFT, Math and Code RL (with sandboxed execution), Preference Learning (DPO/RLHF), Knowledge Distillation, and Multi-agent RL.
- Multimodal Support: Supports SFT and RL for audio and image inputs, specifically for the Inkling model family.
- Integrated Evaluation: An experimental benchmark framework supporting 12+ benchmarks (e.g., GSM8K, MMLU-Pro, GPQA) to verify model performance.
- Claude Code Integration: Ships with specialized skills to help AI assistants automate the planning and debugging of training experiments.
Related
- Project
- Project
- Project
- Project
- Project