--- license: apache-2.0 pretty_name: "LongBench" language: - code - en - zh task_categories: - question-answering - summarization - text-classification - text-generation task_ids: - extractive-qa - open-domain-qa - document-question-answering - news-articles-summarization - dialogue-generation - multi-class-classification - language-modeling - text2text-generation tags: - longbench - long-context - benchmark - evaluation - multilingual - bilingual - question-answering - summarization - code - llm - large-language-models size_categories: - 1K/test-*.parquet`. 10. Generates this dataset card dynamically from the detected files and statistics. 11. Generates `dataset_infos.json` and `build_metadata.json`. 12. Optionally creates the Hugging Face dataset repository. 13. Uploads the generated repository folder to the Hugging Face Hub. 14. Optionally performs a remote smoke test with `load_dataset`. ## Validation Notes The build script supports strict and non-strict modes. In strict mode, the script fails if required fields are missing, if `input` or `context` are empty, if `length` is negative, or if list-like fields cannot be normalized. In non-strict mode, the script preserves maximum compatibility by filling missing optional values with deterministic defaults where possible. ## Citation If you use this repackaged dataset, cite the original LongBench paper: ```bibtex @article{bai2023longbench, title={LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding}, author={Bai, Yushi and Lv, Xin and Zhang, Jiajie and Lyu, Hongchang and Tang, Jiankai and Huang, Zhidian and Du, Zhengxiao and Liu, Xiao and Zeng, Aohan and Hou, Lei and Dong, Yuxiao and Tang, Jie and Li, Juanzi}, journal={arXiv preprint arXiv:2308.14508}, year={2023} } ``` ## License This repository uses the license metadata `apache-2.0`. Users should verify licensing and redistribution requirements against the original LongBench project and any upstream datasets included in LongBench before public redistribution or commercial usage. ## Acknowledgements All benchmark design, task construction, and source data attribution belong to the LongBench authors and the THUDM LongBench project. This repository only repackages the source files for easier loading and use through the Hugging Face Hub.