| pretty_name: Environment Dataset Example | |
| tags: | |
| - environment | |
| - harbor | |
| - verifiers | |
| configs: | |
| - config_name: tasks | |
| data_files: | |
| - split: train | |
| path: data/train.parquet | |
| # Environment Dataset Example | |
| This repository is an ordinary Hub dataset with one Dataset Viewer config named | |
| `tasks`. The `environment.yaml` file declares how environment clients should | |
| interpret that config and its associated files. | |
| Once this repository is pushed to the Hub, the existing **Use this dataset** | |
| menu can generate standard loading snippets from the `tasks` config: | |
| ```python | |
| from datasets import load_dataset | |
| tasks = load_dataset("burtenshaw/environment-dataset-example", "tasks", split="train") | |
| ``` | |
| Environment clients can download the declaration without a custom Hub API: | |
| ```python | |
| from huggingface_hub import hf_hub_download | |
| manifest_path = hf_hub_download( | |
| repo_id="burtenshaw/environment-dataset-example", | |
| repo_type="dataset", | |
| filename="environment.yaml", | |
| ) | |
| ``` | |
| The equivalent raw URL is: | |
| ```text | |
| https://huggingface.co/datasets/burtenshaw/environment-dataset-example/resolve/main/environment.yaml | |
| ``` | |