|
| 1 | +# Reproducibility |
| 2 | + |
| 3 | +This document defines the exact local checks and benchmark-artifact verification |
| 4 | +used for the current L20-CodeForge README claims. |
| 5 | + |
| 6 | +The repository keeps benchmark summaries, saved generations, evaluator outputs, |
| 7 | +and hashes under version control. Large private LiveCodeBench payloads are not |
| 8 | +committed; they must be materialized locally from the benchmark source when a |
| 9 | +full hidden replay is required. |
| 10 | + |
| 11 | +## Environment |
| 12 | + |
| 13 | +Recommended local setup: |
| 14 | + |
| 15 | +```bash |
| 16 | +python3 -m venv .venv |
| 17 | +source .venv/bin/activate |
| 18 | +python -m pip install --upgrade pip |
| 19 | +python -m pip install -e ".[dev,bench]" |
| 20 | +``` |
| 21 | + |
| 22 | +Expected package install outcome: |
| 23 | + |
| 24 | +```text |
| 25 | +Successfully installed l20-codeforge |
| 26 | +``` |
| 27 | + |
| 28 | +The GitHub Actions CI uses Python `3.11` and installs the same `.[dev,bench]` |
| 29 | +extras before running tests and scorecard checks. |
| 30 | + |
| 31 | +## CI Check |
| 32 | + |
| 33 | +Command: |
| 34 | + |
| 35 | +```bash |
| 36 | +python -m pytest -q |
| 37 | +``` |
| 38 | + |
| 39 | +Expected output shape: |
| 40 | + |
| 41 | +```text |
| 42 | +135 passed in <time>s |
| 43 | +``` |
| 44 | + |
| 45 | +The exact wall time depends on machine load. The pass count is the important |
| 46 | +invariant for this snapshot. |
| 47 | + |
| 48 | +## Static L20 Profile |
| 49 | + |
| 50 | +Command: |
| 51 | + |
| 52 | +```bash |
| 53 | +python -m l20_codeforge profile |
| 54 | +``` |
| 55 | + |
| 56 | +Expected output contains: |
| 57 | + |
| 58 | +```json |
| 59 | +{ |
| 60 | + "gpu": "NVIDIA L20", |
| 61 | + "vram_gb": 48, |
| 62 | + "preferred_base_models": [ |
| 63 | + "Qwen/Qwen2.5-Coder-7B-Instruct" |
| 64 | + ] |
| 65 | +} |
| 66 | +``` |
| 67 | + |
| 68 | +## Generalization Scorecard |
| 69 | + |
| 70 | +Command: |
| 71 | + |
| 72 | +```bash |
| 73 | +python scripts/build_generalization_scorecard.py \ |
| 74 | + --output-dir /tmp/l20_codeforge_scorecard_check |
| 75 | +``` |
| 76 | + |
| 77 | +Expected output: |
| 78 | + |
| 79 | +```json |
| 80 | +{ |
| 81 | + "status": "PASS", |
| 82 | + "checks": [ |
| 83 | + { |
| 84 | + "name": "lcb_overall_improves", |
| 85 | + "value": 0.100474, |
| 86 | + "threshold": 0.0, |
| 87 | + "passed": true |
| 88 | + } |
| 89 | + ] |
| 90 | +} |
| 91 | +``` |
| 92 | + |
| 93 | +The actual output includes all slice checks. For the committed snapshot, every |
| 94 | +check must have `"passed": true`. |
| 95 | + |
| 96 | +## Benchmark Artifact Hashes |
| 97 | + |
| 98 | +Verify the committed artifact hashes: |
| 99 | + |
| 100 | +```bash |
| 101 | +shasum -a 256 \ |
| 102 | + benchmarks/generalization_scorecard_2026_05_23/scorecard.json \ |
| 103 | + benchmarks/livecodebench_full_release_v6_2026_05_22/full_n8_public_select_summary.json \ |
| 104 | + benchmarks/evalplus_l20_codeforge_2026_05_22/summary.csv \ |
| 105 | + benchmarks/livecodebench_full_release_v6_2026_05_22/qwen25_coder_7b_temp08_n8_public_select_full_eval/report.json \ |
| 106 | + benchmarks/evalplus_l20_codeforge_2026_05_22/rechecks/manifest.json |
| 107 | +``` |
| 108 | + |
| 109 | +Expected output: |
| 110 | + |
| 111 | +```text |
| 112 | +1eb0402378ea25732225b29d7ba367b6111ab3351e54cc7c01fa7646a7a12712 benchmarks/generalization_scorecard_2026_05_23/scorecard.json |
| 113 | +2a0ff919aa15eb9ecdf74824f7bf790a23f6d0197ef74970b6190c60e0e00772 benchmarks/livecodebench_full_release_v6_2026_05_22/full_n8_public_select_summary.json |
| 114 | +08732bbb76450f92ef3c02fa97a163aba01f71028365072c205c5a3af45d5550 benchmarks/evalplus_l20_codeforge_2026_05_22/summary.csv |
| 115 | +7272f5591c2f868c059226a2a5ec8fc772994cfafd20eb8397a2b6d90aed64bf benchmarks/livecodebench_full_release_v6_2026_05_22/qwen25_coder_7b_temp08_n8_public_select_full_eval/report.json |
| 116 | +e86db2af864a9c8896dcd1bc2d4d7b44af7fa395b856ea02b6f0e69c31c915cc benchmarks/evalplus_l20_codeforge_2026_05_22/rechecks/manifest.json |
| 117 | +``` |
| 118 | + |
| 119 | +The CI workflow verifies the three top-level claim artifacts on every push and |
| 120 | +pull request: |
| 121 | + |
| 122 | +- `benchmarks/generalization_scorecard_2026_05_23/scorecard.json` |
| 123 | +- `benchmarks/livecodebench_full_release_v6_2026_05_22/full_n8_public_select_summary.json` |
| 124 | +- `benchmarks/evalplus_l20_codeforge_2026_05_22/summary.csv` |
| 125 | + |
| 126 | +## LiveCodeBench Full Replay Boundary |
| 127 | + |
| 128 | +The full hidden-test JSONL is intentionally not committed. To materialize it |
| 129 | +locally: |
| 130 | + |
| 131 | +```bash |
| 132 | +python scripts/materialize_lcb_release_jsonl.py \ |
| 133 | + --release-version release_v6 \ |
| 134 | + --output-jsonl data/raw/livecodebench/full_release_v6/release_v6_test_full.jsonl \ |
| 135 | + --manifest data/raw/livecodebench/full_release_v6/release_v6_test_full.manifest.json |
| 136 | +``` |
| 137 | + |
| 138 | +Expected committed summary for the current headline result: |
| 139 | + |
| 140 | +```json |
| 141 | +{ |
| 142 | + "benchmark": "livecodebench/code_generation_lite release_v6", |
| 143 | + "tasks": 1055, |
| 144 | + "score": { |
| 145 | + "passed": 403, |
| 146 | + "total": 1055, |
| 147 | + "pass_at_1": 0.3819905213270142 |
| 148 | + }, |
| 149 | + "baseline_greedy": { |
| 150 | + "passed": 297, |
| 151 | + "total": 1055, |
| 152 | + "pass_at_1": 0.28151658767772514 |
| 153 | + } |
| 154 | +} |
| 155 | +``` |
| 156 | + |
| 157 | +The full command sequence for generation and hidden replay is documented in: |
| 158 | + |
| 159 | +```text |
| 160 | +benchmarks/livecodebench_full_release_v6_2026_05_22/README.md |
| 161 | +``` |
| 162 | + |
| 163 | +## EvalPlus Rechecks |
| 164 | + |
| 165 | +HumanEval+: |
| 166 | + |
| 167 | +```bash |
| 168 | +python -m l20_codeforge eval-evalplus humaneval \ |
| 169 | + benchmarks/evalplus_l20_codeforge_2026_05_22/samples/humaneval.mixed-target.literal-combined.public-consensus-selected.samples.jsonl \ |
| 170 | + --output /tmp/humaneval_recheck.json \ |
| 171 | + --parallel 8 |
| 172 | +``` |
| 173 | + |
| 174 | +Expected committed result: |
| 175 | + |
| 176 | +```text |
| 177 | +base pass@1 0.982 |
| 178 | +plus pass@1 0.927 |
| 179 | +``` |
| 180 | + |
| 181 | +MBPP+: |
| 182 | + |
| 183 | +```bash |
| 184 | +python -m l20_codeforge eval-evalplus mbpp \ |
| 185 | + benchmarks/evalplus_l20_codeforge_2026_05_22/samples/mbpp.temp08.n5-plus-basefallback-n30.public-consensus-shortest-selected.samples.jsonl \ |
| 186 | + --output /tmp/mbpp_recheck.json \ |
| 187 | + --parallel 8 |
| 188 | +``` |
| 189 | + |
| 190 | +Expected committed result: |
| 191 | + |
| 192 | +```text |
| 193 | +base pass@1 0.960 |
| 194 | +plus pass@1 0.817 |
| 195 | +``` |
| 196 | + |
| 197 | +## Clean-Room Claim Rules |
| 198 | + |
| 199 | +- Public tests and public examples may be used for selection and repair. |
| 200 | +- Hidden/private tests may only be used for final replay and audit. |
| 201 | +- Do not report targeted probes as broad benchmark results. |
| 202 | +- Do not update benchmark headline claims without updating the scorecard and |
| 203 | + artifact hashes in this document. |
0 commit comments