AdithyaSK HF Staff commited on
Commit
0578329
·
verified ·
1 Parent(s): 8663259

Diagnose evaluation failures and queue missing-cell recovery

Browse files
README.md CHANGED
@@ -15,9 +15,9 @@ Qwen3.5-2B training with Harbor multi-harness, native OpenCode, Harbor OpenCode-
15
 
16
  ## Latest update
17
 
18
- [September 16 evening: evaluation progress and GPU allocation](updates/2026-09-16-evening/REPORT.md) · [Figure](updates/2026-09-16-evening/eval-training-update.png)
19
 
20
- The dated update distinguishes accepted checkpoint scores from incomplete evaluations and records Harbor OpenCode-only training progress.
21
 
22
  ## Code and reproduction
23
 
 
15
 
16
  ## Latest update
17
 
18
+ [September 16, 19:49 UTC: live eval progress and failure diagnosis](updates/2026-09-16-1950/REPORT.md). Includes recovery jobs, transport failures, and the measured OpenCode output-truncation regression.
19
 
20
+ [Earlier evaluation plot and GPU allocation update](updates/2026-09-16-evening/REPORT.md).
21
 
22
  ## Code and reproduction
23
 
updates/2026-09-16-1950/REPORT.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evaluation update and failure diagnosis
2
+
3
+ Snapshot: **2026-09-16 19:49 UTC**. Qwen3.5-2B, 250 fixed tasks × four harnesses × pass@1. Scores below are not interchangeable with native SETA evaluation.
4
+
5
+ | Run | Checkpoint | Graded | Current job | State |
6
+ | --- | ---: | ---: | ---: | --- |
7
+ | Harbor multi-harness | 900 | 973/1,000 | 81439 | Recovery queued; 27 missing |
8
+ | Harbor multi-harness | 1,000 | 929/1,000 | 81441 | Recovery queued; 71 missing |
9
+ | Harbor OpenCode-only | 100 | 21/1,000 | 81408 | Full evaluation running; smoke 8/8 TiTO passed |
10
+ | Harbor OpenCode-only | 200 | 673/1,000 | 81406 | Full evaluation running; smoke 8/8 TiTO passed |
11
+
12
+ Checkpoint 200 has three ungraded attempts so far, all confirmed Gradio HTTP 404s. Throughput is about 8.6 cells/minute: roughly 40 minutes to finish the first pass from this snapshot, plus retries and audit. Checkpoint 100 has just entered its full pass. Checkpoints 300 and 400 are saved and wait behind the current evaluation jobs.
13
+
14
+ ## What is failing
15
+
16
+ The previous checkpoint-1,000 recovery job 81252 ended at **19:38 UTC** after six passes, with 929 graded cells. Checkpoint 900 stopped earlier with 973. Their Mini-SWE-Agent failures show Gradio's `No interface is running` response during model requests. Earlier Claude Code attempts include sandbox connection resets, HTTP 400s and 600-second agent timeouts; a timeout alone does not establish an infrastructure cause. The final pass also contains evaluator pause/skip records after repeated failures. These are not all independent task attempts.
17
+
18
+ The tunnel watchdog continued reporting healthy because its short health requests passed. A fresh probe of the active checkpoint-200 tunnel passed 24/24 health requests; this does not validate long model streams. Engine metrics do not show memory exhaustion: checkpoint 1,000's maximum KV cache usage was 48.5%, median waiting requests zero, and maximum waiting requests three. This points away from GPU memory as the principal blocker.
19
+
20
+ ## A separate OpenCode behavior regression
21
+
22
+ The older multi-harness model has a marked deterioration in its completed OpenCode arm:
23
+
24
+ | Checkpoint | Correct / 250 | Observed OpenCode score | Final completion hit 4,096-token cap | Cap reached and no answer written |
25
+ | --- | ---: | ---: | ---: | ---: |
26
+ | 800 | 58 | 23.2% | 8 | 8 |
27
+ | 900 | 6 | 2.4% | 225 | 225 |
28
+ | 1,000 | 14 | 5.6% | 204 | 202 |
29
+
30
+ These counts come from the first graded attempt for every task, its exact-token capture and retained verifier output. Example traces contain long prose and terminate with `finish_reason=length`; the verifier reports no `/workdir/answer.txt`. These zero rewards must remain in the result. Retrying missing infrastructure cells will not fix this score drop. The cause of the changed behavior is not established; it needs a controlled model/harness diagnostic. The 4,096-token limit and model parameters have not been changed for recovery. The full checkpoint-900/1,000 TiTO and harness-version acceptance gates remain outstanding, so their overall scores remain withheld.
31
+
32
+ ## Recovery actions
33
+
34
+ Queued **81439 (900)** and **81441 (1,000)** on hopper-dev, each with one H100, TP1/DP1 and **concurrency 8**, up to three passes, retrying only ungraded cells. The lower concurrency is an operational recovery trial to reduce simultaneous model/transport activity, not a proven fix for Gradio. Model weights, test order, harness versions, sampling, 17-call budget, 600-second timeout and score selection are unchanged. All 973 and 929 graded results are preserved, including zeros; capture hashes are recorded before resuming.
35
+
36
+ Both jobs wait on hopper-dev's two-running-job user quota, currently occupied by the two OpenCode-only evals. CPU collector **81443** will apply the original completeness, TiTO and harness-version gates and publish accepted results. The existing dashboard publisher remains active. No running trainer or evaluator was stopped; hopper-extra and hopper-atl were not used.
37
+
38
+ ## Training and accepted scores
39
+
40
+ Harbor OpenCode-only trainer 81075 is running at **step 404**, with **checkpoint 400 saved**. Latest 50-step mean reward is **0.330**, versus **0.296** previously; recorded numerical scalars remain finite. This short increase does not establish held-out improvement.
41
+
42
+ Accepted full evaluation scores are unchanged: Harbor multi-harness **37.0% at checkpoint 500** (best) and **27.0% at checkpoint 800** (latest); the separate native OpenCode run ends at **29.8% at checkpoint 1,000**. Harbor OpenCode-only has not yet completed its first full checkpoint evaluation.
43
+
44
+ [Status and missing-cell inventory](status.json) · [OpenCode truncation evidence](opencode-truncation.json) · [Serving diagnostics](serving-diagnostics.json)
updates/2026-09-16-1950/inspect_evals.py ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Read-only evaluation inventory and failure diagnosis; never change score selection."""
2
+ import json
3
+ import math
4
+ import statistics
5
+ import subprocess
6
+ from collections import Counter
7
+ from datetime import datetime, timezone
8
+ from pathlib import Path
9
+
10
+ OUT = Path(__file__).resolve().parent
11
+ ROOT = OUT.parent.parent
12
+ BASE = ROOT / 'experiments/async_grpo_harbor_data_agent/logs'
13
+
14
+
15
+ def slurm(job):
16
+ result = subprocess.check_output(['sacct', '-X', '-n', '-P', '-j', str(job), '--format=State,ExitCode'], text=True).strip().splitlines()
17
+ return result[0].split('|')[0] if result else 'UNKNOWN'
18
+
19
+
20
+ def inspect(run, step, source_job):
21
+ output = BASE / run / f'checkpoint-evals/step-{step:06d}'
22
+ logs = output / f'job-{source_job}'
23
+ current = json.loads((output / 'submission.json').read_text())
24
+ config = json.loads((logs / 'traces/eval_config.json').read_text())
25
+ selected, latest = {}, {}
26
+ for file in sorted((logs / 'traces').glob('*.jsonl')):
27
+ for line in file.read_text().splitlines():
28
+ try:
29
+ row = json.loads(line)
30
+ except json.JSONDecodeError:
31
+ continue
32
+ key = (row['arm'], row['index'], row['rep'])
33
+ latest[key] = row
34
+ reward = row.get('reward')
35
+ if isinstance(reward, (int, float)) and math.isfinite(reward) and row.get('n_turns', 0) > 0:
36
+ selected.setdefault(key, row)
37
+ arm_stats = {}
38
+ errors = Counter()
39
+ missing = []
40
+ for arm in config['arms']:
41
+ rows = [r for k, r in selected.items() if k[0] == arm['name']]
42
+ arm_stats[arm['harness']] = {'graded': len(rows), 'correct': sum(r['reward'] for r in rows),
43
+ 'pass_fraction_among_graded_only': sum(r['reward'] for r in rows) / len(rows) if rows else None}
44
+ for index in config['indices']:
45
+ key = (arm['name'], index, 0)
46
+ if key in selected:
47
+ continue
48
+ r = latest.get(key, {})
49
+ category = 'Not yet attempted'
50
+ text = r.get('error') or r.get('skip_reason') or ''
51
+ if r.get('skipped'):
52
+ category = 'Skipped after evaluator failure brake'
53
+ elif text:
54
+ category = 'Other rollout error'
55
+ root = Path(r['capture_file']).parents[2] if r.get('capture_file') else logs
56
+ trial = root / 'trials' / r.get('trial_name', '') / 'result.json'
57
+ if trial.exists():
58
+ data = json.loads(trial.read_text())
59
+ text += (data.get('exception_info') or {}).get('exception_message', '')
60
+ for marker, label in [('No interface is running', 'Gradio tunnel 404'),
61
+ ('connection reset', 'Sandbox/HTTP connection reset'),
62
+ ('Agent execution timed out', '600-second agent timeout; cause unresolved'),
63
+ ('Healthcheck failed', 'Sandbox data healthcheck failure'),
64
+ ('Invalid HTTP request', 'HTTP 400 invalid request')]:
65
+ if marker in text:
66
+ category = label
67
+ break
68
+ errors[category] += 1
69
+ missing.append({'harness': arm['harness'], 'index': index, 'category': category})
70
+ tito_file = logs / 'smoke_tito.json'
71
+ tito = json.loads(tito_file.read_text()) if tito_file.exists() else {}
72
+ passes = sorted(logs.glob('eval-pass-*.log'))
73
+ return {'step': step, 'source_job': source_job, 'current_job': int(current['job_id']),
74
+ 'state': slurm(current['job_id']), 'graded': len(selected), 'expected': 1000,
75
+ 'harnesses': arm_stats, 'missing_categories': dict(errors), 'missing_cells': missing,
76
+ 'full_evaluation_started': bool(passes), 'latest_pass': passes[-1].name if passes else None,
77
+ 'smoke_passed': bool(tito.get('tito_pass') and len(tito.get('counts', {})) == 4 and all(n == 2 for n in tito['counts'].values())),
78
+ 'accepted_full_checkpoint_score': None}
79
+
80
+
81
+ def main():
82
+ status = {'checked_at': datetime.now(timezone.utc).isoformat(), 'runs': {}}
83
+ for run, key, step, source in [
84
+ ('multi4-long-prod-cont-20260915', 'multi4_900', 900, 81250),
85
+ ('multi4-long-prod-cont-20260915', 'multi4_1000', 1000, 81252),
86
+ ('harbor-opencode-only-20260916', 'harbor_opencode_100', 100, 81408),
87
+ ('harbor-opencode-only-20260916', 'harbor_opencode_200', 200, 81406)]:
88
+ status['runs'][key] = inspect(run, step, source)
89
+ snapshot = json.loads((ROOT / 'HuggingEnvs/04-data-agent/reports/async-comparison-20260916/snapshot.json').read_text())
90
+ train = snapshot['runs']['Harbor OpenCode-only']['training']
91
+ checkpoints = BASE / 'harbor-opencode-only-20260916/job-81075/run'
92
+ status['training'] = {'job': 81075, 'state': slurm(81075), 'step': train[-1]['step'],
93
+ 'saved_checkpoint': max(int(p.name.split('-')[-1]) for p in checkpoints.glob('checkpoint-*') if p.is_dir()),
94
+ 'metrics_updated_at': snapshot['updated_utc'],
95
+ 'reward_latest50': statistics.mean(r['reward'] for r in train[-50:]),
96
+ 'reward_previous50': statistics.mean(r['reward'] for r in train[-100:-50]),
97
+ 'nonfinite_scalar_rows': sum(any(isinstance(r.get(k),(int,float)) and not math.isfinite(r[k]) for k in ['loss','grad_norm','ratio','kl']) for r in train)}
98
+ (OUT / 'status.json').write_text(json.dumps(status, indent=2) + '\n')
99
+ print(json.dumps({'checked_at': status['checked_at'], 'evals': {k:{f:v[f] for f in ['graded','current_job','state','smoke_passed','missing_categories']} for k,v in status['runs'].items()}, 'training':status['training']}, indent=2))
100
+
101
+
102
+ if __name__ == '__main__':
103
+ main()
updates/2026-09-16-1950/opencode-truncation.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metric": "First graded OpenCode rollout for each of the 250 fixed tasks; completed arm, full checkpoint audit still pending for 900/1000",
3
+ "checkpoints": {
4
+ "800": {
5
+ "graded": 250,
6
+ "correct": 58,
7
+ "final_completion_4096_tokens_finish_length": 8,
8
+ "missing_answer_file": 166,
9
+ "zero_reward_and_length_and_missing_answer": 8
10
+ },
11
+ "900": {
12
+ "graded": 250,
13
+ "correct": 6,
14
+ "final_completion_4096_tokens_finish_length": 225,
15
+ "missing_answer_file": 238,
16
+ "zero_reward_and_length_and_missing_answer": 225
17
+ },
18
+ "1000": {
19
+ "graded": 250,
20
+ "correct": 14,
21
+ "final_completion_4096_tokens_finish_length": 204,
22
+ "missing_answer_file": 219,
23
+ "zero_reward_and_length_and_missing_answer": 202
24
+ }
25
+ },
26
+ "method": "Read selected trace row, exact-token capture final turn, and verifier/test-stdout.txt from the capture source job. Graded zeros are preserved. No retry or score selection was performed.",
27
+ "interpretation": "Output truncation and missing answers explain many recorded OpenCode zeros. The cause of the behavior shift remains unproven; model/harness interaction requires a separate controlled diagnostic."
28
+ }
updates/2026-09-16-1950/serving-diagnostics.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checkpoint1000": {
3
+ "median_waiting_requests": 0,
4
+ "p95_waiting_requests": 1,
5
+ "max_waiting_requests": 3,
6
+ "max_kv_cache_usage": 0.4846686449060337,
7
+ "median_running_requests": 49,
8
+ "p95_running_requests": 61,
9
+ "max_running_requests": 69
10
+ },
11
+ "harbor_opencode_200": {
12
+ "median_waiting_requests": 0,
13
+ "p95_waiting_requests": 4,
14
+ "max_waiting_requests": 7,
15
+ "max_kv_cache_usage": 0.35697329376854603,
16
+ "median_running_requests": 41
17
+ },
18
+ "public_health_probe": {
19
+ "fresh_connections": 24,
20
+ "passed_identity_response": 24,
21
+ "concurrency": 2,
22
+ "max_latency_seconds": 0.6464883247390389
23
+ },
24
+ "interpretation": "No evidence of GPU memory exhaustion or a large inference queue. Passing health requests does not prove long-lived model requests are reliable."
25
+ }
updates/2026-09-16-1950/status.json ADDED
The diff for this file is too large to render. See raw diff