Tooluck logoTooluck
SKILL.md

tinker-training-inference

Agent skill fromLeanmcp/gateway-skills

Train and run models on Tinker (Thinking Machines) — LoRA and full fine-tuning, SFT with correct loss masking, RL/RFT with group-relative advantages and importance sampling, agentic RL over multi-turn tool-using agents, inference via the SamplingClient or the OpenAI-compatible endpoint, checkpoint management and export, every hyperparameter, and cost estimation from the live price table. Use this skill whenever the user mentions Tinker, tinker://, TINKER_API_KEY, console.tinker.ai, or the tinker CLI; wants to fine-tune, SFT, RFT, or RL a model on Tinker; asks about Tinker models, context windows, LoRA rank, sampling params, loss functions (cross_entropy, importance_sampling, ppo, cispo, dro), Datum construction, forward_backward or optim_step; wants to sample from, download, resume, merge, or export a Tinker checkpoint; or asks what a Tinker run will cost. Whenever Tinker work is initialized in a project, this skill also creates a TINKER_PRICING.md there so prices sit next to the train

How to install tinker-training-inference

install tinker-training-inference
# install the gateway-skills pack with the skills CLI
npx skills add Leanmcp/gateway-skills

# or add only this skill to Claude Code: copy the folder

skills/tinker-training-inference/

# into

~/.claude/skills/tinker-training-inference/ (all projects)

.claude/skills/tinker-training-inference/ (one project)

skills/tinker-training-inference/SKILL.md

MITFull file
1# Tinker: training and inference
2
3Tinker gives you token-level control of hosted fine-tuning: you build the
4`Datum`s, you own the chat template, you hold the exact prompt and completion
5token ids on both sides. That is the reason to use it — a training run stays
6auditable, because the tokens the policy was updated on are tokens you can point
7at — and it is also why there is more to get right than with a hosted
8fine-tuning button. This skill is the map.
9
10## Do this first, in any new Tinker project
11
12**Create the pricing file.** Prices next to the training script get read before a
13550B RL run is launched; prices in a browser tab do not.
14
15```bash
16python <skill>/scripts/tinker_pricing.py init --out <project dir>
17```
18
19That writes `TINKER_PRICING.md` — the full catalogue, what each operation
20meters, and the pre-launch checklist. It is a **snapshot**: verify against the
21live catalogue at <https://tinker-docs.thinkingmachines.ai/tinker/models/>, and
22regenerate with `--force` when it moves. Then:
23
24```bash
25export TINKER_API_KEY="..." # console.tinker.ai
26uv pip install tinker
27```
28
29## Where to go
30
31| you want to | read |
32| --- | --- |
33| get set up, pick a model, avoid the context-window trap | [references/setup.md](references/setup.md) |
34| supervised fine-tuning | [references/training-sft.md](references/training-sft.md) |
35| RL / RFT on single-turn tasks | [references/training-rl.md](references/training-rl.md) |
36…

Excerpt shown under the repository's MIT license.

More skills in gateway-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates