mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4598] [Engine] 0.1.52 update fails at test-start: --eos regression + DeepSeek config chosen for the standard engine / 引擎 0.1.52 更新在测试启动失败 #2083
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2083
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jacky-Yan040212 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4598
Strata Bug Report / Strata 问题报告
Date / 日期: 2026-10-29
Reporter environment / 报告环境: Windows 10.0.22631, NVIDIA RTX 5070 Ti (sm_120), Driver 596.49
Bug 1: Engine 0.1.52 update fails at test-start —
--eosargument regression问题 1:引擎 0.1.52 更新在"测试启动"阶段失败 ——
--eos参数回归Summary / 摘要
The engine update from 0.1.50 to 0.1.52 downloads and verifies successfully, but fails at the
test-start step. Control 0.1.53 still passes the legacy
--eos 1argument to the engine, butengine 0.1.52 no longer accepts
--eos. The engine printsunknown argument: --eosand exits,so Strata rolls back to 0.1.50 and marks 0.1.52 as failed.
引擎从 0.1.50 升级到 0.1.52 时,下载和校验都成功,但在"测试启动"步骤失败。控制组件 0.1.53
仍然向引擎传入已废弃的
--eos 1参数,而引擎 0.1.52 已不再接受--eos。引擎打印unknown argument: --eos后退出,于是 Strata 回退到 0.1.50 并将 0.1.52 标记为失败。Reproduction / 复现
strata update(or press "Update engine" in Settings → About).在 CUDA 机器上安装 Strata 桌面版 0.2.7(引擎 0.1.50、控制组件 0.1.53),运行
strata update(或在「设置 → 关于」中点击"更新引擎")。引擎压缩包完整下载后,测试启动失败。Evidence / 证据
Test-start log fragment (
components/.updates/logs/test-start-0.1.52.log):state.jsonstores the failure:Root cause / 根因
control/0.1.53/setup.py:8451(and alsocontrol/0.1.51/setup.py:8248) still writes"--eos", "1"into the engine's run config / start args.Engine 0.1.52 dropped
--eos(the help text now only mentions--eos-ids, seeserve/server.py:855EOS_IDS = {248044, 248046} # the engine's default --eos-ids).So the two components shipped together are internally incompatible.
control/0.1.53/setup.py:8451(以及control/0.1.51/setup.py:8248)仍把"--eos", "1"写入引擎的运行配置/启动参数。
引擎 0.1.52 已移除
--eos(帮助文本现在只提到--eos-ids,见serve/server.py:855EOS_IDS = {248044, 248046} # the engine's default --eos-ids)。因此一同发布的这两个组件内部不兼容。
Root cause (verified / 已验证根因)
Actually TWO defects combine here / 实际是两个缺陷叠加:
--eosregression:setup.pystill writes--eos 1, engine 0.1.52 dropped it.--eos回归:setup.py仍写--eos 1,引擎 0.1.52 已删除该参数。discover_run_config()picks the wrong model's run config: it selects the firstpresentmodel, which on this PC is the DeepSeek model (arch: deepseek41,pack = a DeepSeek pack, args include
--dspark/--dspark-conf). The staged standardengine (
strata.exe, a Qwen build) cannot load a deepseek41 pack at all — so even afterfixing
--eos, the test start cannot pass.discover_run_config()选错模型配置:它选第一个present模型,本机是 DeepSeek模型(
arch: deepseek41,pack 是 DeepSeek 的,args 含--dspark/--dspark-conf)。staged 的标准引擎(
strata.exe,Qwen 版本)根本加载不了 deepseek41 的 pack,所以即使修了
--eos也过不了。Verified fix (worked on this PC / 本机已验证可行)
Both changes in
control/0.1.53/strata_control/updater.py:--eosto the test-start drop list:After both edits + clearing
engine.failedinstate.json,strata update --no-controlsucceeded: the test start loaded the Qwen model, answered the one-token probe, and the
engine switched 0.1.50 → 0.1.52.
两处修改后(并清掉
state.json里的engine.failed),strata update --no-control成功:测试启动加载了 Qwen 模型、回答了一个 token,引擎从 0.1.50 切到 0.1.52。
Suggested upstream fix / 建议上游修复
Stop writing
--eos 1insetup.py(engine 0.1.52 uses--eos-ids; default248044/248046).Make
light_test_args()drop legacy/unknown flags (--eos,--dspark,--dspark-conf).Make
discover_run_config()skip configs whosearchthe staged engine cannot load(e.g. skip
deepseek41when test-starting the standardstrata-enginecomponent).setup.py不再写--eos 1;light_test_args()剔除遗留/未知参数(--eos、--dspark、--dspark-conf);discover_run_config()跳过 staged 引擎无法加载的架构配置(例如测试标准strata-engine组件时跳过deepseek41)。Bug 2 (previously reported / 之前已上报): update check fails without network — generic error wording
问题 2(之前已上报):无网络时更新检查失败 —— 错误提示笼统
Summary / 摘要
When GitHub is unreachable (common in mainland China without a working accelerator), the
"About" page shows only the generic sentence
"Couldn't check for updates. Try again in a moment."with no indication that the real causeis network inability to reach
github.com/ the update feed. This happens becausecheckComponentUpdatesinhost/server/updates.mjsonly special-cases error headlines matching/update server|aren't available|No internet/; a plainURLError: WinError 10060timeout doesnot match, so the user only sees the generic text.
当 GitHub 无法访问时(在大陆无可用加速器时很常见),「关于」页只显示笼统的
"Couldn't check for updates. Try again in a moment.",没有提示真正的网络原因。这是因为host/server/updates.mjs的checkComponentUpdates只对匹配/update server|aren't available|No internet/的错误标题做特殊处理;普通的URLError: WinError 10060超时不匹配,用户只能看到笼统文案。Evidence / 证据
host/server/updates.mjs:59:Actual underlying error returned by control:
Suggested fix / 建议修复
Let
looksOffline()/plainUpdateError()recognize the Windows timeout/network errorclasses (
WinError 10060,10061,11001,getaddrinfo,URLError: <urlopen error ...>)as offline/network, so the UI can say "No internet connection" or "Couldn't reach the update
server" instead of the generic sentence.
让
looksOffline()/plainUpdateError()识别 Windows 超时/网络错误类别(
WinError 10060、10061、11001、getaddrinfo、URLError: <urlopen error ...>)为离线/网络问题,从而 UI 显示"无网络连接"或"无法连接更新服务器"而非笼统文案。
Bug 3 (previously reported / 之前已上报): public mirror downloader struggles with gh-proxy range handling
问题 3(之前已上报):公共镜像下载器对 gh-proxy 的 Range 处理不稳
Summary / 摘要
When reaching GitHub via a public proxy such as
gh-proxy.com, the proxy intermittently ignoresRange: bytes=...and returns HTTP 200 (full body) instead of 206. Client downloaders thatblindly append to the partial file then corrupt it (file size shrinks / restarts). Observed while
downloading the ~592 MB engine archive and ~107 MB setup.exe.
当通过
gh-proxy.com等公共代理访问 GitHub 时,代理会间歇地忽略Range: bytes=...并返回HTTP 200(整个文件)而非 206。盲目追加写入
.part文件的客户端会因此损坏文件(文件大小回退/重新开始)。在下载约 592 MB 引擎包和 107 MB 安装包时观察到。
Suggested fix / 建议修复
When a resumed GET returns 200 instead of 206, discard any full-body bytes and retry, never
append a full response to an existing partial file (Strata's own
transfer._transferalreadyguards this correctly — good reference implementation).
当断点续传请求返回 200 而非 206 时,应丢弃整段响应并重试,绝不把完整响应追加到已有的
部分文件之后(Strata 自带的
transfer._transfer已正确防护这一点——可作为参考实现)。@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.