LongBench icon indicating copy to clipboard operation
LongBench copied to clipboard

A bug that has been mentioned many times: 'NoneType' object is not callable

Open zZzZ9zZ9 opened this issue 8 months ago • 0 comments

File "/workspace/mnt/cm-nfx/LongBench/pred.py", line 166, in data = load_dataset('THUDM/LongBench', dataset, split='test') File "/opt/conda/envs/longbench/lib/python3.10/site-packages/datasets/load.py", line 2129, in load_dataset builder_instance = load_dataset_builder( File "/opt/conda/envs/longbench/lib/python3.10/site-packages/datasets/load.py", line 1886, in load_dataset_builder builder_instance: DatasetBuilder = builder_cls( TypeError: 'NoneType' object is not callable

This is a bug that has been mentioned many times in previous issues, and I have also encountered this bug. Is there any method to solve it? Looking forward to your reply!

I just run this codes from Huggingface.

from datasets import load_dataset

datasets = ["narrativeqa", "qasper", "multifieldqa_en", "multifieldqa_zh", "hotpotqa", "2wikimqa", "musique",
"dureader", "gov_report", "qmsum", "multi_news", "vcsum", "trec", "triviaqa", "samsum", "lsht",
"passage_count", "passage_retrieval_en", "passage_retrieval_zh", "lcc", "repobench-p"]

for dataset in datasets: data = load_dataset('THUDM/LongBench', dataset, split='test')

zZzZ9zZ9 avatar Apr 01 '25 17:04 zZzZ9zZ9