The lm-evaluation-harness-bg repository does not directly include sample data from benchmarks like WinoGrande or HellaSwag. Instead, it uses Hugging Face's datasets library to access these datasets dynamically. This means the actual dataset samples are not stored in the repository but are downloaded from their respective sources when the evaluation is run.
If you want to view or access the actual samples from WinoGrande or HellaSwag, you can do so in the following ways:
1. Using the Hugging Face Datasets Library
Both WinoGrande and HellaSwag datasets are hosted on Hugging Face's datasets library. You can load and inspect the datasets directly in Python:
For WinoGrande:
python
from datasets import load_dataset
# Load the WinoGrande dataset
dataset = load_dataset("winogrande", "winogrande_xl")
# Access samples
print(dataset["train"][0]) # View the first training sample
print(dataset["validation"][0]) # View the first validation sample
For HellaSwag:
python
from datasets import load_dataset
# Load the HellaSwag dataset
dataset = load_dataset("hellaswag")
# Access samples
print(dataset["train"][0]) # View the first training sample
print(dataset["validation"][0]) # View the first validation sample
2. Using YAML Configurations in the Repo
The repository includes YAML configuration files for both tasks, which specify how the datasets are structured and accessed. You can look at the dataset_path and dataset_name fields in these files to identify the dataset's source:
These pages allow you to explore the datasets in your browser, including viewing individual samples and their structure.
4. Running the Evaluation Harness
If you want to see how the repository uses these datasets in practice, you can run the evaluation tasks and log the inputs and predictions. Use the --log_samples flag when running the harness, which writes out the model's inputs and outputs for each task: