$npx skillfedfor your agent

tinker_cookbook

Implementations of post-training algorithms using the Tinker API

With conditionsPyPI Artificial IntelligenceReleased Aug 2026599.6K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — tinker_cookbook-0.5.4-py3-none-any.whl
v0.5.4 · released 2026-08-11 · Python >=3.11 · 19 runtime deps: aiohttp, anyio, blobfile, chz, cloudpickle, datasets, huggingface-hub, numpy

Yes, if you have a Tinker API account and want to fine-tune LLMs without managing distributed training infrastructure. The package is actively maintained, well-documented, and provides production-ready recipes for common post-training tasks. Install friction is low and the Apache-2.0 license is permissive. No security vulnerabilities are known. The main blocker is the hard dependency on a Tinker API account and the substantial runtime footprint (torch, transformers, datasets, etc.)—not a concern if you're already working in the LLM space.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a Tinker API account and TINKER_API_KEY environment variable; torch>=2.10 is required for Inkling model support.
  • Low friction installation as a pure-Python wheel.
  • Active maintenance with a recent release (3 days old) and strong repository signals (4019 stars, last commit 2026-08-14).

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions. No notable licensing friction for most use cases.

last release 2026-08-11 (3 days) · last repo commit 2026-08-14 · 4,019 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 599,605 downloads/mo, #5,827 on PyPI

Verify before relying

# Install
pip install tinker-cookbook

# Set up API key
export TINKER_API_KEY="your_key_here"

# Basic supervised learning example
import tinker
from tinker_cookbook.recipes.sl_basic import create_sl_trainer

service_client = tinker.ServiceClient()
training_client = service_client.create_lora_training_client(
    base_model="meta-llama/Llama-3.2-1B", rank=32
)
training_client.forward_backward(...)
training_client.optim_step(...)
  • Whether the 12 benchmarks (GSM8K, MATH-500, MMLU-Pro, etc.) are production-ready or experimental beyond the noted 'experimental' label on the eval framework.
  • Specific performance or cost implications of using Inkling vs. Inkling-Small models through the Tinker API.
  • Whether all 20+ marimo tutorials are currently functional and up-to-date with the latest API.
Same gist for agents: .md · .json

What it is and what it does

Tinker Cookbook is a library of recipes and utilities built on top of the Tinker API—a managed fine-tuning service for language models. It abstracts away distributed training complexity by letting you send API requests to Thinking Machines Lab's infrastructure rather than managing training yourself. The package includes realistic, runnable examples for common post-training workflows: supervised fine-tuning on conversational data, reinforcement learning for math and code, preference learning (DPO and RLHF), knowledge distillation, tool-use training, multi-agent RL, audio and vision-language model training, and more.

You install it alongside its 19 runtime dependencies (torch, transformers, datasets, huggingface-hub, and others) and then import recipes or utilities to configure and launch training jobs. The package also ships an experimental benchmark framework to evaluate trained models against 12 standard benchmarks, plus utilities for hyperparameter scaling, token-to-chat-message rendering, and weight management. All of this assumes you have a Tinker API account and an API key.

Use it for

  • Fine-tune an open-source LLM like Llama on your own conversational dataset using supervised learning without managing distributed training infrastructure.
  • Train a model to solve math problems with verifiable rewards using the math RL recipe with automated grading.
  • Build a code-generation model using competitive programming examples and sandboxed execution (DeepCoder-style) via the code RL recipe.
  • Implement a three-stage RLHF pipeline (SFT, reward model, RL) for preference-aligned models using the preference learning recipe.
  • Evaluate a fine-tuned model against standardized benchmarks (GSM8K, MMLU-Pro, IFEval, etc.) using the built-in evaluation framework.
  • Train a vision-language model for image classification or an audio model for speech recognition using the multimodal recipes.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you have a Tinker API account and want to fine-tune LLMs without managing distributed training infrastructure.

The package is actively maintained, well-documented, and provides production-ready recipes for common post-training tasks. Install friction is low and the Apache-2.0 license is permissive. No security vulnerabilities are known. The main blocker is the hard dependency on a Tinker API account and the substantial runtime footprint (torch, transformers, datasets, etc.)—not a concern if you're already working in the LLM space.

Install

tinker-cookbook on PyPI

Before you install

Low friction installation as a pure-Python wheel. Active maintenance with a recent release (3 days old) and strong repository signals (4019 stars, last commit 2026-08-14). Requires Python >=3.11 and pulls in 19 runtime dependencies including torch, transformers, and datasets—a substantial but expected footprint for LLM tooling.

Requires a Tinker API account and TINKER_API_KEY environment variable; torch>=2.10 is required for Inkling model support.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions. No notable licensing friction for most use cases.

Quickstart

# Install
pip install tinker-cookbook

# Set up API key
export TINKER_API_KEY="your_key_here"

# Basic supervised learning example
import tinker
from tinker_cookbook.recipes.sl_basic import create_sl_trainer

service_client = tinker.ServiceClient()
training_client = service_client.create_lora_training_client(
    base_model="meta-llama/Llama-3.2-1B", rank=32
)
training_client.forward_backward(...)
training_client.optim_step(...)

Verify before relying

  • Whether the 12 benchmarks (GSM8K, MATH-500, MMLU-Pro, etc.) are production-ready or experimental beyond the noted 'experimental' label on the eval framework.
  • Specific performance or cost implications of using Inkling vs. Inkling-Small models through the Tinker API.
  • Whether all 20+ marimo tutorials are currently functional and up-to-date with the latest API.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
19 packages
aiohttpanyioblobfilechzcloudpickledatasetshuggingface-hubnumpypillowpydanticrichsafetensorstermcolortiktokentinkertml-rendererstorchtqdmtransformers
MaintenanceActively maintained 3 days since the last release
Last repo commit
First released
Downloads599,605 / month, #5,827 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: tinker_cookbook-0.5.4-py3-none-any.whl

Tags

Capabilities
language model fine-tuning recipesLLM post-training frameworksupervised and reinforcement learning for LLMsTinker API training examplesmodel customization abstractionsLoRA training utilitiesLLM evaluation benchmarks
Topics
llm-trainingfine-tuningpost-training

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “language model fine-tuning recipes”

  • tinker_cookbookTinker Cookbook provides recipes and abstractions for fine-tuning…
  • torchtunetorchtune is a PyTorch library for fine-tuning, post-training, and…
  • unsloth-zooUnsloth Zoo provides utilities for fine-tuning large language models…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also tinker · trl · torchtune · gem-llm · google-tunix · verl · ms-swift · skrl · torchrl · reasoning-gym

Further reading