Repository navigation
Moonshot: commit the generator of token_map_coverage.csv - #78
Conversation
experiments/moonshot/token_map_coverage.py evaluates bench's tune maps, unpadded, on the confirm-split plain sweep with bench's own token counting; it reproduces the committed values exactly. The CSV is rewritten by the script, which quotes the source field (the old file had an unquoted comma in it). README 2f holds the table and says that build_token_map.py did not produce it; Section 4 has the command.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Verdict: REQUEST CHANGES Reviewed head c751854: one commit adding the generator of Checked and correct
BlockingB1. The documented command fails as written (README Section 4; the script's docstring).
Codex was still running on c751854 when I posted. I'll check its comments with the fix. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c751854c2f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| decimals. Coverage bounds how often a truncated draft head can still propose the target's | ||
| token. The | ||
| `hot23k` lever uses the 22,936-row map. The CSV comes from | ||
| `experiments/moonshot/token_map_coverage.py` (command in Section 4), which uses bench's |
There was a problem hiding this comment.
Update the evidence register to cite this generator
The canonical evidence entry in paper/sections/app_register.tex:60 still says that token_map_coverage.csv was produced by experiments/moonshot/build_token_map.py. That script generates different, padded maps and writes token_map_report.json, so readers following the paper's \ev{token-map} provenance still cannot reproduce this CSV despite the new explanation here; update the register to name token_map_coverage.py.
Useful? React with 👍 / 👎.
| Percentages are rounded from the exact shares (16,384 rows: 0.96345), not from the CSV's four | ||
| decimals. Coverage bounds how often a truncated draft head can still propose the target's |
There was a problem hiding this comment.
Correct the paper's rounded coverage value
The newly documented exact share rounds to 96.3%, but paper/sections/app_stack.tex:202 still reports 96.4% for the 16,384-row map. Consequently the paper continues publishing a value contradicted by this added precision; update that claim when recording the corrected rounding.
Useful? React with 👍 / 👎.
| parser.add_argument('run', type=Path, help='sweep run directory with the confirm outputs') | ||
| parser.add_argument('--maps', nargs='+', default=DEFAULT_MAPS) | ||
| parser.add_argument('--map-dir', type=Path, default=MAPS) | ||
| parser.add_argument('--source', default=SOURCE, help='description written to the CSV') |
There was a problem hiding this comment.
Derive the source label from the supplied run
When this generator is run on any directory other than the historical confirm sweep without also passing --source, the counts come from the supplied run but every CSV row is still labeled as the fixed mixed-v2 confirm run. This silently misattributes regenerated experimental evidence; default the label from the run path or its manifest, or require an explicit source label.
Useful? React with 👍 / 👎.
…mports from anywhere
|
Verdict: REQUEST CHANGES Re-reviewed head c694d9c. B1 is fixed: the script puts the repository root on Codex left three P2 comments on c751854. Blocking (Codex P2,
Paper follow-ups (the other two P2s, for the appendix editor once this merges).
|
The label is built from the workload file, sweep label, concurrencies and OSL; a run without sweep.json needs --source. The committed CSV is reproduced byte for byte.
|
Verdict: APPROVE Re-reviewed head 210213c. All blocking items in this PR are fixed.
The two paper-side Codex P2s are routed to the appendix editor for a follow-up PR after this merges: the register should name this generator, and the coverage value should read 96.3%. |
Fixes the provenance of
evidence/moonshot/token_map_coverage.csv, which Codex flagged on #71(app_register.tex:58). The register cites
experiments/moonshot/build_token_map.py, but thatscript cannot produce the CSV: it holds out its own calibration split, pads maps to fixed sizes
and writes
token_map_report.json. The CSV was made by running bench'sbench.token_map coverageover bench's tune maps on the confirm-split plain sweep.Changes
experiments/moonshot/token_map_coverage.py: the generator. It evaluates the four tune maps(4,096 / 8,192 / 16,384 / 22,936 rows, unpadded) on the 171,968 output tokens of
~/vp-data/moonshot/sweeps/plain/20260930-200640with bench's token counting.evidence/moonshot/token_map_coverage.csv: regenerated by the script. The values areunchanged (0.8912 / 0.9327 / 0.9635 / 0.9754). The source field is now quoted, because the
old file had an unquoted comma in it, so each row parsed as six fields.
evidence/moonshot/README.md: new section 2f with the table, a note thatbuild_token_map.pydid not produce it, and the command in Section 4.The 16,384-row coverage rounds to 96.3% (exact share 0.96345), not the 96.4% in #71.
Command
Testing
difference is the quoting. It also runs from outside the repository without PYTHONPATH,
because the script puts the repository root on sys.path. It runs on CPU and needs the tokenizer and the sweep run directory.
pre-commit runon the changed files passes.