Auto-sync: 2026-06-29 01:34:49 (part 3)
Browse filesFiles changed (7)
- scripts/build_paper_table_status.py+30
- scripts/eval_maniskill_policy_rollout.py+10
- scripts/slurm/eval_maniskill_policy_rollout.sbatch+2
- scripts/slurm/eval_maniskill_policy_rollout_cpu_smoke.sbatch+2
- scripts/slurm/smoke_retrieval_metric_unit.sbatch+30-6
- scripts/slurm/summarize_h16_policy_ckpt.sbatch+10-3
- tests/test_maniskill_policy_rollout.py+23-8
504 unmodified lines505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540504 unmodified lines story_role="strong train-source progress prior replacing typed no-op prior", pending_job="14894675/14894677", ), ResultSpec( key="retrieval_residual_k4_mean_srcscorebonus0015", label="K4 mean-by-type residual retrieval, scale 0.40, margin 0.20, source-score bonus 0.015", path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_k4s040_safe_margin0p20_mean_by_type_srcscorebonus0p015_summary.json", clean_deployment="yes", same_state_proposals="no", expert_proposal="no", story_role="train-source reward-score prior for sparse residual transport", pending_job="14897123/14897126", ), ResultSpec( key="retrieval_residual_k4_mean_srcscorebonus002", label="K4 mean-by-type residual retrieval, scale 0.40, margin 0.20, source-score bonus 0.02", path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_k4s040_safe_margin0p20_mean_by_type_srcscorebonus0p02_summary.json", clean_deployment="yes", same_state_proposals="no", expert_proposal="no", story_role="train-source reward-score prior for sparse residual transport", pending_job="14897124/14897127", ), ResultSpec( key="retrieval_residual_k4_mean_srcscorebonus0025", label="K4 mean-by-type residual retrieval, scale 0.40, margin 0.20, source-score bonus 0.025", path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_k4s040_safe_margin0p20_mean_by_type_srcscorebonus0p025_summary.json", clean_deployment="yes", same_state_proposals="no", expert_proposal="no", story_role="train-source reward-score prior for sparse residual transport", pending_job="14897125/14897128", ), ResultSpec( key="retrieval_residual_taskrelative_k4_mean_noopbonus003", label="K4 task-relative mean-by-type residual retrieval, scale 0.40, margin 0.20, no-op residual bonus 0.03",142 unmodified lines14314414514614714814915015115215315415589 unmodified lines245246247248249250251252253142 unmodified lines help="Scale for adding a train-source progress prior to each retrieved residual " "candidate before field selection. The policy_residual fallback receives zero.", ) parser.add_argument( "--retrieval-residual-source-score-bonus-scale", type=float, default=0.0, help="Scale for adding a train-source reward-score prior to each retrieved residual " "candidate before field selection. Score is progress plus terminal success.", ) parser.add_argument( "--retrieval-residual-scale", type=float,89 unmodified lines retrieval_residual_source_progress_bonus_scale=( args.retrieval_residual_source_progress_bonus_scale ), retrieval_residual_source_score_bonus_scale=( args.retrieval_residual_source_score_bonus_scale ), retrieval_residual_scale=args.retrieval_residual_scale, retrieval_residual_scales=retrieval_residual_scales, retrieval_residual_anchor=args.retrieval_residual_anchor,54 unmodified lines5556575859606161 unmodified lines12312412512612712812954 unmodified linesRETRIEVAL_TYPE_MIN_SUCCESS="${RETRIEVAL_TYPE_MIN_SUCCESS:-0.0}"RETRIEVAL_RESIDUAL_MIN_SOURCE_PROGRESS="${RETRIEVAL_RESIDUAL_MIN_SOURCE_PROGRESS:-0.0}"RETRIEVAL_RESIDUAL_SOURCE_PROGRESS_BONUS_SCALE="${RETRIEVAL_RESIDUAL_SOURCE_PROGRESS_BONUS_SCALE:-0.0}"RETRIEVAL_RESIDUAL_SOURCE_SCORE_BONUS_SCALE="${RETRIEVAL_RESIDUAL_SOURCE_SCORE_BONUS_SCALE:-0.0}"RETRIEVAL_RESIDUAL_SCALE="${RETRIEVAL_RESIDUAL_SCALE:-1.0}"RETRIEVAL_RESIDUAL_SCALES="${RETRIEVAL_RESIDUAL_SCALES:-}"if [[ -n "${RETRIEVAL_RESIDUAL_SCALES_COLON:-}" ]]; then61 unmodified lines --retrieval-type-min-success "$RETRIEVAL_TYPE_MIN_SUCCESS" \ --retrieval-residual-min-source-progress "$RETRIEVAL_RESIDUAL_MIN_SOURCE_PROGRESS" \ --retrieval-residual-source-progress-bonus-scale "$RETRIEVAL_RESIDUAL_SOURCE_PROGRESS_BONUS_SCALE" \ --retrieval-residual-source-score-bonus-scale "$RETRIEVAL_RESIDUAL_SOURCE_SCORE_BONUS_SCALE" \ --retrieval-residual-scale "$RETRIEVAL_RESIDUAL_SCALE" \ --retrieval-residual-scales "$RETRIEVAL_RESIDUAL_SCALES" \ --retrieval-residual-anchor "$RETRIEVAL_RESIDUAL_ANCHOR" \53 unmodified lines5455565758596058 unmodified lines11912012112212312412553 unmodified linesRETRIEVAL_TYPE_MIN_SUCCESS="${RETRIEVAL_TYPE_MIN_SUCCESS:-0.0}"RETRIEVAL_RESIDUAL_MIN_SOURCE_PROGRESS="${RETRIEVAL_RESIDUAL_MIN_SOURCE_PROGRESS:-0.0}"RETRIEVAL_RESIDUAL_SOURCE_PROGRESS_BONUS_SCALE="${RETRIEVAL_RESIDUAL_SOURCE_PROGRESS_BONUS_SCALE:-0.0}"RETRIEVAL_RESIDUAL_SOURCE_SCORE_BONUS_SCALE="${RETRIEVAL_RESIDUAL_SOURCE_SCORE_BONUS_SCALE:-0.0}"RETRIEVAL_RESIDUAL_SCALE="${RETRIEVAL_RESIDUAL_SCALE:-1.0}"RETRIEVAL_RESIDUAL_SCALES="${RETRIEVAL_RESIDUAL_SCALES:-}"if [[ -n "${RETRIEVAL_RESIDUAL_SCALES_COLON:-}" ]]; then58 unmodified lines --retrieval-type-min-success "$RETRIEVAL_TYPE_MIN_SUCCESS" \ --retrieval-residual-min-source-progress "$RETRIEVAL_RESIDUAL_MIN_SOURCE_PROGRESS" \ --retrieval-residual-source-progress-bonus-scale "$RETRIEVAL_RESIDUAL_SOURCE_PROGRESS_BONUS_SCALE" \ --retrieval-residual-source-score-bonus-scale "$RETRIEVAL_RESIDUAL_SOURCE_SCORE_BONUS_SCALE" \ --retrieval-residual-scale "$RETRIEVAL_RESIDUAL_SCALE" \ --retrieval-residual-scales "$RETRIEVAL_RESIDUAL_SCALES" \ --retrieval-residual-anchor "$RETRIEVAL_RESIDUAL_ANCHOR" \171 unmodified lines1721731741751751761771781791801811821831841851861871881891901821911921931944 unmodified lines19920020119320220320420520620720820921021121221321419921521621721821922022122222322422529 unmodified lines2552562572582592602616 unmodified lines268269270247248271272273274275171 unmodified lines)assert task_relative_attached.candidate_source_group_id == "train_actor_match", task_relative_attached
def record_progress(group_id, candidate_type, action_value, progress, feature):def record_progress( group_id, candidate_type, action_value, progress, feature, terminal_success=None,): if terminal_success is None: terminal_success = progress >= 1.0 return SimpleNamespace( group_id=group_id, task_id="PickCube-v1", candidate_type=candidate_type, record_id=f"{group_id}-{candidate_type}-{action_value}", observation_inline={"features": feature}, reward=SimpleNamespace(progress=progress, terminal_success=progress >= 1.0), reward=SimpleNamespace(progress=progress, terminal_success=terminal_success), action_chunk=ActionChunk( representation="continuous", horizon=1,4 unmodified linesgroups_progress = { "train_a": [ record_progress("train_a", "expert", 1.0, 1.0, [0.0, 0.0]), record_progress("train_a", "no_op", 1.2, 0.8, [0.0, 0.0]), record_progress( "train_a", "no_op", 1.2, 0.8, [0.0, 0.0], terminal_success=True, ), record_progress("train_a", "wrong_gripper", 1.4, 0.2, [0.0, 0.0]), ], "train_b": [ record_progress("train_b", "expert", 2.0, 1.0, [10.0, 0.0]), record_progress("train_b", "no_op", 2.2, 0.8, [10.0, 0.0]), record_progress("train_b", "wrong_gripper", 2.4, 0.8, [10.0, 0.0]), record_progress( "train_b", "wrong_gripper", 2.4, 0.8, [10.0, 0.0], terminal_success=True, ), ], "heldout_a": [record_progress("heldout_a", "expert", 9.0, 1.0, [0.0, 0.0])], "heldout_b": [record_progress("heldout_b", "expert", 9.0, 1.0, [10.0, 0.0])],29 unmodified lines retrieval_neighbors=1, retrieval_residual_min_source_progress=0.5, retrieval_residual_source_progress_bonus_scale=0.1, retrieval_residual_source_score_bonus_scale=0.05,)assert [len(case.candidate_action_values) for case in progress_attached] == [3, 3], progress_attachedassert progress_attached[0].candidate_types == [6 unmodified lines "residual_no_op", "residual_wrong_gripper",], progress_attached[1].candidate_typesassert np.allclose(progress_attached[0].candidate_score_bonuses, [0.0, 0.08, 0.0])assert np.allclose(progress_attached[1].candidate_score_bonuses, [0.0, 0.08, 0.08])assert np.allclose(progress_attached[0].candidate_score_bonuses, [0.0, 0.17, 0.0])assert np.allclose(progress_attached[1].candidate_score_bonuses, [0.0, 0.12, 0.17])print({ "status": "ok", "raw": raw_attached.candidate_source_group_id,75 unmodified lines76777879808182838460 unmodified lines1451461471451461481491501511521531541521551561571589 unmodified lines16816917017117217317417517617775 unmodified lines "retrieval_residual_source_progress_bonus_scale": data.get( "retrieval_residual_source_progress_bonus_scale", 0.0 ), "retrieval_residual_source_score_bonus_scale": data.get( "retrieval_residual_source_score_bonus_scale", 0.0 ), "retrieval_residual_scale": data.get("retrieval_residual_scale", 0.0), "retrieval_residual_scales": data.get("retrieval_residual_scales", []), "retrieval_residual_anchor": data.get("retrieval_residual_anchor", "none"),60 unmodified lines f"Mean progress: {summary['mean_progress']:.2%}", f"Mean action MSE to best: {summary['mean_action_mse_to_best']:.3f}", "", "| seed | mode | k | policy cand | retrieval K | retrieval metric | residual anchor | residual reduce | min type success | min source progress | source progress bonus | residual scale | residual scales | margin | sigma | opt steps | trust | success | progress | oracle | action MSE |", "|---:|---|---:|---|---:|---|---|---|---:|---:|---:|---:|---|---:|---:|---:|---:|---:|---:|---:|---:|", "| seed | mode | k | policy cand | retrieval K | retrieval metric | residual anchor | residual reduce | min type success | min source progress | source progress bonus | source score bonus | residual scale | residual scales | margin | sigma | opt steps | trust | success | progress | oracle | action MSE |", "|---:|---|---:|---|---:|---|---|---|---:|---:|---:|---:|---:|---|---:|---:|---:|---:|---:|---:|---:|---:|",]for row in rows: scales = row.get("retrieval_residual_scales") or [] scale_grid = ",".join(f"{float(scale):.2f}" for scale in scales) if scales else "none" lines.append( "| {seed} | {mode} | {k} | {policy_cand} | {retrieval} | {metric} | {anchor} | {reduce} | {min_success:.2f} | {min_source_progress:.2f} | {source_progress_bonus:.3f} | {scale:.2f} | {scale_grid} | {margin:.3f} | {sigma:.2f} | {steps} | {trust:.2f} | " "| {seed} | {mode} | {k} | {policy_cand} | {retrieval} | {metric} | {anchor} | {reduce} | {min_success:.2f} | {min_source_progress:.2f} | {source_progress_bonus:.3f} | {source_score_bonus:.3f} | {scale:.2f} | {scale_grid} | {margin:.3f} | {sigma:.2f} | {steps} | {trust:.2f} | " "{success:.2%} | {progress:.2%} | {oracle:.2%} | {mse:.3f} |".format( seed=row["seed"], mode=row.get("selection_mode") or "policy",9 unmodified lines "retrieval_residual_source_progress_bonus_scale" ) or 0.0, source_score_bonus=row.get( "retrieval_residual_source_score_bonus_scale" ) or 0.0, scale=row.get("retrieval_residual_scale") or 0.0, scale_grid=scale_grid, margin=row.get("selection_margin") or 0.0,1092 unmodified lines1093109410951096109710981099110011011102110311041105110311061107110811094 unmodified lines1114111511161114111711181119112030 unmodified lines1151115211531154115511561157115411581159116011617 unmodified lines1169117011711172117311741175117611771178117911801181117511821183118411854 unmodified lines119011911192118611931194119511961197119811921199120012011202120312041205120612071208120931 unmodified lines12411242124312441245124612477 unmodified lines12551256125712431244125812591092 unmodified lines candidate_type: str, action_value: float, progress: float, terminal_success: bool | None = None, ): if terminal_success is None: terminal_success = progress >= 1.0 return SimpleNamespace( group_id=group_id, task_id="PickCube-v1", candidate_type=candidate_type, record_id=f"{group_id}-{candidate_type}-{action_value}", observation_inline={"features": [0.0, 0.0]}, reward=SimpleNamespace(progress=progress, terminal_success=progress >= 1.0), reward=SimpleNamespace(progress=progress, terminal_success=terminal_success), action_chunk=ActionChunk( representation="continuous", horizon=1,4 unmodified lines groups = { "train_a": [ record("train_a", "expert", 1.0, 1.0), record("train_a", "no_op", 1.2, 0.8), record("train_a", "no_op", 1.2, 0.8, terminal_success=True), record("train_a", "wrong_gripper", 1.4, 0.2), ], "heldout": [30 unmodified lines retrieval_neighbors=1, retrieval_residual_min_source_progress=0.5, retrieval_residual_source_progress_bonus_scale=0.1, retrieval_residual_source_score_bonus_scale=0.05, )
assert attached.candidate_types == ["policy_residual", "residual_no_op"] assert np.allclose(attached.candidate_score_bonuses, [0.0, 0.08]) assert np.allclose(attached.candidate_score_bonuses, [0.0, 0.17]) assert np.allclose( np.asarray(attached.candidate_action_values, dtype=np.float32), np.asarray([[[0.0, 0.0]], [[0.2, 0.0]]]),7 unmodified lines action_value: float, progress: float, feature: list[float], terminal_success: bool | None = None, ): if terminal_success is None: terminal_success = progress >= 1.0 return SimpleNamespace( group_id=group_id, task_id="PickCube-v1", candidate_type=candidate_type, record_id=f"{group_id}-{candidate_type}-{action_value}", observation_inline={"features": feature}, reward=SimpleNamespace(progress=progress, terminal_success=progress >= 1.0), reward=SimpleNamespace(progress=progress, terminal_success=terminal_success), action_chunk=ActionChunk( representation="continuous", horizon=1,4 unmodified lines groups = { "train_a": [ record("train_a", "expert", 1.0, 1.0, [0.0, 0.0]), record("train_a", "no_op", 1.2, 0.8, [0.0, 0.0]), record("train_a", "no_op", 1.2, 0.8, [0.0, 0.0], terminal_success=True), record("train_a", "wrong_gripper", 1.4, 0.2, [0.0, 0.0]), ], "train_b": [ record("train_b", "expert", 2.0, 1.0, [10.0, 0.0]), record("train_b", "no_op", 2.2, 0.8, [10.0, 0.0]), record("train_b", "wrong_gripper", 2.4, 0.8, [10.0, 0.0]), record( "train_b", "wrong_gripper", 2.4, 0.8, [10.0, 0.0], terminal_success=True, ), ], "heldout_a": [record("heldout_a", "expert", 9.0, 1.0, [0.0, 0.0])], "heldout_b": [record("heldout_b", "expert", 9.0, 1.0, [10.0, 0.0])],31 unmodified lines retrieval_neighbors=1, retrieval_residual_min_source_progress=0.5, retrieval_residual_source_progress_bonus_scale=0.1, retrieval_residual_source_score_bonus_scale=0.05, )
assert [len(case.candidate_action_values) for case in attached] == [3, 3]7 unmodified lines "residual_no_op", "residual_wrong_gripper", ] assert np.allclose(attached[0].candidate_score_bonuses, [0.0, 0.08, 0.0]) assert np.allclose(attached[1].candidate_score_bonuses, [0.0, 0.08, 0.08]) assert np.allclose(attached[0].candidate_score_bonuses, [0.0, 0.17, 0.0]) assert np.allclose(attached[1].candidate_score_bonuses, [0.0, 0.12, 0.17])scripts/build_paper_table_status.py+30
scripts/eval_maniskill_policy_rollout.py+10
scripts/slurm/eval_maniskill_policy_rollout.sbatch+2
scripts/slurm/eval_maniskill_policy_rollout_cpu_smoke.sbatch+2
scripts/slurm/smoke_retrieval_metric_unit.sbatch+30-6
scripts/slurm/summarize_h16_policy_ckpt.sbatch+10-3
tests/test_maniskill_policy_rollout.py+23-8