Views
No views yet
ac1. Checkpoint saved
after training step 36 (0-indexed). Strict upstream eval parity:
1100s hard kill, verbatim prompts/entrypoints, group 64x8, T=1.0, kl 0.1.1{
2 "step": 36,
3 "progress/batch": 36,
4 "optim/lr": 4e-05,
5 "progress/done_frac": 0.74,
6 "puct/buffer_size": 584,
7 "puct/sampled_size": 8,
8 "puct/T": 18432,
9 "puct/scale_last": 0.5749763015970484,
10 "puct/buffer_value/mean": -1.523677067680879,
11 "puct/buffer_value/std": 0.08229342724773822,
12 "puct/buffer_value/min": -2.0797874683482562,
13 "puct/buffer_value/max": -1.5048111667512079,
14 "puct/buffer_timestep/mean": 17.246575342465754,
15 "puct/buffer_timestep/std": 10.538618897736114,
16 "puct/buffer_timestep/min": -1.0,
17 "puct/buffer_timestep/max": 35.0,
18 "puct/buffer_construction_len/mean": 1102.722602739726,
19 "puct/buffer_construction_len/std": 682.7112762723273,
20 "puct/buffer_construction_len/min": 1000.0,
21 "puct/buffer_construction_len/max": 7850.0,
22 "puct/sampled_value/mean": -1.5048194668107333,
23 "puct/sampled_value/std": 6.123778835809168e-06,
24 "puct/sampled_value/min": -1.5048269600494064,
25 "puct/sampled_value/max": -1.5048111667512079,
26 "puct/sampled_timestep/mean": 35.0,
27 "puct/sampled_timestep/std": 0.0,
28 "puct/sampled_timestep/min": 35.0,
29 "puct/sampled_timestep/max": 35.0,
30 "puct/sampled_construction_len/mean": 1000.0,
31 "puct/sampled_construction_len/std": 0.0,
32 "puct/sampled_construction_len/min": 1000.0,
33 "puct/sampled_construction_len/max": 1000.0,
34 "time/sampling": 5782.896250247955,
35 "env/all/ac_tokens_per_turn": 7887.94140625,
36 "env/all/ob_tokens_per_turn": 3738.875,
37 "env/all/turns_per_episode": 1.0,
38 "env/all/total_episodes": 512,
39 "env/all/total_turns": 512,
40 "env/all/total_ac_tokens": 4038626,
41 "env/all/total_ob_tokens": 1914304,
42 "env/all/time/sampling_mean": 500.24485625326633,
43 "env/all/time/sampling_max": 683.5448620319366,
44 "env/all/time/env_step_mean": 2891.1398732741363,
45 "env/all/time/env_step_max": 5088.83905005455,
46 "env/all/reward/mean": 0.5251273092099414,
47 "env/all/reward/max": 0.6645352673004808,
48 "env/all/reward/min": 0.0,
49 "env/all/format": 1.0,
50 "env/all/format/min": 1.0,
51 "env/all/format/max": 1.0,
52 "env/all/reward": 0.5251273092099414,
53 "env/all/correctness": 0.810546875,
54 "env/all/correctness/min": 0.0,
55 "env/all/correctness/max": 1.0,
56 "env/all/raw_score": 1.6278310162306149,
57 "env/all/raw_score/min": 1.5048110199130793,
58 "env/all/raw_score/max": 22.33353693512489,
59 "env/all/initial_raw_score": -1.5048194668107335,
60 "env/all/initial_raw_score/min": -1.5048269600494064,
61 "env/all/initial_raw_score/max": -1.5048111667512079,
62 "env/all/msg": "Success; raw_score=1.5048111084477913",
63 "env/all/parsed_code": "```python\nimport time\nimport numpy as np\nimport cvxpy as cp\nimport copy\nimport random\n\ndef propose_candidate(seed=42, budget_s=1000, **kwargs):\n \"\"\"\n Optimizes a sequence of non-negative coefficients to minimize the evaluation function.\n This approach enhances exploration via diverse initial sequences, dynamic LP thresholding, and adaptive expansion strategies.\n \"\"\"\n np.random.seed(seed)\n deadline = time.time() + budget_s - 10\n\n # Try to start from known best construction\n prev = globals().get(\"height_sequence_1\", None)\n if prev is not None and isinstance(prev, (list, np.ndarray)) and len(prev) > 0:\n best_sequence = list(np.asarray(prev, dtype=float))\n else:\n # Generate diverse and informative initial sequences\n initial_sequences = []\n for _ in range(50): # Moderately sized initial sampling\n base_len = np.random.choice([256, 512, 1024])\n base = np.zeros(base_len)\n if np.random.rand() < 0.1: # Gauss-like decay\n base = np.exp(-np.linspace(0, 1, base_len)**2 * 10) * 0.1 + 0.02\n elif np.random.rand() < 0.1: # Multi-peak decay\n base = np.zeros_like(base)\n num_peaks = np.random.randint(3, 7)\n for i in range(num_peaks):\n x = np.random.uniform(0, 1)\n base += np.exp(-((np.linspace(0, 1, base_len) - x)**2)*10) * 0.1\n base *= 0.2\n elif np.random.rand() < 0.1: # Random wave with high amplitude\n base = np.sin(np.linspace(0, 4 * np.pi, base_len)) * 0.1 + 0.05\n elif np.random.rand() < 0.1: # Exponential decay\n base = np.random.exponential(scale=0.2, size=base_len) * 0.05\n elif np.random.rand() < 0.1: # Step function\n base = np.zeros(base_len)\n for _ in range(np.random.randint(2, 5)):\n pos = np.random.choice(len(base))\n base[pos] += np.random.uniform(0.05, 0.1)\n base = np.abs(base) * 0.2 + 0.01\n elif np.random.rand() < 0.1: # Alternating peaks\n base = np.zeros(base_len)\n for i in range(0, base_len, np.random.randint(10, 50)):\n base[i] += np.random.uniform(0.05, 0.1)\n else: # Random but structured\n base = np.random.rand(base_len) * 0.5 + np.exp(-np.linspace(0, 1, base_len)**2 * 10) * 0.1\n sum_base = np.sum(base)\n scale_factor = 0.8 / (sum_base if sum_base > 0.0 else 0.5) \n initial_sequences.append([max(0.0, x * scale_factor) for x in base])\n best_sequence = initial_sequences[0].copy()\n for seq in initial_sequences:\n curr_score = evaluate_sequence(seq)\n best_score = evaluate_sequence(best_sequence)\n if curr_score < best_score:\n best_sequence = seq.copy()\n\n current_sequence = best_sequence.copy()\n best_score = float('inf')\n best_sequence = list(current_sequence)\n\n def perturb_sequence(seq):\n \"\"\"Strategic element-wise adjustments to reduce peak convolution values.\"\"\"\n n = len(seq)\n if n == 0:\n return None\n conv = np.convolve(seq, seq)\n top_indices = np.argsort(conv)[-150:] # Expand top positions for better exploration\n indices = np.random.choice(top_indices, size=min(70, len(top_indices)), replace=False)\n indices = [min(idx, len(seq)-1) for idx in indices]\n scale = 0.20 * np.std(seq) # Larger perturbations for adaptive exploration\n for idx in indices:\n new_val = max(0.0, seq[idx] - np.random.normal(0, scale))\n seq = [new_val if i == idx else seq[i] for i in range(len(seq))]\n return seq\n\n def random_walk(seq):\n \"\"\"Small random perturbations to all elements for exploration.\"\"\"\n scale = 0.25 * np.std(seq)\n new_seq = [max(0.0, x + np.random.normal(0, scale)) for x in seq]\n return new_seq\n\n def get_good_direction_to_move_into(sequence):\n \"\"\"Optimizes through dynamic constraint selection and direct blending.\"\"\"\n n = len(sequence)\n sum_sequence = np.sum(sequence)\n if sum_sequence <= 0.0:\n return None\n conv = np.convolve(sequence, sequence)\n max_b_val = np.max(conv)\n threshold_scale = 0.9 # More aggressive constraint to lower max_b\n # Dynamic threshold based on current max_b and sum\n target_ratio = 1.503 # Target evaluation value\n current_ratio = 2 * n * max_b_val / (sum_sequence**2)\n threshold = max(0.6 * max_b_val, 0.05 * max_b_val * np.sqrt(n)) if max_b_val > 0 else 0.05\n # Adjust threshold based on current ratio\n if current_ratio > target_ratio:\n threshold *= 0.8\n tight_positions = np.where(conv >= threshold)[0]\n if not tight_positions.size:\n tight_positions = np.arange(2 * n - 1)\n g_fun = solve_convolution_lp(sequence, threshold, tight_positions, threshold_scale=threshold_scale)\n if g_fun is None:\n return None\n sum_g = np.sum(g_fun)\n if sum_g <= 0.0:\n return None\n # Golden-section search with 200 iterations for better optimization\n def objective(t):\n new_seq = [ (1 - t) * x + t * y for x, y in zip(sequence, g_fun) ]\n return evaluate_sequence(new_seq)\n low, high = 0.0, 1.0\n for _ in range(200):\n t1 = low + (high - low) / 3\n t2 = high - (high - low) / 3\n f1 = objective(t1)\n f2 = objective(t2)\n if f1 < f2:\n high = t2\n else:\n low = t1\n best_t = (low + high) / 2\n new_seq = [ (1 - best_t) * x + best_t * y for x, y in zip(sequence, g_fun) ]\n return new_seq\n\n def solve_convolution_lp(f_sequence, rhs, tight_positions, threshold_scale=1.0):\n n = len(f_sequence)\n if n == 0:\n return None\n g = cp.Variable(n, nonneg=True)\n objective = cp.Minimize(-cp.sum(g))\n constraints = []\n # Use all positions for constraints instead of subset\n max_b_val = np.max(np.convolve(f_sequence, f_sequence))\n for k in tight_positions:\n coeff = np.zeros(n)\n for j in range(n):\n i = k - j\n if 0 <= i < n:\n coeff[j] = f_sequence[i]\n constraints.append(cp.sum(coeff * g) <= threshold_scale * max_b_val)\n problem = cp.Problem(objective, constraints)\n try:\n problem.solve(solver=cp.GLPK, verbose=False, eps=1e-6)\n return g.value if problem.status == cp.OPTIMAL else None\n except:\n return None\n\n def expand_sequence(seq):\n \"\"\"Expand sequence by balancing the added element with existing ones.\"\"\"\n n = len(seq)\n if n >= 1500:\n return seq\n # Insert in the middle to balance convolution\n insert_pos = n // 2\n new_val = max(0.0, np.mean(seq) * 0.95)\n new_seq = seq[:insert_pos] + [new_val] + seq[insert_pos:]\n new_sum = np.sum(new_seq)\n # Scale sum to prevent it from being too small\n if new_sum < 0.01:\n scale_factor = 0.01 / new_sum\n new_seq = [x * scale_factor for x in new_seq]\n return new_seq\n\n while time.time() < deadline:\n # Try LP-based move\n h_function = get_good_direction_to_move_into(current_sequence)\n if h_function is not None:\n current_sequence = h_function\n else:\n # Expand if not already at limit\n if len(current_sequence) < 1500:\n current_sequence = expand_sequence(current_sequence)\n else:\n current_sequence = perturb_sequence(current_sequence)\n\n # Occasionally try random walk for exploration\n if np.random.rand() < 0.05:\n current_sequence = random_walk(current_sequence)\n\n # Try structured balancing on key positions\n if np.random.rand() < 0.03:\n seq = [max(0.0, x) for x in current_sequence]\n n = len(seq)\n conv = np.convolve(seq, seq)\n peak_indices = np.argsort(conv)[-15:] # Focus on important peak positions\n peak_indices = np.array([min(idx, n-1) for idx in peak_indices])\n for idx in peak_indices:\n if seq[idx] > 0.0:\n seq[idx] = max(0.0, seq[idx] * 0.7)\n for shift in [-1, 0, 1]:\n neighbor_idx = idx + shift\n if 0 <= neighbor_idx < n:\n seq[neighbor_idx] = min(1000.0, seq[neighbor_idx] * 1.2)\n current_sequence = [max(0.0, min(1000.0, x)) for x in seq]\n\n try:\n curr_score = evaluate_sequence(current_sequence)\n if curr_score < best_score:\n best_score = curr_score\n best_sequence = current_sequence.copy()\n print(f\"New best: {best_score}\")\n except Exception:\n pass\n\n return [float(max(0.0, x)) for x in best_sequence]\n```",
64 "env/all/time/policy": 500.24485625326633,
65 "env/all/time/policy/min": 124.03316831588745,
66 "env/all/time/policy/max": 683.5448620319366,
67 "env/all/time/env_step": 2891.1398732741363,
68 "env/all/time/env_step/min": 0.6951770782470703,
69 "env/all/time/env_step/max": 5088.83905005455,
70 "env/all/time/reward_compute": 3.7671998143196106e-07,
71 "env/all/time/reward_compute/min": 2.0116567611694336e-07,
72 "env/all/time/reward_compute/max": 6.444752216339111e-07,
73 "env/all/by_group/frac_mixed": 1.0,
74 "env/all/by_group/frac_all_good": 0.0,
75 "env/all/by_group/frac_all_bad": 0.0,
76 "advantage/mean": 0.012350874952971935,
77 "advantage/min": -1.0,
78 "advantage/max": 9.095869064331055,
79 "time/assemble_training_data": 9.629291296005249,
80 "time/kl_vs_base": 144.9806923866272,
81 "kl_policy_base": 0.0010136931668967009,
82 "time/train": 1114.573874950409,
83 "time/save_checkpoint": 16.174305200576782,
84 "time/total": 7070.749992609024
85}[2026-07-09T06:24:18+00:00] job=1812630 node=node-14 ngpu=3 ntrain=1 replicas=2 flash_attn=no
[2026-07-09T09:14:17+00:00] job=1813129 node=node-28 ngpu=3 ntrain=1 replicas=2 flash_attn=yes
[2026-07-09T13:46:36+00:00] job=1813130 node=node-22 ngpu=6 ntrain=2 replicas=4 flash_attn=yes
[2026-07-11T14:04:05+00:00] job=1824338 node=node-1 ngpu=3 ntrain=1 replicas=2 flash_attn=yes