PulseAugur
中
实时 16:53:54
English(EN) temperature=0 Isn't Deterministic: 17 of 5,000 Greedy Tokens Flipped

LLM temperature=0 的输出可能因浮点数计算和共享 GPU 而异

在大型语言模型中将 `temperature=0` 设置为保证确定性输出的普遍假设是错误的。这是因为浮点数算术,特别是在 `float16` 精度下,不是满足结合律的,导致在不同顺序计算总和时产生略微不同的结果。此外,LLM 推理中用于矩阵乘法的 GPU 内核在其求和顺序方面并不总是确定性的,因为这可能取决于批次大小等因素,而批次大小又受共享 GPU 的其他用户流量的影响。计算出的 logits 的这些细微差异可能导致模型选择不同的 token,从而产生完全不同的生成文本,即使提示和参数相同。 AI

影响 强调了一个微妙但关键的、影响 LLM 输出可复现性的问题,对测试和部署产生影响。

排序理由 解释了与浮点数算术和 GPU 执行相关的 LLM 推理的技术细节。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — LLM tag 阅读 →

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

LLM temperature=0 的输出可能因浮点数计算和共享 GPU 而异

本文如何被排名

Signal score
43 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
解释了与浮点数算术和 GPU 执行相关的 LLM 推理的技术细节。[lever_c_demoted from research: ic=1 ai=1.0]
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
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

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

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · jidonglab ·

    temperature=0 并非确定性:5000 个贪婪 token 中有 17 个发生翻转

    <p>I had a regression test that sent the same prompt to an LLM endpoint with <code>temperature=0</code> and diffed the output against a saved golden file. It passed on Monday. It failed on Tuesday. Same prompt, same model, same parameters. The two outputs matched word for word fo…