Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
- config_name: default
|
| 4 |
+
features:
|
| 5 |
+
- name: path
|
| 6 |
+
dtype: string
|
| 7 |
+
- name: task_binary
|
| 8 |
+
dtype: binary
|
| 9 |
+
splits:
|
| 10 |
+
- name: train
|
| 11 |
+
num_bytes: 44211099
|
| 12 |
+
num_examples: 9644
|
| 13 |
+
download_size: 44211099
|
| 14 |
+
dataset_size: 44211099
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# CodeContests
|
| 18 |
+
|
| 19 |
+
A dataset of **9,644** code contest tasks with sandbox environments and tests, formatted for [Harbor](https://github.com/open-thoughts/OpenThoughts-Agent) / [SkyRL](https://github.com/NovaSky-AI/SkyRL) agentic RL training.
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
- **Source:** [DCAgent/code-contests-sandboxes-with-tests](https://huggingface.co/datasets/DCAgent/code-contests-sandboxes-with-tests)
|
| 24 |
+
|
| 25 |
+
Each row contains a task directory packed as a tar archive with instructions, environment (Dockerfile), and test verifiers.
|
| 26 |
+
|
| 27 |
+
## Schema
|
| 28 |
+
|
| 29 |
+
| Column | Type | Description |
|
| 30 |
+
|--------|------|-------------|
|
| 31 |
+
| `path` | string | Task identifier (e.g. "code_contests-0000") |
|
| 32 |
+
| `task_binary` | binary | Gzip-compressed tar archive of the task directory |
|
| 33 |
+
|
| 34 |
+
## Interacting with the Data
|
| 35 |
+
|
| 36 |
+
To explore the tasks locally, you can extract them into a readable format using the following commands (make sure `pyarrow` is installed):
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
curl -L -o extract_parquet_tasks.py \
|
| 40 |
+
"https://huggingface.co/datasets/open-thoughts/CodeContests/raw/main/extract_parquet_tasks.py"
|
| 41 |
+
|
| 42 |
+
curl -L -o tasks.parquet \
|
| 43 |
+
"https://huggingface.co/datasets/open-thoughts/CodeContests/resolve/main/tasks.parquet"
|
| 44 |
+
|
| 45 |
+
python extract_parquet_tasks.py tasks.parquet ./extracted_tasks
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Usage with SkyRL + Harbor
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
python examples/harbor/prepare_harbor_dataset.py --dataset open-thoughts/CodeContests
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
This will download and extract the tasks to `~/data/harbor/CodeContests/`.
|