[GUI] Status page: Speculation line prints "MTP drafts up to NaN tokens" on the strata-q4-lite host
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 77/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
- 领域
- frontend
调研方向
从 serve/web/app.js 第 812 行附近开始,那里状态页面会构建 Speculation 行;检查 /metrics 如何提供 eng.spec 和 eng.mtp_max。使用报告中的值 spec: "mtp" 重现,并确认该行会显示有限的草稿数量,或者在没有可用数字时隐藏。该 issue 还提到,另一种方案是在独立主机中发布 mtp_max;请查看 #8036 了解相关范围。
由索引模型根据 Issue 内容生成。
描述
[GUI] Status page: Speculation line prints "MTP drafts up to NaN tokens" on the strata-q4-lite host
Bug Description
On a Qwen4-35B-A3B .strata pack running on the standalone host (strata-q4-lite, NVIDIA/CUDA), the status page renders the Speculation row as "MTP drafts up to NaN tokens". The drafter itself works fine — only the number is broken. Cosmetic, front-end only; related to the scope discussed in #8036 but a separate defect.
Steps to Reproduce
- Set up Qwen4-35B-A3B (any .strata tier) on Linux/NVIDIA via the signed-feed components (Control 0.1.74.4, engine 0.1.73).
- Turn MTP on (setup writes
qwen4_mtp_mode: on; the start adds--mtp <file> --spec 2). - Open the status page.
Expected Behavior
The row shows the draft window the engine actually uses (or the row hides itself when the host publishes no number).
Actual Behavior
serve/web/app.js line 812:
["Speculation", eng.spec && (eng.drafting == null || eng.drafting === "mtp")
? `MTP drafts up to ${Math.max(0, (eng.mtp_max || eng.spec) - 1)} tokens...` : null],
The guard passes because eng.spec is truthy — but on this host /metrics reports spec: "mtp" (a string, the drafter type from strata_control/drafting.engine_info) and no mtp_max at all. So the expression computes "mtp" - 1 → NaN, and Math.max(0, NaN) is NaN. Every GGUF build previously reported a numeric K here, so the string case was never exercised.
Fix either side:
- front end: only render the count when
Number.isFinite(eng.mtp_max ?? eng.spec); or - have the standalone host publish
mtp_maxin its info (ties into #8036).
Environment
- OS: Ubuntu 26.04.1 LTS, kernel 7.0.0-44-generic
- Control 0.1.74.4, engine 0.1.73 linux-x86_64-cuda-cuda13 (feed sequence 145)
- GPU: RTX 3090; model Qwen4-35B-A3B Balanced + PLE-Q8_0 + MTP (
--spec 2)
Error Output
GET /metrics → engine: {"spec": "mtp", "drafting": "mtp", "drafting_note": ""} # no mtp_max
page: Speculation | MTP drafts up to NaN tokens
Additional Context
Workaround: none needed functionally — speculation runs (bench decode ~100 tok/s with MTP vs ~24-31 without on the same card); the label is display-only noise.
- 主要语言
- C++
- 星标
- 11.6k
- 派生
- 1k
- 平均合并
- 4 天 17 小时
- 30 天内合并 PR
- 28
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Niko1221/Strata 的其他 Issue
-
[Benchmark] RX 6900 XT (gfx1030): Linux rx6000 package runs Qwen4-35B-A3B Balanced, 60 tok/s decode未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 3 天内回复
-
[Engine] Qwen4: a tool call written inline inside the thinking is dropped (the answer comes back reasoning-only, stop_reason "stop")可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
Niko1221/Strata#8057 · 2 条评论 ·
维护者通常 3 天内回复
-
[Engine] serve drops --mtp/--spec-min-p from a run config's args with no warning: the MTP draft layer silently never loads可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
Niko1221/Strata#7970 · 2 条评论 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Niko1221/Strata#7922 · 3 条评论 · 3 个 reaction ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Niko1221/Strata#7895 · 3 条评论 ·
维护者通常 3 天内回复
相似的 Issue
-
bug data-types
难度 2/5 1-3 小时 新手友好度 76/100
ClickHouse/clickhouse-cpp#645 ·
维护者通常 1 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
connector-maintenance
难度 2/5 1-3 小时 新手友好度 72/100
gettakaro/connectors#1067 ·
维护者通常 1 天内回复
-
bot-triaged enhancement module: fft triaged
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100