mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5085] [Engine] 0.1.56: DFlash2 prompt window limit 300K - 4-way concurrent 250K prompts fail with 400 Bad Request #2368
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#2368
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 @wan0791 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5085
[Engine] 0.1.56: DFlash2 prompt window limit 300K - 4-way concurrent 250K prompts fail with 400 Bad Request
版本 / Version: Strata 0.1.56 (engine package
strata-engine-0.1.56-linux-x86_64-hip-rx7900)App: Strata 0.2.10
中文
Bug 描述
0.1.55 可以处理 4 路并发各 250K 的 prompt(4 × 250K = 1,000,000 tokens)。升级到 0.1.56 后,DFlash2 的 prompt 窗口限制为 300,063 tokens,无法同时处理 4 个 250K 的 prompt。
当 4 路并发各 250K 的 prompt 时,引擎返回 400 Bad Request:
而 0.1.55 引擎可以正常处理 4 路并发各 250K 的 prompt,无此限制。
复现步骤
期望行为
与 0.1.55 一致,可以处理 4 路并发各 250K 的 prompt。
实际行为
引擎返回 400 Bad Request,提示 "prompt (300063 tokens) leaves no room to answer in the context (262144)"。
环境
备注
English
Bug Description
0.1.55 can handle 4-way concurrent prompts of 250K tokens each (4 × 250K = 1,000,000 tokens). After upgrading to 0.1.56, the DFlash2 prompt window is limited to 300,063 tokens, so it cannot handle 4 concurrent 250K prompts.
When sending 4 concurrent 250K prompts, the engine returns 400 Bad Request:
0.1.55 can handle 4-way concurrent 250K prompts without this limitation.
Reproduction Steps
Expected Behavior
Same as 0.1.55: can handle 4-way concurrent 250K prompts.
Actual Behavior
Engine returns 400 Bad Request with "prompt (300063 tokens) leaves no room to answer in the context (262144)".
Environment
Notes
@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
strata --version).Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks, this follows the format now.
@wan0791 commented on GitHub (Nov 7, 2026):
更正 / Correction:这不是引擎 bug,是我们的配置错误
结论:
400 ... prompt (300063 tokens) leaves no room to answer in the context (262144)是纯粹的上下文上限检查,不是 DFlash2 的 prompt 窗口限制。真实原因是我们侧的--max-context当时被设成了 262144(256K),而测试 prompt 有 300,063 token。证据 / Evidence
--max-context 262144(报错时)--max-context 524288(恢复后,0.1.57)--max-context 1048576+--rope-scaling yarn --rope-scale 40.1.55 当时能跑 4×250K,也是因为那时
--max-context是 524288,不是引擎版本差异。判断 / Verdict
--max-context就拒绝,并把两个数字都报出来(prompt 300063 / context 262144),提示其实很到位。--max-context从 524288 改成 262144 有关。--max-context 524288,问题消失;同机另测 288K(512K 配置)与 604K(1M 配置)prompt 均通过。抱歉提交了一条误导性的 issue,浪费了排查时间。按
not planned关闭。Conclusion: this was a configuration error on our side —
--max-contexthad been lowered from 524288 to 262144 while the test prompt was 300,063 tokens, so the request legitimately exceeded the context window. It is not a DFlash2 prompt-window limitation, and the engine behaved correctly (it named both numbers in the error). After restoring--max-context 524288on engine 0.1.57, a 288,063-token prompt passes (191.7 s), and a 604,498-token prompt passes with a 1M context. Closing as not planned; sorry for the noise.