Upload folder using huggingface_hub
Browse files- README.md +16 -0
- poster/GATE_REPORT.json +1 -1
- poster/poster.html +1 -1
- poster/poster_embed.html +0 -0
- poster/poster_preview.pdf +2 -2
- poster/poster_preview.png +2 -2
- scripts/run_eval.py +20 -5
README.md
CHANGED
|
@@ -32,6 +32,22 @@ python scripts/check_budget_bound.py
|
|
| 32 |
python scripts/run_eval.py --task trip --method ccd_ds --limit 64 --out outputs/x.json
|
| 33 |
```
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## Hyperparameters
|
| 36 |
|
| 37 |
Taken from the Dream authors' own eval scripts, which is what the paper says it does
|
|
|
|
| 32 |
python scripts/run_eval.py --task trip --method ccd_ds --limit 64 --out outputs/x.json
|
| 33 |
```
|
| 34 |
|
| 35 |
+
## Determinism / seeds
|
| 36 |
+
|
| 37 |
+
| component | status |
|
| 38 |
+
|---|---|
|
| 39 |
+
| `check_propositions.py`, `check_budget_bound.py` | Seeded (`np.random.default_rng(0)`). Bit-identical across runs — verified 3x. |
|
| 40 |
+
| Example selection (`load_trip`) | Seeded, fixed at `seed=0`, independent of `--seed`, so every arm scores the same stratified sample. |
|
| 41 |
+
| Decoding at **T=0** (Trip Plan, HumanEval, all ablations) | Deterministic: `_pick_token` takes the argmax, no RNG involved. |
|
| 42 |
+
| Decoding at **T>0** (the Claim 6 sweep, T=0.1/0.4/0.7/1.0) | Samples via `Categorical.sample()`. `run_eval.py --seed N` (default 0) now seeds `random`/`numpy`/`torch`, and the seed is recorded in each result JSON. |
|
| 43 |
+
|
| 44 |
+
**Honest caveat:** `--seed` was added *after* the runs in `outputs/` were produced. The T=0
|
| 45 |
+
results (the large majority, including every number on the poster's ceiling, Trip Plan,
|
| 46 |
+
HumanEval and ablation cards) are argmax and reproduce exactly regardless. The eight
|
| 47 |
+
temperature-sweep runs at T>0 (`c6_*_t0.1/0.4/0.7/1.0`) predate the seeding and therefore will
|
| 48 |
+
**not** reproduce bit-exactly; re-running them under `--seed 0` is the first thing to do with a
|
| 49 |
+
fresh GPU budget. At n=16 those points are our weakest evidence anyway, and the poster says so.
|
| 50 |
+
|
| 51 |
## Hyperparameters
|
| 52 |
|
| 53 |
Taken from the Dream authors' own eval scripts, which is what the paper says it does
|
poster/GATE_REPORT.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
"skill": "posterly",
|
| 4 |
-
"timestamp": "2026-07-16T18:
|
| 5 |
"poster_html": "/home/ashuzon/Documents/github_projects/icml/repro_ccd/poster/poster.html",
|
| 6 |
"canvas": {
|
| 7 |
"source": "page-rule",
|
|
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
"skill": "posterly",
|
| 4 |
+
"timestamp": "2026-07-16T18:41:34Z",
|
| 5 |
"poster_html": "/home/ashuzon/Documents/github_projects/icml/repro_ccd/poster/poster.html",
|
| 6 |
"canvas": {
|
| 7 |
"source": "page-rule",
|
poster/poster.html
CHANGED
|
@@ -1030,7 +1030,7 @@
|
|
| 1030 |
<div class="section-title"><span class="num">5</span><span class="st-text">Theory: Prop. 1 ✓, Prop. 2 ✗</span></div>
|
| 1031 |
<p class="body-text">
|
| 1032 |
<strong>Prop. 1</strong> — <em>H(x|s) = H(x|c,s) + I(x;c|s)</em> — is a correct identity, exact to
|
| 1033 |
-
<strong>
|
| 1034 |
</p>
|
| 1035 |
<p class="body-text mt-3">
|
| 1036 |
<strong>Prop. 2 does not follow.</strong> Lemma 1 is an <em>upper</em> bound; Eq. (12) swaps its RHS for a
|
|
|
|
| 1030 |
<div class="section-title"><span class="num">5</span><span class="st-text">Theory: Prop. 1 ✓, Prop. 2 ✗</span></div>
|
| 1031 |
<p class="body-text">
|
| 1032 |
<strong>Prop. 1</strong> — <em>H(x|s) = H(x|c,s) + I(x;c|s)</em> — is a correct identity, exact to
|
| 1033 |
+
<strong>2.2e-15</strong> over 2000 seeded random joints.
|
| 1034 |
</p>
|
| 1035 |
<p class="body-text mt-3">
|
| 1036 |
<strong>Prop. 2 does not follow.</strong> Lemma 1 is an <em>upper</em> bound; Eq. (12) swaps its RHS for a
|
poster/poster_embed.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
poster/poster_preview.pdf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76f40ec8cfe9ee7b4c0c1accf3e87170594405fea3d6b1cfc3500dd55987657c
|
| 3 |
+
size 1561927
|
poster/poster_preview.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
scripts/run_eval.py
CHANGED
|
@@ -11,9 +11,10 @@ paper says it does ("we follow the base models' default settings without tuning"
|
|
| 11 |
Usage:
|
| 12 |
python run_eval.py --task trip --method ccd_ds --limit 100 --out outputs/x.json
|
| 13 |
"""
|
| 14 |
-
import argparse, json, os, sys, time
|
| 15 |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 16 |
|
|
|
|
| 17 |
import torch
|
| 18 |
from transformers import AutoModel, AutoTokenizer
|
| 19 |
|
|
@@ -53,7 +54,6 @@ def load_trip(limit=None, num_cities=None, seed=0):
|
|
| 53 |
if limit:
|
| 54 |
items = items[:limit]
|
| 55 |
elif limit:
|
| 56 |
-
import random
|
| 57 |
tiers = sorted({i["num_cities"] for i in items}, key=int)
|
| 58 |
per = limit // len(tiers)
|
| 59 |
rng = random.Random(seed)
|
|
@@ -168,10 +168,25 @@ def main():
|
|
| 168 |
help="override top_p; 1.0 disables nucleus filtering")
|
| 169 |
ap.add_argument("--steps", type=int, default=None)
|
| 170 |
ap.add_argument("--out", required=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
ap.add_argument("--tiny", action="store_true",
|
| 172 |
help="local CPU dry-run with tiny random weights")
|
| 173 |
args = ap.parse_args()
|
| 174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
cfg = dict(TASK_DEFAULTS[args.task])
|
| 176 |
if args.temperature is not None:
|
| 177 |
cfg["temperature"] = args.temperature
|
|
@@ -180,8 +195,8 @@ def main():
|
|
| 180 |
if args.steps is not None:
|
| 181 |
cfg["steps"] = args.steps; cfg["max_new_tokens"] = args.steps
|
| 182 |
|
| 183 |
-
print(f"[cfg] task={args.task} method={args.method} V={args.buffer_V} d={args.history_d}
|
| 184 |
-
flush=True)
|
| 185 |
|
| 186 |
tok = AutoTokenizer.from_pretrained(MODEL, trust_remote_code=True)
|
| 187 |
if args.tiny:
|
|
@@ -245,7 +260,7 @@ def main():
|
|
| 245 |
result = {
|
| 246 |
"task": args.task, "method": args.method, "config": cfg,
|
| 247 |
"buffer_V": args.buffer_V, "history_d": args.history_d,
|
| 248 |
-
"n_examples": len(items), "score": score, "offset": args.offset,
|
| 249 |
"mean_steps": mean_steps,
|
| 250 |
"speedup_vs_uniform": cfg["steps"] / mean_steps,
|
| 251 |
"fallback_steps": n_fallback,
|
|
|
|
| 11 |
Usage:
|
| 12 |
python run_eval.py --task trip --method ccd_ds --limit 100 --out outputs/x.json
|
| 13 |
"""
|
| 14 |
+
import argparse, json, os, random, sys, time
|
| 15 |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 16 |
|
| 17 |
+
import numpy as np
|
| 18 |
import torch
|
| 19 |
from transformers import AutoModel, AutoTokenizer
|
| 20 |
|
|
|
|
| 54 |
if limit:
|
| 55 |
items = items[:limit]
|
| 56 |
elif limit:
|
|
|
|
| 57 |
tiers = sorted({i["num_cities"] for i in items}, key=int)
|
| 58 |
per = limit // len(tiers)
|
| 59 |
rng = random.Random(seed)
|
|
|
|
| 168 |
help="override top_p; 1.0 disables nucleus filtering")
|
| 169 |
ap.add_argument("--steps", type=int, default=None)
|
| 170 |
ap.add_argument("--out", required=True)
|
| 171 |
+
ap.add_argument("--seed", type=int, default=0,
|
| 172 |
+
help="RNG seed for temperature sampling. Only bites when temperature>0: "
|
| 173 |
+
"at T=0 ccd_decode._pick_token takes the argmax, so those runs are "
|
| 174 |
+
"deterministic with or without it. Does NOT affect which examples are "
|
| 175 |
+
"evaluated -- load_trip's stratified sample is fixed at seed 0 so every "
|
| 176 |
+
"arm scores the same examples.")
|
| 177 |
ap.add_argument("--tiny", action="store_true",
|
| 178 |
help="local CPU dry-run with tiny random weights")
|
| 179 |
args = ap.parse_args()
|
| 180 |
|
| 181 |
+
# Seed every RNG that can touch decoding. NOTE: the temperature-sweep results
|
| 182 |
+
# shipped in outputs/ (c6_*_t0.1/0.4/0.7/1.0) were produced BEFORE this was
|
| 183 |
+
# added and therefore do not reproduce bit-exactly from this seed; the T=0
|
| 184 |
+
# runs (Trip Plan, HumanEval, the ablations) are argmax and always did.
|
| 185 |
+
random.seed(args.seed)
|
| 186 |
+
np.random.seed(args.seed)
|
| 187 |
+
torch.manual_seed(args.seed)
|
| 188 |
+
torch.cuda.manual_seed_all(args.seed)
|
| 189 |
+
|
| 190 |
cfg = dict(TASK_DEFAULTS[args.task])
|
| 191 |
if args.temperature is not None:
|
| 192 |
cfg["temperature"] = args.temperature
|
|
|
|
| 195 |
if args.steps is not None:
|
| 196 |
cfg["steps"] = args.steps; cfg["max_new_tokens"] = args.steps
|
| 197 |
|
| 198 |
+
print(f"[cfg] task={args.task} method={args.method} V={args.buffer_V} d={args.history_d} "
|
| 199 |
+
f"seed={args.seed} {cfg}", flush=True)
|
| 200 |
|
| 201 |
tok = AutoTokenizer.from_pretrained(MODEL, trust_remote_code=True)
|
| 202 |
if args.tiny:
|
|
|
|
| 260 |
result = {
|
| 261 |
"task": args.task, "method": args.method, "config": cfg,
|
| 262 |
"buffer_V": args.buffer_V, "history_d": args.history_d,
|
| 263 |
+
"n_examples": len(items), "score": score, "offset": args.offset, "seed": args.seed,
|
| 264 |
"mean_steps": mean_steps,
|
| 265 |
"speedup_vs_uniform": cfg["steps"] / mean_steps,
|
| 266 |
"fallback_steps": n_fallback,
|