AIAny
AI Train2025
Icon for item

Tinker Cookbook

Worked examples and reusable abstractions for fine-tuning open LLMs via the Tinker training API: you write the training loop while distributed execution runs remotely. Covers SFT, math/code RL, DPO, three-stage RLHF, distillation, and tool use.

Introduction

Most fine-tuning libraries force a choice: either drop down to distributed-training plumbing (FSDP, sharding, checkpoint juggling) or accept a rigid trainer that only does what its authors anticipated. This cookbook sits on a different layer. The Tinker API exposes just four primitives — forward_backward, optim_step, save_state, sample — and Thinking Machines Lab runs the cluster behind them. The recipes here show what you can build once that loop is yours but the infrastructure isn't your problem.

What Sets It Apart
  • The abstraction boundary is unusually low: you own the optimization loop and reward logic, not the GPU topology. That means a custom RL algorithm is a few hundred readable lines, not a fork of a framework.
  • Coverage spans the full post-training stack — chat SFT (Tulu3), math RL with verifiable rewards, sandboxed code RL, DPO, a three-stage RLHF pipeline (SFT, reward model, RL), on/off-policy distillation, retrieval tool use (a Search-R1 replication), and multi-agent self-play.
  • A bundled benchmark harness scores trained models on ~12 evals (GSM8K, MMLU-Pro, IFEval, MBPP, C-Eval) with published reference numbers, so a recipe is verifiable rather than aspirational.
Who It's For

Great fit if you want to prototype or modify a post-training algorithm and care about the math more than the cluster — examples default to Llama-3.2-1B with LoRA, so iteration is cheap. Look elsewhere if you need full control over the training stack, on-prem weights, or a provider-agnostic setup: everything routes through the hosted Tinker service, which is the deliberate trade for not managing distributed training yourself.

Information

  • Websitegithub.com
  • AuthorsThinking Machines Lab
  • Published date2025/10/01

Categories

More Items

GitHub
AI Train2025

An asynchronous, high-throughput framework for large-scale reinforcement learning and agentic training that scales to 1T+ MoE models and 1000+ GPUs, with native verifiers integration, end-to-end SFT/RL/evals, and Slurm/Kubernetes deployment; requires NVIDIA GPUs.

GitHub
AI Agent2026

Trains reusable natural-language 'skills' for frozen LLM agents by optimizing the skill document in text-space — using trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts. Multi-backend, zero inference-time cost at deployment, designed for iterative, validation-led skill improvement.

GitHub
AI Train2023

Modular PyTorch-based framework for building, training, and deploying physics-informed ML models (neural operators, PINNs, GNNs, diffusion). Provides GPU‑optimized training, domain-specific datapipes for meshes/point clouds, distributed scaling and a model zoo.