Skip to content

[Bug] ifbench数据集评测,eval阶段,nltk包无法正确加载 #441

Closed

Description

@liuyang-2026

操作系统及版本

Alibaba Cloud Linux 3.2104 U10 (OpenAnolis Edition)

安装工具的python环境

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

python版本

3.10

AISBench工具版本

3.1.20260728

AISBench执行命令

ais_bench --models vllm_api_general_chat --datasets ifbench_0_shot_gen_str --debug

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

ais_bench/benchmark/configs/models/vllm_api/vllm_api_general_chat.py:
path="xxx/model/MiniMax-M2.5/",
model="MiniMax-M2.5",
max_out_len=2048,
batch_size=8,
generation_kwargs=dict(
temperature=0.03,
),
pred_postprocessor=dict(type=extract_non_reasoning_content_raw),
使能环境变量 NLTK_DATA 指向 nltk_data 目录
export NLTK_DATA=xxx/nltk_data

预期行为

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

实际行为

infer阶段正常,eval阶段nltk包无法正确加载,程序异常终止未输出精度信息
[2026-08-05 15:13:23,701] [ais_bench] [INFO] Starting evaluation tasks...
[2026-08-05 15:13:23,704] [ais_bench] [INFO] Partitioned into 1 tasks.
[2026-08-05 15:13:23,717] [ais_bench] [INFO] Launch TasksMonitor, PID: 1929228, Refresh interval: 0.5, Run in background: True
[2026-08-05 15:13:34,077] [ais_bench] [INFO] Debug mode, print progress directly
[2026-08-05 15:13:34,223] [ais_bench] [INFO] [ifbench][load] Loading IFBench dataset from: xxx/benchmark/ais_bench/benchmark/datasets/utils/../../../../ais_bench/datasets/ifbench/data/train-00000-of-00001.parquet
[2026-08-05 15:13:34,280] [ais_bench] [INFO] [ifbench][load] IFBench dataset loaded: 300 samples
[2026-08-05 15:13:34,496] [ais_bench] [INFO] Running 1-th replica of evaluation
[2026-08-05 15:13:34,496] [ais_bench] [INFO] [ifbench][score] ========== Score Start, total samples: 300 ==========
[nltk_data] Error loading stopwords: <urlopen error [Errno 101]
[nltk_data] Network is unreachable>
[nltk_data] Error loading stopwords: <urlopen error [Errno 101]
[nltk_data] Network is unreachable>
^CTraceback (most recent call last):
File "xxx/benchmark/ais_bench/benchmark/datasets/ifbench/instructions_util.py", line 11, in _ensure_nltk_data
nltk.data.find(f'tokenizers/{data_name}')
File "/root/miniconda3/envs/aisbench_py310/lib/python3.10/site-packages/nltk/data.py", line 738, in find
raise LookupError(resource_not_found)
LookupError:


Resource 'stopwords' not found.
Please use the NLTK Downloader to obtain the resource:

import nltk
nltk.download('stopwords')

For more information see: https://www.nltk.org/data.html

Attempted to load 'tokenizers/stopwords'

Searched in:
- 'xxx/nltk_data'
- '/root/nltk_data'
- '/root/miniconda3/envs/aisbench_py310/nltk_data'
- '/root/miniconda3/envs/aisbench_py310/share/nltk_data'
- '/root/miniconda3/envs/aisbench_py310/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'


前置检查

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

Activity

  1. added
    bug
    on Aug 6, 2026
  2. github-actions commented on Aug 6, 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 Aug 6, 2026

    @github-actions

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

    问题内容检查结果

    检查状态

    PASS

    详细检查

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

    改进建议

    所有内容已完备!

    补充说明

    该Issue内容非常详细和完整,提供了所有必需的信息,包括清晰的复现步骤、配置信息和详细的错误日志(实际行为部分),对于问题的诊断非常有帮助。

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

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

  4. added
    content_check_passed
    on Aug 6, 2026
  5. self-assigned this
    on Aug 11, 2026
  6. linked a pull request that will close this issue修改nltk加载包的路径 #439on Aug 11, 2026
  7. liuyang-2026 commented on Aug 14, 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_passed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions