Repository navigation
Description
操作系统及版本
openEuler 24.03 (LTS-SP4)
安装工具的python环境
在anaconda/miniconda创建的python虚拟环境
python版本
3.10
AISBench工具版本
3.1.0,commit id: 29c363e
AISBench执行命令
ais_bench --models vllm_api_general_chat --datasets synthetic_gen --mode perf
模型配置文件或自定义配置文件内容
models文件配置
{
"attr": "service",
"type": VLLMCustomAPIChat,
"abbr": "vllm-api-general-chat",
"path": "xxx/models_weight/Qwen2.5-7B-Instruct",
"model": "x",
"stream": False,
"request_rate": 800,
"use_timestamp": False,
"retry": 2,
"api_key": "",
"host_ip": "localhost",
"host_port": 8182,
"url": "",
"max_out_len": 512,
"batch_size": 10000,
"trust_remote_code": False,
"generation_kwargs": {
"temperature": 0.01,
"ignore_eos": True
},
"pred_postprocessor": {"type": extract_non_reasoning_content}
}
数据集synthetic配置
{
"Type": "string",
"RequestCount": 10000,
"StringConfig": {
"Input": {
"Method": "uniform", "Params": {"MinValue": 1024, "MaxValue": 1024}
},
"Output": {
"Method": "uniform", "Params": {"MinValue": 4096, "MaxValue": 4096}
}
}
}
预期行为
评测正常运行
实际行为
报错:
/home/autotest/AutoTestProperty/aisbench_benchmark/benchmark/ais_bench/benchmark/configs/./datasets/synthetic/synthetic_gen.py
Traceback (most recent call last):
File "/home/autotest/AutoTestProperty/aisbench_benchmark/benchmark/ais_bench/benchmark/cli/config_manager.py", line 644, in _load_datasets_config
cfg = Config.fromfile(dataset[1])
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/config.py", line 494, in fromfile
raise e
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/config.py", line 492, in fromfile
cfg_dict, imported_names = Config._parse_lazy_import(filename)
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/config/config.py", line 1071, in _parse_lazy_import
root_path = get_installed_path(package)
File "/home/anaconda3/envs/aisbench_py310/lib/python3.10/site-packages/mmengine/utils/package_utils.py", line 48, in get_installed_path
from pkg_resources import DistributionNotFound, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
当前环境是删除conda环境后根据资料新安装,部分用例会遇到此报错
pkg_resources依赖setuptools,当前环境的setuptools默认安装的83.0.0版本,会出现错误,查看以前的环境上此包的版本是78.1.1,手动将此依赖安装78.1.1可以正常运行,建议修改安装过程中指定包的版本否则会报错
前置检查
- 我已读懂主页文档的快速入门,无法解决问题
- 我已检索过FAQ,无重复问题
- 我已搜索过现有Issue,无重复问题
- 我已更新到最新版本,问题仍存在
Activity
github-actions commentedon Aug 24, 2026
🌟欢迎给AISBench benchmark测评工具提issue,您可以先尝试以下途径寻求issue的解决方法:
github-actions commentedon Aug 24, 2026
🤖 基于AI机器人的issue内容完整性检查结果:
问题内容检查结果
检查状态
PASS
详细检查
改进建议
所有内容已完备!
补充说明
该Issue内容非常详细和完整,不仅提供了所有必需的信息,还包括了详细的错误堆栈、问题分析和初步的解决方案,对于问题排查非常有帮助。
👉 如果想重新检查,在评论区@issue_checker即可。
【强烈推荐❤️🔥】确保issue描述完整后,可以试着将issue交给
回答,deepwiki包含了和工具相关的所有知识库
liuyang-2026 commentedon Sep 21, 2026
问题已解决