Skip to content

[Bug] aisbench运行环境安装prefix_cache依赖后会导致环境异常,执行非prefix_cache的评测命令会报错 #559

Closed

Description

@liuyang-2026

操作系统及版本

openEuler 22.03 (LTS-SP4)

安装工具的python环境

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

python版本

3.10

AISBench工具版本

3.1.20260912

AISBench执行命令

ais_bench --models vllm_api_general_chat --datasets demo_gsm8k_gen_4_shot_cot_chat_prompt --debug

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

修改vllm_api_general_chat接口配置文件参数,使其能够正常访问服务化即可
准备数据集文件位于ais_bench/datasets/目录下

预期行为

评测正常,成功输出精度信息

实际行为

评测启动过程中报错,日志如下
[2026-09-20 16:53:54,244] [ais_bench] [INFO] Loading vllm_api_general_chat: /workspace/benchmark/ais_bench/benchmark/configs/./models/vllm_api/vllm_api_general_chat.py
[2026-09-20 16:53:54,251] [ais_bench] [INFO] Loading demo_gsm8k_gen_4_shot_cot_chat_prompt: /workspace/benchmark/ais_bench/benchmark/configs/./datasets/demo/demo_gsm8k_gen_4_shot_cot_chat_prompt.py
[2026-09-20 16:53:54,258] [ais_bench] [INFO] Loading example: /workspace/benchmark/ais_bench/benchmark/configs/./summarizers/example.py
[2026-09-20 16:53:54,313] [ais_bench] [INFO] Current exp folder: outputs/default/20260920_165340
Traceback (most recent call last):
File "/root/miniconda3/envs/ais_bench/bin/ais_bench", line 6, in
sys.exit(main())
File "/workspace/benchmark/ais_bench/benchmark/cli/main.py", line 6, in main
task_manager.run()
File "/workspace/benchmark/ais_bench/benchmark/cli/task_manager.py", line 35, in run
cfg = self.config_manager.load_config(self.workflow)
File "/workspace/benchmark/ais_bench/benchmark/cli/config_manager.py", line 117, in load_config
self._fill_dataset_configs()
File "/workspace/benchmark/ais_bench/benchmark/cli/config_manager.py", line 604, in _fill_dataset_configs
fill_model_path_if_datasets_need(self.cfg["models"][0], dataset_cfg)
File "/workspace/benchmark/ais_bench/benchmark/cli/utils.py", line 54, in fill_model_path_if_datasets_need
data_type = get_config_type(dataset_cfg.get("type"))
File "/root/miniconda3/envs/ais_bench/lib/python3.10/site-packages/mmengine/config/config.py", line 171, in get
return self.build_lazy(super().get(key, default))
File "/root/miniconda3/envs/ais_bench/lib/python3.10/site-packages/mmengine/config/config.py", line 217, in build_lazy
value = value.build()
File "/root/miniconda3/envs/ais_bench/lib/python3.10/site-packages/mmengine/config/lazy.py", line 77, in build
raise ImportError(
ImportError: Failed to import GSM8KDataset from ais_bench.benchmark.datasets in /workspace/benchmark/ais_bench/benchmark/configs/./datasets/demo/../gsm8k/gsm8k_gen_4_shot_cot_chat_prompt.py, line 4

前置检查

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

Activity

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

    @github-actions

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

    问题内容检查结果

    检查状态

    FAIL

    详细检查

    • 操作系统及版本: COMPLETE
    • 安装工具的python环境: COMPLETE
    • python版本

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

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

  4. added
    content_check_failed
    on Sep 20, 2026
  5. self-assigned this
    on Sep 20, 2026
  6. github-actions commented on Sep 22, 2026

    @github-actions

    ⚠️ 此 Issue 无法关闭

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

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

  7. removed
    not_fixed
    on Sep 22, 2026
  8. liuyang-2026 commented on Sep 22, 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