Skip to content

[Bug] prefix_cache prepare 报 unable to construct a round-trip-safe prompt,2000 条场景第 53 条中断 #681

In review

Description

@Ant1thesi4

操作系统及版本

Linux node110 6.6.0-145.3.34.165.oe2403sp3.aarch64 #1 SMP Mon Sep 28 12:21:53 CST 2026 aarch64 openEuler 24.03 SP3;

安装工具的python环境

docker容器中的python环境

python版本

其他

AISBench工具版本

3.1.20260508

AISBench执行命令

ais-bench-prefix-cache prepare --mode text --scenario scenario-dsv41-2000.json

模型配置文件或自定义配置文件内容

{
"run": {"run_id": "dsv41-pd-2000-b128-c100", "random_seed": 42,
"output_dir": "./outputs/dsv41-pd-2000-b128-c100", "overwrite": false},
"tokenizer": {"path": "/mnt/weight/POC/A5/DeepSeek-V4.1-Flash-1017",
"block_size": 128, "revision": null, "trust_remote_code": false},
"corpus": {"path": "./data/corpus.jsonl", "field": "question",
"selection": {"mode": "random"}},
"requests": {"count": 2000,
"input_length": {"mode": "csv", "path": "./data/input-lengths-2000.csv"},
"output_length": {"mode": "fixed", "value": 1024}},
"prefix_cache": {"mode": "cold", "target_hit_rate": 0.9, "seed_blocks": 1,
"minimum_non_shared_length": 128,
"groups": {"count": 1, "assignment": {"mode": "uniform"}, "overrides": {}},
"order": {"strategy": "input_len_asc"}},
"output": {"output_key": null}
}

预期行为

Linux node110 6.6.0-145.3.34.165.oe2403sp3.aarch64 #1 SMP Mon Sep 28 12:21:53 CST 2026 aarch64
openEuler 24.03 SP3;容器内 python 3.12.13

prepare 完成全部 2000 条请求的构造,产出 _full.jsonl、_requests.jsonl、manifest 与 analysis。

实际行为

前 53 条正常,第 54 条中断:

Generate prompts [------------------------------] 53/2000 2%
ERROR: unable to construct a round-trip-safe prompt for request-00000053

<output_dir>/log/<run_id>.prepare.log 中同一请求连续出现 64 次重试后失败:

[prepare] _build_prompt_with_seed_retry request_id=request-00000053 attempt=N PromptRoundTripError -> regenerating seed

现象稳定复现:同一 scenario(random_seed=42)重跑会在同一请求处失败,属确定性结果。

前置检查

  • 我已读懂主页文档的快速入门,无法解决问题
  • 我已检索过FAQ,无重复问题
  • 我已搜索过现有Issue,无重复问题
  • 我已更新到最新版本,问题仍存在

Activity

  1. added
    bug
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions

    🌟欢迎给AISBench benchmark测评工具提issue,您可以先尝试以下途径寻求issue的解决方法:

    1. 【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库
    2. 在 工具历史issue 中通过问题的关键日志片段或关键词检索相似issue
    3. 在 官方文档 的搜索栏中通过问题的关键日志片段或关键词检索
    4. 寻求仓库维护者的帮助(issue评论区中 @SJTUyh)
  3. github-actions commented on Nov 18, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    FAIL

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本: INCOMPLETE
    • AISBench工具版本: COMPLETE
    • AISBench执行命令: COMPLETE
    • 模型配置文件或自定义配置文件内容: COMPLETE
    • 实际行为: COMPLETE

    改进建议

    • python版本: 当前填写为“其他”,但在“预期行为”中提到了“容器内 python 3.12.13”。建议在“python版本”部分明确指出Python的具体版本号,例如“3.12.13”,以保持信息一致性和完整性。

    补充说明

    除了“python版本”部分需要明确具体版本号外,其他所有必需部分都已提供,并且信息详细、清晰,有助于问题的诊断。

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  4. added
    content_check_failed
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcontent_check_failed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions