File size: 1,144 Bytes
03fffb5 5f9a4aa 03fffb5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | ---
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
```
|