styme3279 commited on
Commit
ad4a5e9
·
verified ·
1 Parent(s): a04a64a

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - code
9
+ - python
10
+ - ai-safety
11
+ - control
12
+ - apps
13
+ pretty_name: APPS-cleaned for AI Control replication
14
+ size_categories:
15
+ - 1K<n<10K
16
+ ---
17
+
18
+ # control-apps-cleaned
19
+
20
+ A curated subset of the [APPS dataset](https://github.com/hendrycks/apps) (Hendrycks et al., NeurIPS 2021), pre-filtered for use in the ARENA *AI Control* chapter — a teaching replication of Greenblatt et al. 2023 ([arXiv:2312.06942](https://arxiv.org/abs/2312.06942)).
21
+
22
+ ## What's in here
23
+
24
+ - **`cleaned_apps.jsonl`** — 1,202 problems from the APPS "interview" split, filtered to a uniform I/O schema (inputs and outputs are each one of `list[str]`, `list[int]`, `list[list[str]]`, `list[list[int]]`). Each line is a JSON record with the original APPS fields plus two added fields:
25
+ - `input_type` — one of `"list of strings"`, `"list of integers"`, `"list of lists of strings"`, `"list of lists of integers"`
26
+ - `output_type` — same vocabulary
27
+
28
+ The filtering removes problems whose original I/O was strings-with-embedded-newlines (which broke the chapter's `main(input)` function-call interface).
29
+
30
+ ## Why this exists
31
+
32
+ The original APPS dataset has inputs as raw stdin strings, which doesn't play nicely with the inspect_ai sandbox calling `main(input)` directly. This filtered subset lets every problem be solved by a function `def main(input: list[str]) -> list[str]: ...` without per-problem dispatch on the input shape.
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ from huggingface_hub import hf_hub_download
38
+ import json
39
+
40
+ path = hf_hub_download(
41
+ repo_id="styme3279/control-apps-cleaned",
42
+ filename="cleaned_apps.jsonl",
43
+ repo_type="dataset",
44
+ )
45
+
46
+ with open(path) as f:
47
+ apps = [json.loads(line) for line in f]
48
+
49
+ print(len(apps), "problems")
50
+ print(apps[0].keys())
51
+ ```
52
+
53
+ ## Provenance
54
+
55
+ - Upstream source: [hendrycks/apps](https://github.com/hendrycks/apps), interview-difficulty split
56
+ - Filter script: `utils.clean_dataset` in the ARENA chapter `chapter3_llm_evals/exercises/part5_ai_control/utils.py`
57
+ - Used by: ARENA chapter 3.5 (AI Control)
58
+
59
+ ## License
60
+
61
+ MIT, inherited from the upstream APPS dataset.