跳到正文
Simon Willison·· 2026-10-09

ttok 1.0

ttok 1.0

中文摘要

发布:ttok 1.0 我发布了 ttok 0.4,运行了 uv 工具升级 ttok,将一个文件输入新版本……然后意识到它默认使用了 GPT-4 的分词器,而它应该非常明确地默认使用 GPT-5/GPT-6!我认为更改默认设置是一个合理的理由,终于发布了 1.0 版本。OpenAI 尚未确认 GPT-6 是否使用与 GPT-5 系列相同的分词器——对此有一个愤怒的议题——但我找到了 William Liu 的一个提交,报告了他进行的一个实验,确认分词器可能是相同的:所有七个 GPT 模型(5.5、5.6 Sol/Terra/Luna、6 Astra/Sol/Luna)报告了 44,794 个标记,并在所有 31 个测试用例中彼此匹配。GPT-6 在此语料库上没有引入输入计数的变化。标签:项目、人工智能、OpenAI、生成式人工智能、大语言模型、分词

英文原文

Release: ttok 1.0 I released ttok 0.4 , ran uv tool upgrade ttok , piped a file into the new version... and realized that it was defaulting to the GPT-4 tokenizer when it should very clearly default to GPT-5/GPT-6 instead! I figured switching the default was a reasonable excuse to finally ship a 1.0. OpenAI haven't actually confirmed that GPT-6 uses the same tokenizer as the GPT-5 family yet - there's an angry issue about it - but I found this commit by William Liu which reports on an experiment he ran confirming that the tokenizers are likely the same: All seven GPT models (5.5, 5.6 Sol/Terra/Luna, 6 Astra/Sol/Luna) report 44,794 tokens and match each other on every one of the 31 fixtures. GPT-6 introduces no input-count change on this corpus. Tags: projects , ai , openai , generative-ai , llms , tokenization

应来源方要求,这里只提供摘要与原文入口。完整内容请阅读原文。

来源:Simon Willison · simonwillison.net