Skip to main content
This project supports flexible benchmark data loading from both local files and HuggingFace.

Local Default

Uses local data by default. HuggingFace mode downloads into the HF cache (~/.cache/huggingface).

JSONL Format

Uses efficient JSONL format for data storage, supporting streaming processing.

Data Source Configuration

1. Standard Benchmarks

For LexBench-Browser and Online-Mind2Web, configure HuggingFace details in browseruse_bench/data/{benchmark}/data_info.json:
Split paths are relative to browseruse_bench/data/{benchmark}/ and can include subdirectories (e.g., LexBench-Browser/, LexBench-Online_Mind2Web/, or date folders).
object

2. BrowseComp (Local or HuggingFace)

BrowseComp supports local JSONL files or HuggingFace downloads. When using HuggingFace, the parquet file is downloaded into the HF cache and converted to JSONL for use.
BrowseComp HuggingFace fields:
  • hf_repo_id: Dataset repo ID.
  • hf_path_prefix: Subdirectory inside the repo (e.g., data).
  • hf_filename: Parquet file name.
  • hf_revision (optional): Repo revision.
  • hf_private (optional): Set to true if the repo requires a token.

CLI Usage

bubench run and bubench eval support the --data-source argument to control data loading behavior:
Notes:
  • Local and HuggingFace storage are separate. HF downloads stay in the cache and are not copied into benchmarks/....
  • --force-download only applies to huggingface mode.
  • BrowseComp HuggingFace data is parquet and is converted to JSONL in the HF cache.

Run Examples

Evaluation Examples (LexBench-Browser)

bubench eval passes --data-source only for LexBench-Browser. Other benchmarks use results files or local paths.

Environment Variables

When using private datasets, you must configure the HF_TOKEN environment variable.
You can get your Access Token from HuggingFace Settings. HuggingFace caches files under ~/.cache/huggingface by default. You can override this with HF_HOME or HF_HUB_CACHE.

Data Format

JSONL Format

To improve efficiency with large files, we use JSONL (JSON Lines) format, where each line is an independent JSON object.
task.jsonl

Directory Structure

Troubleshooting

Error: Private HuggingFace dataset requires authenticationSolution: Ensure HF_TOKEN environment variable is set.
Option 1: If you are in mainland China, use an HF mirror:
Option 2: Manually download files and place them in the corresponding benchmarks/{name}/data/{split_path} directory.