Skip to content

[Bug] 执行ais-bench-prefix-cache run --scenario ./scenario.json命令进行Prefix Cache 数据评测报错 #548

Closed

Description

@liuyang-2026

操作系统及版本

3.1.20260912

安装工具的python环境

在anaconda/miniconda创建的python虚拟环境

python版本

3.10

AISBench工具版本

3.1.20260912

AISBench执行命令

ais-bench-prefix-cache run --scenario ./scenario.json

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

scenario.json文件正常配置,执行inspect、prepare、prepare命令均正常

预期行为

Prefix Cache 数据评测正常并输出性能信息

实际行为

评测报错: File "/root/miniconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/lazy.py", line 70, in build
raise type(e)(f'Failed to import {self._module} '
ImportError: Failed to import ais_bench_prefix_cache.models.vllm_prefix_cache_api in /tmp/aisbench-prefix-cache-config-ix7j_rmw/config.py, line 7 for cannot import name 'VLLMCustomAPI' from partially initialized module 'ais_bench.benchmark.models.api_models.vllm_custom_api' (most likely due to a circular import) (xxxx/benchmark/ais_bench/benchmark/models/api_models/vllm_custom_api.py)
ERROR: AISBench failed with exit code 1

前置检查

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

Activity

  1. added
    bug
    not_fixed
    on Sep 16, 2026
  2. github-actions commented on Sep 16, 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 Sep 16, 2026

    @github-actions

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

    问题内容检查结果

    检查状态

    FAIL

    详细检查

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

    改进建议

    • 操作系统及版本: 请补充具体的操作系统名称(例如:Ubuntu 20.04, CentOS 7, Windows 10等),以及该操作系统的具体版本号。目前提供的“3.1.20260912”更像是一个组件版本而非操作系统版本。
    • 模型配置文件或自定义配置文件内容: 请提供scenario.json文件的具体内容。虽然描述中提到“文件正常配置,执行inspect、prepare、prepare命令均正常”,但实际的配置文件内容对于排查问题至关重要。

    补充说明

    请提供更详细的操作系统信息和scenario.json文件的内容,这将有助于更快地定位和解决问题。

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

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

  4. added
    content_check_failed
    on Sep 16, 2026
  5. self-assigned this
    on Sep 16, 2026
  6. linked a pull request that will close this issue[bugfix] fix prefix cache circular import #547on Sep 16, 2026
  7. github-actions commented on Sep 16, 2026

    @github-actions

    ⚠️ 此 Issue 无法关闭

    该 Issue 带有 not_fixed 标签,表示问题尚未完全解决。

    修复此问题的 PR 可能已经合入,请 @liuyang-2026 验证后移除 not_fixed 标签并手动关闭此 Issue。

  8. removed
    not_fixed
    on Sep 16, 2026
  9. liuyang-2026 commented on Sep 16, 2026

    @liuyang-2026
    CollaboratorAuthor

    已验证,问题已经解决

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