Claude Sonnet 5 的新特性

Simon Willison's Blog 模型

摘要

Anthropic 发布了 Claude Sonnet 5,该模型性能接近 Opus 4.8,价格更低,但采用了新的分词器,使得英文和代码的 token 数量增加约 30%,从而实际上提高了成本。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/06/30 23:37

# Claude Sonnet 5 的新特性 来源:https://simonwillison.net/2026/Jun/30/claude-sonnet-5/ 2026年6月30日 - 链接博客 **Claude Sonnet 5 的新特性 (https://platform.claude.com/docs/en/about-claude/models/whats-new-sonnet-5)**(来自 https://news.ycombinator.com/item?id=48736605)Claude Sonnet 5 在今天早晨发布 (https://www.anthropic.com/news/claude-sonnet-5)。我通常会直接查看“新特性”开发者文档,因为它们往往比官方发布公告提供更实用的信息。 Anthropic 表示 Sonnet 5 “性能接近 Opus 4.8,但价格更低”。系统卡片 (https://www-cdn.anthropic.com/9e6a1044980d8c4ed85669faf9c2a8342e2e9f1e/Claude%20Sonnet%205%20System%20Card.pdf) 有助于解释他们如何在不被美国政府阻止的情况下发布该模型: > Sonnet 5 在网络攻击任务方面的能力明显低于 Mythos 5:因此其安全措施与我们应用于 Opus 4.7 和 Opus 4.8 的相似(这些模型比 Sonnet 5 能力更强,但远不如 Mythos 5)。 来自“新特性”API 变更的注意事项: - 采样参数 `temperature`、`top_p`、`top_k` 不再受支持。 - 它拥有 100 万 token 的上下文窗口和 128,000 的最大输出 token。 - 其功能为“与 Claude Sonnet 4.6 相同的工具和平台特性”。 - 自适应思考默认开启,除非你指定 `"thinking": {"type": "disabled"}`。 - 定价与 Sonnet 4.6 相同:每百万输入 $3,每百万输出 $15,在 8 月 31 日前有介绍性折扣至 $2/$10。但是…… - 该模型使用新的分词器,“相同输入文本产生的 token 数量比 Claude Sonnet 4.6 多约 30%”——相当于价格上涨 30%。 我使用我的 Claude Token 计数器 (https://tools.simonwillison.net/claude-token-counter) 工具测试了新分词器。以下是几个较大文档的结果: | 文档 | Sonnet 4.6 | Opus 4.7 | Sonnet 5 | | --- | --- | --- | --- | | 世界人权宣言(英文) (https://github.com/simonw/udhr-markdown/blob/main/declarations/eng.md) | **2,356** | **3,347** 1.42x | **3,341** 1.42x | | 世界人权宣言(西班牙文) (https://github.com/simonw/udhr-markdown/blob/main/declarations/spa.md) | **3,572** | **4,753** 1.33x | **4,747** 1.33x | | 世界人权宣言(简体中文) (https://github.com/simonw/udhr-markdown/blob/main/declarations/cmn_hans.md) | **3,334** | **3,366** 1.01x | **3,360** 1.01x | | sqlite_utils/db.py (https://github.com/simonw/sqlite-utils/blob/79117b9d110d72f46dab5fe2cda412ff4789ab55/sqlite_utils/db.py)(4,279 行 Python 代码) | **44,014** | **56,118** 1.28x | **56,113** 1.27x | 因此,新 token 在英文上大约贵 1.4 倍,西班牙文上贵 1.33 倍,Python 代码上贵 1.28 倍,而简体中文的成本基本持平。 这里是那只鹈鹕 (https://gist.github.com/simonw/a89e756b621a31e8ffc210e3428efa77)。没什么特别的。Sonnet 5 认为它看起来像一只鹅。 一只白色鹅骑自行车的插图,一只翅膀向前伸抓住车把,背景为纯白色,地面有一条棕色线条。

相似文章

Claude Sonnet 5

Hacker News Top

Anthropic 发布了 Claude Sonnet 5,这是一款高度自主的 AI 模型,在推理、工具使用和编码能力上有所提升,以更低的价格缩小了与 Opus 级别模型的差距。该模型现已面向所有套餐提供,并采用首发优惠定价。