Downloads · 30 days
0
EdwardoSunny/ttt-discover-v3-qwen3-8b-ac2-s2-step11
ttt-discover-v3-qwen3-8b-ac2-s2-step11 is a machine learning model from EdwardoSunny. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
LoRA adapter (rank 32, all-linear) from the upstream-faithful local reproduction of TTT-Discover on autoresearch-bench ac2. Checkpoint saved after training step 10 (0-indexed). Strict upstream eval parity: 1100s hard…
Downloads · 30 days
0
Access
Public
Updated Jul 10, 2026
Repo size
353 MB
Likes
0
Public
Click a slice to open those files.
.safetensors349 MB · 99%
From the Hugging Face model README
LoRA adapter (rank 32, all-linear) from the upstream-faithful local
reproduction of TTT-Discover on autoresearch-bench ac2. Checkpoint saved
after training step 10 (0-indexed). Strict upstream eval parity:
1100s hard kill, verbatim prompts/entrypoints, group 64x8, T=1.0, kl 0.1.
{
"step": 10,
"progress/batch": 10,
"optim/lr": 4e-05,
"progress/done_frac": 0.22,
"puct/buffer_size": 165,
"puct/sampled_size": 8,
"puct/T": 5120,
"puct/scale_last": 0.18856059207828857,
"puct/buffer_value/mean": 0.9123245965098714,
"puct/buffer_value/std": 0.06164622378404127,
"puct/buffer_value/min": 0.6666666666666636,
"puct/buffer_value/max": 0.9450164523182797,
"puct/buffer_timestep/mean": 4.260606060606061,
"puct/buffer_timestep/std": 3.054846065053915,
"puct/buffer_timestep/min": -1.0,
"puct/buffer_timestep/max": 9.0,
"puct/buffer_construction_len/mean": 3238.4424242424243,
"puct/buffer_construction_len/std": 2970.2216800271344,
"puct/buffer_construction_len/min": 1024.0,
"puct/buffer_construction_len/max": 32768.0,
"puct/sampled_value/mean": 0.9430531823660024,
"puct/sampled_value/std": 0.0008891631644026978,
"puct/sampled_value/min": 0.9421846266523012,
"puct/sampled_value/max": 0.9444668967899263,
"puct/sampled_timestep/mean": 9.0,
"puct/sampled_timestep/std": 0.0,
"puct/sampled_timestep/min": 9.0,
"puct/sampled_timestep/max": 9.0,
"puct/sampled_construction_len/mean": 3840.0,
"puct/sampled_construction_len/std": 1898.5468126964897,
"puct/sampled_construction_len/min": 2048.0,
"puct/sampled_construction_len/max": 8192.0,
"time/sampling": 5695.6988697052,
"env/all/ac_tokens_per_turn": 8187.85546875,
"env/all/ob_tokens_per_turn": 4057.875,
"env/all/turns_per_episode": 1.0,
"env/all/total_episodes": 512,
"env/all/total_turns": 512,
"env/all/total_ac_tokens": 4192182,
"env/all/total_ob_tokens": 2077632,
"env/all/time/sampling_mean": 306.44105061283335,
"env/all/time/sampling_max": 399.80226039886475,
"env/all/time/env_step_mean": 2624.5783548820764,
"env/all/time/env_step_max": 5298.131931304932,
"env/all/reward/mean": 0.22201146751249676,
"env/all/reward/max": 0.9451865858077976,
"env/all/reward/min": 0.0,
"env/all/format": 1.0,
"env/all/format/min": 1.0,
"env/all/format/max": 1.0,
"env/all/reward": 0.22201146751249676,
"env/all/correctness": 0.2421875,
"env/all/correctness/min": 0.0,
"env/all/correctness/max": 1.0,
"env/all/raw_score": 0.9166925110193416,
"env/all/raw_score/min": 0.6115101194808037,
"env/all/raw_score/max": 0.9451865858077976,
"env/all/initial_raw_score": 0.9430531823660024,
"env/all/initial_raw_score/min": 0.9421846266523012,
"env/all/initial_raw_score/max": 0.9444668967899263,
"env/all/msg": "Evaluation timed out after 1100 seconds.",
"env/all/parsed_code": "```python\nimport numpy as np\nfrom typing import Tuple, List\nimport random\nimport time\n\ndef _simpson_l2sq(conv: np.ndarray) -> Tuple[float, np.ndarray]:\n m = conv.size\n if m == 0:\n return 0.0, np.zeros_like(conv)\n dx = 1.0 / (m + 1)\n y = np.zeros(m + 2, dtype=conv.dtype)\n y[0] = 0.0\n y[1:-1] = conv\n y[-1] = 0.0\n lhs = y[:-1]\n rhs = y[1:]\n l2_sq = (dx / 3.0) * np.sum(lhs * lhs + lhs * rhs + rhs * rhs)\n grad_y = (dx / 3.0) * (4.0 * y + np.roll(y, 1) + np.roll(y, -1))\n grad_conv = grad_y[1:-1]\n return float(l2_sq), grad_conv\n\ndef _l1(conv: np.ndarray) -> Tuple[float, np.ndarray]:\n m = conv.size\n dx = 1.0 / (m + 1) if m > 0 else 1.0\n val = dx * float(np.sum(conv)) if m > 0 else 0.0\n grad = np.full_like(conv, dx)\n return val, grad\n\ndef _linf(conv: np.ndarray) -> Tuple[float, np.ndarray]:\n if conv.size == 0:\n return 0.0, np.zeros_like(conv)\n m = float(np.max(conv))\n if m <= 0.0:\n return m, np.zeros_like(conv)\n mask = conv == m\n count = int(mask.sum())\n if count == 0:\n return m, np.zeros_like(conv)\n grad = mask.astype(conv.dtype) / count\n return m, grad\n\ndef _objective_and_grad_conv(conv: np.ndarray) -> Tuple[float, np.ndarray]:\n l2_sq, g_l2 = _simpson_l2sq(conv)\n l1, g_l1 = _l1(conv)\n linf, g_linf = _linf(conv)\n if l1 <= 0.0 or linf <= 0.0:\n return 0.0, np.zeros_like(conv)\n denom = l1 * linf\n c_value = l2_sq / denom\n num_grad = g_l2 * denom - l2_sq * (g_l1 * linf + l1 * g_linf)\n g_conv = num_grad / (denom * denom)\n return float(c_value), g_conv\n\ndef _grad_h_from_conv_grad(h: np.ndarray, g_conv: np.ndarray) -> np.ndarray:\n h_rev = h[::-1]\n g_h = np.convolve(g_conv, h_rev, mode=\"valid\")\n return 2.0 * g_h\n\ndef _upsample_1d(h: np.ndarray) -> np.ndarray:\n n = h.shape[0]\n x_old = np.linspace(-0.5, 0.5, n)\n x_new = np.linspace(-0.5, 0.5, 2 * n)\n return np.interp(x_new, x_old, h)\n\ndef _single_candidate_finetune(h0: np.ndarray, lr=3e-3, steps=60000) -> Tuple[np.ndarray, float]:\n h = h0.astype(np.float32).copy()\n last_c = 0.0\n for _ in range(steps):\n h_clip = np.clip(h, 0.0, None)\n conv = np.convolve(h_clip, h_clip, mode=\"full\")\n c_val, g_conv = _objective_and_grad_conv(conv)\n g_h = _grad_h_from_conv_grad(h_clip, g_conv)\n h = np.clip(h + lr * g_h, 0.0, 1000.0)\n last_c = c_val\n return h, float(last_c)\n\ndef construct_function():\n \"\"\"\n Optimizes a sequence of non-negative heights for maximizing the evaluation score using\n multi-scale gradient ascent with diverse initial conditions, adaptive noise, and momentum-based optimization.\n \"\"\"\n np.random.seed(0)\n \n # Load previous best sequence\n height_sequence_1 = globals().get(\"height_sequence_1\", None)\n n = 4096 # Increased to 4096 for higher resolution\n initial_n = 2048 # Starting sequence length\n initial_candidates = []\n\n if height_sequence_1 is not None:\n # Use previous best and upscale\n initial_h = np.array(height_sequence_1, dtype=np.float32)\n initial_n = min(len(initial_h), 4096)\n x_old = np.linspace(-0.5, 0.5, len(initial_h))\n x_new = np.linspace(-0.5, 0.5, initial_n)\n h = np.interp(x_new, x_old, initial_h)\n initial_candidates.append(h)\n else:\n # Generate diverse initial sequences\n # Random\n initial_candidates.append(np.random.uniform(0.1, 1.0, initial_n))\n # Single peak\n single_peak = np.zeros(initial_n, dtype=np.float32)\n single_peak[initial_n // 2] = 1.0\n initial_candidates.append(single_peak)\n # Multi peaks\n multi_peak = np.zeros(initial_n, dtype=np.float32)\n for i in range(0, initial_n, initial_n // 4):\n multi_peak[i] = 1.0\n initial_candidates.append(multi_peak)\n # Flat\n flat_seq = np.ones(initial_n, dtype=np.float32) * 0.1\n initial_candidates.append(flat_seq)\n # Gaussian\n x = np.linspace(-0.5, 0.5, initial_n)\n gaussian_seq = np.exp(-((x - 0.0)**2) / (0.1**2)) * 100.0\n initial_candidates.append(np.clip(gaussian_seq, 0.0, 1000.0))\n\n best_score = -1.0\n best_heights = None\n\n # Try each initial sequence\n for candidate in initial_candidates:\n h = candidate.astype(np.float32).copy()\n h_sum = np.sum(h)\n if h_sum < 0.01:\n h = np.clip(h + (0.01 - h_sum) / initial_n, 0.0, 1000.0)\n\n # Gradient ascent with momentum\n learning_rate = 0.06\n noise_scale_initial = 0.2\n max_steps = 300_000\n upscale_steps = 200_000\n refine_steps = 100_000\n noise_decay = 0.95\n learning_rate_decay = 0.95\n\n start_time = time.time()\n momentum = 0.9\n velocity = np.zeros_like(h)\n\n for step in range(max_steps):\n clipped_h = np.clip(h, 0.0, None)\n conv = np.convolve(clipped_h, clipped_h, mode='full')\n obj_val, grad_conv = _objective_and_grad_conv(conv)\n grad_h = _grad_h_from_conv_grad(clipped_h, grad_conv)\n\n noise_scale = noise_scale_initial * (noise_decay ** step)\n learning_rate_current = learning_rate * (learning_rate_decay ** step)\n\n noise = noise_scale * np.random.normal(size=h.shape) if step < upscale_steps else 0.0\n velocity = momentum * velocity + (1 - momentum) * grad_h\n h = np.clip(h + learning_rate_current * velocity + noise, 0.0, 1000.0)\n\n h_sum = np.sum(h)\n if h_sum < 0.01:\n h = np.clip(h + (0.01 - h_sum) / h.shape[0], 0.0, 1000.0)\n\n remaining_time = 1000 - (time.time() - start_time)\n if remaining_time < 10:\n break\n\n # Upsample and refine\n h_up = _upsample_1d(h)\n h_up, _ = _single_candidate_finetune(h_up, lr=5e-3, steps=refine_steps)\n h_final = np.clip(h_up, 0.0, 1000.0)\n current_score = evaluate_sequence(h_final.tolist())\n\n if current_score > best_score:\n best_score = current_score\n best_heights = h_final.tolist()\n print(f\"New best score: {best_score} at {time.time() - start_time:.2f} seconds\")\n\n return best_heights\n```",
"env/all/time/policy": 306.44105061283335,
"env/all/time/policy/min": 149.3675229549408,
"env/all/time/policy/max": 399.80226039886475,
"env/all/time/env_step": 2624.5783548820764,
"env/all/time/env_step/min": 0.0055904388427734375,
"env/all/time/env_step/max": 5298.131931304932,
"env/all/time/reward_compute": 2.835877239704132e-07,
"env/all/time/reward_compute/min": 2.0489096641540527e-07,
"env/all/time/reward_compute/max": 5.811452865600586e-07,
"env/all/by_group/frac_mixed": 1.0,
"env/all/by_group/frac_all_good": 0.0,
"env/all/by_group/frac_all_bad": 0.0,
"advantage/mean": 0.03389061242341995,
"advantage/min": -1.0,
"advantage/max": 7.765933036804199,
"time/assemble_training_data": 7.296083450317383,
"time/kl_vs_base": 87.50266885757446,
"kl_policy_base": 0.0006289675366133451,
"time/train": 592.9926085472107,
"time/save_checkpoint": 10.734349489212036,
"time/total": 6398.241723775864
}
[2026-07-09T06:42:12+00:00] job=1812634 node=node-30 ngpu=3 ntrain=1 replicas=2 flash_attn=no
[2026-07-09T07:26:33+00:00] job=1812736 node=node-12 ngpu=3 ntrain=1 replicas=2 flash_attn=yes
[2026-07-09T09:27:32+00:00] job=1813133 node=node-14 ngpu=3 ntrain=1 replicas=2 flash_attn=yes
[2026-07-09T16:26:04+00:00] job=1813134 node=node-4 ngpu=6 ntrain=2 replicas=4 flash_attn=yes