|
Download cpython_13/README.md from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 2.52 kB
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_13/README.md
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/cpython_13/README.md
-
curl -L -o README.md https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_13/README.md
2.52 kB
| # LoLBench Harbor Task: cpython_13 | |
| This is a Harbor-format LoLBench task generated from `CPython_PEP-750_Template-Strings_PR-132662`. | |
| Selected source instance: | |
| - Harbor ID: `cpython_13` | |
| - PR: `python/cpython#132662` | |
| - Base commit: `5ea9010e8910cb97555c3aef4ed95cca93a74aab` | |
| - Test modes: `orig, aug, union` | |
| - Default/canonical mode: `union` | |
| - Harbor image: `smartdub26/lolbench-linux:cpython_13-1.0.0` | |
| - Docker Hub image: `smartdub26/lolbench-linux:cpython_13-1.0.0` | |
| ## Image Setup | |
| Prefer the published Docker Hub image when it is available. Harbor refers to | |
| the image as `smartdub26/lolbench-linux:cpython_13-1.0.0`, so Docker can pull it | |
| directly when it is not present locally: | |
| ```bash | |
| docker pull smartdub26/lolbench-linux:cpython_13-1.0.0 | |
| ``` | |
| Only if the Docker Hub image is unavailable, build the single task image | |
| locally: | |
| ```bash | |
| docker build -t lolbench/cpython_13:1.0.0 harbor_tasks/cpython_13/environment | |
| docker tag lolbench/cpython_13:1.0.0 smartdub26/lolbench-linux:cpython_13-1.0.0 | |
| ``` | |
| The image contains the processed source tree at the base commit under | |
| `/workspace/cpython`. Harbor must not mount a host source checkout | |
| for the agent. | |
| ## Run an Agent | |
| ```bash | |
| .harbor-venv/bin/harbor run \ | |
| -p harbor_tasks/cpython_13 \ | |
| -a codex \ | |
| -m "<model>" \ | |
| --job-name cpython_13_agent_union \ | |
| --jobs-dir harbor_runs/cpython_13 \ | |
| --no-delete \ | |
| --n-concurrent 1 \ | |
| --ve LOLBENCH_SUITE=union | |
| ``` | |
| After implementing the requirement, the agent must clean any test-file edits | |
| and run: | |
| ```bash | |
| lolbench-submit | |
| ``` | |
| ## Evaluate a Patch | |
| Choose one mode with `LOLBENCH_SUITE=orig`, `aug`, or `union`; if unset, the | |
| task defaults to `union`. | |
| ```bash | |
| PATCH="$(pwd)/path/to/solution.patch" | |
| .harbor-venv/bin/harbor run \ | |
| -p harbor_tasks/cpython_13 \ | |
| -a oracle \ | |
| --job-name cpython_13_eval_union \ | |
| --jobs-dir harbor_runs/cpython_13 \ | |
| --no-delete \ | |
| --n-concurrent 1 \ | |
| --mounts '[{"type":"bind","source":"'"$PATCH"'","target":"/candidate/solution.patch","read_only":true}]' \ | |
| --ae LOLBENCH_ORACLE_PATCH=/candidate/solution.patch \ | |
| --ve LOLBENCH_SUITE=union | |
| ``` | |
| Outputs: | |
| ```bash | |
| find harbor_runs/cpython_13/cpython_13_eval_union -path '*/verifier/agent_report.json' -print | |
| find harbor_runs/cpython_13/cpython_13_eval_union -path '*/verifier/reward.json' -print | |
| ``` | |
| `tests/docker-compose.yaml` is a verifier-only Harbor overlay. It mounts | |
| `tests/`, `tests/private/`, and `solution/` into the separate verifier | |
| container; none of those paths are mounted into the agent container. | |