Dump the trace of any rollout that scores zero: one turn and a zero is not the same as solving it wrong
Browse files- screen_launcher.py +6 -1
screen_launcher.py
CHANGED
|
@@ -205,9 +205,14 @@ def main():
|
|
| 205 |
repo = os.environ["PUSH_TO_DATASET"]
|
| 206 |
api = HfApi()
|
| 207 |
api.create_repo(repo, repo_type="dataset", exist_ok=True)
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
api.upload_file(path_or_fileobj=f, path_in_repo=f"screening/{f}", repo_id=repo, repo_type="dataset",
|
| 210 |
commit_message="Screen base vs trained to pick the before/after task")
|
|
|
|
| 211 |
_log(f"pushed to https://huggingface.co/datasets/{repo}")
|
| 212 |
return 0
|
| 213 |
|
|
|
|
| 205 |
repo = os.environ["PUSH_TO_DATASET"]
|
| 206 |
api = HfApi()
|
| 207 |
api.create_repo(repo, repo_type="dataset", exist_ok=True)
|
| 208 |
+
import glob
|
| 209 |
+
|
| 210 |
+
files = ["screen_base.json", "screen_trained.json", "screen_table.txt"]
|
| 211 |
+
files += sorted(glob.glob("fail_*.json")) # the traces of the rollouts that scored 0
|
| 212 |
+
for f in files:
|
| 213 |
api.upload_file(path_or_fileobj=f, path_in_repo=f"screening/{f}", repo_id=repo, repo_type="dataset",
|
| 214 |
commit_message="Screen base vs trained to pick the before/after task")
|
| 215 |
+
_log(f"uploaded {len(files)} files, {len(files) - 3} of them failure traces")
|
| 216 |
_log(f"pushed to https://huggingface.co/datasets/{repo}")
|
| 217 |
return 0
|
| 218 |
|