adtygan commited on
Commit
f48b3d4
·
verified ·
1 Parent(s): 520cee8

Upload gate/RESULTS.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. gate/RESULTS.md +50 -0
gate/RESULTS.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # §4 Week-1 Gate — Results Log
2
+
3
+ Auditable record of the GO/NO-GO gate. Every number traces to public data + a script in this folder.
4
+
5
+ Env note: `datasets.load_dataset` hangs in this box (it resolves blobs via the dead
6
+ `cdn-lfs.huggingface.co`, HTTP 000). Workaround used everywhere: `hf_hub_download` of the
7
+ parquet directly (Xet/CAS path, works), then read with pyarrow. HF token in gitignored `../../.env`.
8
+
9
+ ---
10
+
11
+ ## Step 2 — is the 32k+ slice real (in TOKENS, not chars)? ✅ PASS
12
+ `step2_tokenize_packs.py --pack 40K --scope verified` · tokenizer `Qwen/Qwen3-Coder-30B-A3B-Instruct`
13
+ · data `princeton-nlp/SWE-bench_bm25_40K` ∩ `SWE-bench_Verified` (500) · CPU-only.
14
+
15
+ - Token-length: p10 44,514 · **p50 46,598** · p90 47,712 · p99 48,178.
16
+ - **100%** of the 500 clear 32k (and 24k, 16k).
17
+ - char/token median **3.63** → raw HF `char_len` overstates length ~3.6×; tokenizing locally was necessary.
18
+ - Length-vs-difficulty confound (2602.16069) **absent**: median tokens flat across difficulty
19
+ (`<15min`=46,774 · `15min-1h`=46,455 · `1-4h`=46,517 · `>4h`=47,119).
20
+
21
+ Caveat: packs are uniformly ~46k because BM25 packs to a ~40k *budget*; "long" is a property of
22
+ the retrieval construction, not of natural trajectory length. Sufficient for the dilution premise
23
+ (context genuinely >32k), consistent with proposal §8 ("construct the long context yourself").
24
+
25
+ Artifacts: `out/step2_40K_verified.json` (per-instance), `out/step2_summary_verified.json`.
26
+
27
+ Status: 32k premise holds. Confound guarded. → proceed.
28
+
29
+ ---
30
+
31
+ ## Step 1 — build oracle-collapsed (de-diluted span) ✅ DONE (CPU, free)
32
+ `step1_build_oracle_collapsed.py --ctx 15` · gold files from `princeton-nlp/SWE-bench_oracle`,
33
+ hunk ranges from gold `patch` (- side) · Verified 500 · tokenizer Qwen3-Coder.
34
+
35
+ C* = `[ <issue> ; gold files collapsed to ±15 lines around each hunk ; <failing_test> ]`.
36
+
37
+ - Token dist: p10 881 · **p50 1,489** · p75 2,250 · p90 3,239 · p99 8,424.
38
+ - **~31× smaller than the diluted pack** (step-2 median 46,598). Even p99 (8.4k) is well below the
39
+ ~46k dilution regime → the de-diluted span sits beneath dilution onset, as the premise requires.
40
+ - 499/500 parsed clean; 1 edge case (`astropy-13398`: gold patch *creates* a file → no pre-image,
41
+ 3/4 files still collapsed). Spot-check `astropy-12907`: ±15 window correctly contains the buggy
42
+ line the gold patch fixes.
43
+
44
+ Artifact: `out/step1_oracle_collapsed_ctx15.json` (per-instance context + token count).
45
+ Status: de-diluted span built and verified. → ready for steps 3/4 (need teacher on GPU 1 + scoring).
46
+
47
+ ## Step 1b (open infra for 3/4): teacher = Qwen3-Coder-30B-A3B on GPU 1 (vllm not yet installed);
48
+ ## scoring = proxy (gold-hunk localization) first, then hosted sb-cli for binding FAIL_TO_PASS.
49
+ ## Step 3 — per-span-type compressibility gap — TODO (existential kill criterion)
50
+ ## Step 4 — 3-condition scissor ceiling (trunc / mask / oracle) — TODO (existential kill criterion)