Practical overview
When it fits
Use Infinitebench when an evaluation needs to test model behavior on very long contexts, including inputs above 100,000 tokens.
Who it is for
- Researchers comparing language models’ long-context performance
- Developers evaluating retrieval, summarization, reasoning, language or code tasks with extended inputs
Documented uses
- Compare model performance across long-context tasks.
- Measure how a model handles retrieval, question answering, summarization, code and synthetic reasoning examples.
- Inspect task-level evaluation results rather than relying on a single aggregate measure.
Requirements & limits
The project is publicly available under the MIT license. The repository documents Python dependency installation and provides a dataset download route through Hugging Face.
- The benchmark emphasizes contexts longer than 100,000 tokens.
- Tasks range from book summarization and question answering to code debugging, arithmetic and information retrieval.
- The README provides different evaluation scripts for specific model setups; users need to select a documented script and task argument.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run an InfiniteBench task with a supported evaluator
Install the listed Python requirements, prepare the dataset files, and invoke one of the README’s example evaluation scripts.
Before you start
- A Python environment capable of installing the project requirements.
- The dataset files arranged in a
datafolder, or available at a location specified with--data_dir.
Steps
Install dependencies with the command below.
pip install -r requirements.txtDownload the dataset and place its JSONL files in the
datafolder, or note the dataset location for--data_dir.From the
srcfolder, run one documented example: the command below, the command below, or the command below.python eval_yarn_mistral.py --task kv_retrievalpython eval_gpt4.py --task longbook_sum_qapython eval_rwkv.py --task passkeyUse a task argument from the README’s task table when selecting a task.
Expected outcome
The selected evaluator script is invoked with a task argument and the prepared dataset location.
Guide limitations
- The documented examples use
longbook_sum_qa, while the task table listslongbook_sum_engfor En.Sum. - The dataset files must be obtained separately; the README does not provide download instructions.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- OpenBMB/InfiniteBench · Official homepage title · retained in its source language

