tinker-training-cost
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "tinker-training-cost":https://skillpi.com/zh/skills/deepskill-ea1e3a792c26a974abdd2bad4b5515308c6e7d35ace7d2febb06e659ac24921f。安装前核对上游来源和版本:https://github.com/sundial-org/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于计算 Tinker 微调任务训练成本的估算工具。适用于估算 Tinker LLM 的训练成本、统计数据集中 token 数量或比较不同 Tinker 模型的训练价格。要求使用正确的模型分词器对数据集进行分词,并提供准确的成本估算依据。
介绍来源: third_party · sundial-org · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: tinker-training-cost
description: Calculate training costs for Tinker fine-tuning jobs. Use when estimating costs for Tinker LLM training, counting tokens in datasets, or comparing Tinker model training prices. Tokenizes datasets using the correct model tokenizer and provides accurate cost estimates.Tinker Training Cost Calculator
Calculate training costs for Tinker fine-tuning jobs by tokenizing your dataset with the correct model tokenizer and applying current pricing.
Quick Start
Use the bundled script to calculate training costs:
# List available models and pricing
python scripts/calculate_cost.py --list-models
# Calculate cost for a JSONL dataset (model matches on unambiguous fragment)
python scripts/calculate_cost.py training_data.jsonl --model Qwen3-8B --epochs 3
# Output as JSON
python scripts/calculate_cost.py training_data.jsonl --model Inkling --json
The script:
- Loads the correct tokenizer for the selected model (via
tinker-cookbookif installed, elsetransformers) - Counts tokens in your JSONL file (supports chat, text, and instruction formats)
- Calculates the estimated training cost
Cost Formula
Training Cost = (total_tokens × epochs × train_price_per_million) / 1_000_000
Tinker Pricing
Prices effective July 17, 2026 (prefill/sample rose ~50%, train ~10% on that date) Source: https://tinker-docs.thinkingmachines.ai/tinker/models/
All prices in USD per million tokens. Prefill = input context (inference), Sample = output tokens (inference), Train = training tokens. Cached prefill tokens get an 80% discount. :peft:<context> = extended-context variant.
| Model | Prefill | Sample | Train |
|---|---|---|---|
| thinkingmachines/Inkling* | $1.87 | $4.68 | $5.61 |
| thinkingmachines/Inkling:peft:262144* | $3.74 | $9.36 | $11.23 |
| nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16* | $2.49 | $6.225 | $5.478 |
| nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16:peft:262144* | $3.32 | $8.30 | $9.96 |
| nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16* | $0.57 | $1.44 | $1.276 |
| nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16:peft:262144* | $0.76 | $1.92 | $2.32 |
| nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16* | $0.195 | $0.495 | $0.44 |
| moonshotai/Kimi-K2.6 | $2.205 | $5.49 | $4.84 |
| moonshotai/Kimi-K2.6:peft:131072 | $5.15 | $12.81 | $15.40 |
| Qwen/Qwen3.6-35B-A3B | $0.54 | $1.335 | $1.177 |
| Qwen/Qwen3.6-27B | $1.86 | $5.595 | $4.103 |
| Qwen/Qwen3.5-397B-A17B | $3.00 | $7.50 | $6.60 |
| Qwen/Qwen3.5-397B-A17B:peft:262144 | $4.00 | $10.00 | $12.00 |
| Qwen/Qwen3.5-35B-A3B-Base | $0.54 | $1.335 | $1.177 |
| Qwen/Qwen3.5-9B (+ -Base) | $0.66 | $1.995 | $1.463 |
| Qwen/Qwen3.5-4B | $0.33 | $1.005 | $0.737 |
| Qwen/Qwen3-8B | $0.195 | $0.60 | $0.44 |
| openai/gpt-oss-120b | $0.33 | $0.84 | $0.737 |
| openai/gpt-oss-120b:peft:131072 | $0.78 | $1.94 | $2.33 |
| openai/gpt-oss-20b | $0.18 | $0.45 | $0.396 |
| deepseek-ai/DeepSeek-V3.1 | $1.695 | $4.215 | $3.718 |
* Inkling and Nemotron prices reflect a limited-time 50% discount.
Checkpoint storage: $0.10 per GB per month.
Tokenization
Every model's tokenizer resolves from its Tinker model ID (verified for all models above):
from tinker_cookbook.tokenizer_utils import get_tokenizer # preferred
tokenizer = get_tokenizer("Qwen/Qwen3-8B")
# Or with plain transformers (same IDs, minus any :peft: suffix)
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B", trust_remote_code=True)
token_count = len(tokenizer.encode("Your training text here"))
Supported JSONL Formats
Chat format (recommended):
{"messages": [{"role": "user", "content": "..."}, {"role": "assistant", "content": "..."}]}
Text format:
{"text": "Your training text here"}
Instruction format (Alpaca-style):
{"instruction": "...", "input": "...", "output": "..."}
Quick Cost Examples
Example 1: Qwen3-8B on 1M tokens, 3 epochs
Training tokens: 1,000,000 × 3 = 3,000,000
Cost: 3.0M × $0.44/M = $1.32
Example 2: Qwen3.6-35B-A3B on 5M tokens, 2 epochs
Training tokens: 5,000,000 × 2 = 10,000,000
Cost: 10.0M × $1.177/M = $11.77
Example 3: Inkling on 2M tokens, 4 epochs
Training tokens: 2,000,000 × 4 = 8,000,000
Cost: 8.0M × $5.61/M = $44.88
Important Notes
- LoRA Fine-Tuning: Tinker uses Low-Rank Adaptation (LoRA), not full fine-tuning
- Token Counting: Always use the model's native tokenizer - different tokenizers produce different counts for the same text
- RL costs more than the train rate alone: rollouts are billed at sample/prefill rates on top of training tokens
- Multimodal inputs (Inkling images/audio) add tokens beyond text tokenization
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的 Tinker LLM 训练成本计算功能
- 包含详细的定价表和分词逻辑
- 支持多种数据集格式和模型选择
亮点
- description 精准描述核心功能
- 触发词覆盖成本计算、token统计、模型比较等场景
亮点
- 文档结构清晰完整
- 提供 Quick Start、示例和详细说明
- frontmatter 信息完整
亮点
- 使用标准 tokenizer 库确保准确性
- 支持多种数据格式处理
- 提供完整的成本计算公式和示例
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- tinker-docs.thinkingmachines.ai
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。