PulseAugur
中
实时 09:30:54
English(EN) smolagents replays its whole memory every step: the O(n ) token bill nobody mentions

smolagents AI 框架因内存重放而产生二次方代币成本

smolagents AI 框架以其小型代码库和优雅的设计而闻名,但它有一个隐藏的成本:它会在每次推理步骤中重放其整个内存。这会导致二次方代币账单,意味着一个需要 'n' 步的任务大约花费 n²/2 个代币,而不是线性的 'n' 个代币。这种低效率对于涉及大型工具输出的任务尤其昂贵,因为这些输出会在每个后续步骤中被重新发送。虽然 smolagents 会跟踪代币使用情况,但成本在审查之前就已经产生,尽管通过一个涉及步骤回调的简单修复可以缓解这个问题。 AI

影响 突出了代理框架中一个显著的成本低效率,这可能会影响开发和部署成本。

排序理由 该条目详细说明了现有 AI 框架中的一个特定技术低效率和潜在的修复方法,而不是新的发布或重大的行业事件。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

smolagents AI 框架因内存重放而产生二次方代币成本

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
该条目详细说明了现有 AI 框架中的一个特定技术低效率和潜在的修复方法,而不是新的发布或重大的行业事件。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
72 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · wartzar-bee ·

    smolagents 每一步都重放其全部记忆:没人提及的 O(n ) 令牌账单

    <h1> smolagents replays its whole memory every step: the O(n²) token bill nobody mentions </h1> <p><em>Cost-audit series, episode 5. This series began with <a href="https://dev.to/wartzarbee/i-put-an-ai-agent-on-a-timer-overnight-it-burned-136m-tokens-doing-almost-nothing-2ae2">a…