BIue-Jay commited on
Commit
7c863e9
·
verified ·
1 Parent(s): ac51940

Update README and adapter code

Browse files
code/hb_psi0/hb_args.py CHANGED
@@ -21,7 +21,7 @@ from pathlib import Path
21
 
22
  H = Path(__file__).resolve().parent
23
  G = Path(os.environ.get("G", H.parent))
24
- TASKS = ("b6", "basket", "basketv2", "a3", "a7", "a18", "trolley", "a17", "b7", "a6", "a1", "a10v2", "c6t", "c6", "a14", "a7v2", "b8", "a18c2", "a17c2", "b1", "a14v2", "a10v3", "a3v3", "a7v3", "b6v6", "b5", "a3v4", "a7v4", "a14cr3", "b7t", "b7gt", "b5ss", "a18cr2", "a17cr2", "a14cr3a", "b6v6p", "basketv2p", "a9", "b1v2", "b7td", "b7gtd", "b4", "a29", "a21")
25
  WORLD = int(os.environ.get("HB_WORLD", "32")) # 4 nodes x 8 GPUs
26
  EPOCHS, SAVE_EPOCH, WARMUP_FRAC = 20, 10, 0.025 # warmup: native 1000/40000 = 2.5 %
27
  HORIZON = 30
@@ -42,12 +42,13 @@ def receipt(task):
42
  # resume state), HF folders step-002000 / step-004000.
43
  FIXED_STEPS = int(os.environ.get("HB_FIXED_STEPS", "4000"))
44
  CKPT_EVERY = 2000
 
45
 
46
 
47
  def plan(frames, batch):
48
  gb = batch * WORLD
49
  steps = FIXED_STEPS
50
- save = CKPT_EVERY if steps % CKPT_EVERY == 0 else steps - CKPT_EVERY # saves at steps - 2000 and steps
51
  return {"frames": frames, "per_gpu_batch": batch, "global_batch": gb, "fixed_steps": True, "epochs": None,
52
  "epochs_equivalent": round(steps * gb / frames, 2), "steps": steps, "save_steps": save,
53
  "warmup_steps": max(1, round(WARMUP_FRAC * steps))}
 
21
 
22
  H = Path(__file__).resolve().parent
23
  G = Path(os.environ.get("G", H.parent))
24
+ TASKS = ("b6", "basket", "basketv2", "a3", "a7", "a18", "trolley", "a17", "b7", "a6", "a1", "a10v2", "c6t", "c6", "a14", "a7v2", "b8", "a18c2", "a17c2", "b1", "a14v2", "a10v3", "a3v3", "a7v3", "b6v6", "b5", "a3v4", "a7v4", "a14cr3", "b7t", "b7gt", "b5ss", "a18cr2", "a17cr2", "a14cr3a", "b6v6p", "basketv2p", "a9", "b1v2", "b7td", "b7gtd", "b4", "a29", "a21", "a3v4p", "a7v4p", "b1v2p", "a14cr5", "a17cr4", "a18cr4")
25
  WORLD = int(os.environ.get("HB_WORLD", "32")) # 4 nodes x 8 GPUs
26
  EPOCHS, SAVE_EPOCH, WARMUP_FRAC = 20, 10, 0.025 # warmup: native 1000/40000 = 2.5 %
27
  HORIZON = 30
 
42
  # resume state), HF folders step-002000 / step-004000.
43
  FIXED_STEPS = int(os.environ.get("HB_FIXED_STEPS", "4000"))
44
  CKPT_EVERY = 2000
45
+ CKPT_SAVE = os.environ.get("HB_CKPT_SAVE") # 2026-11-27 big-model rule: first checkpoint at ~80 % (3200 of 4000); unset = old cadence
46
 
47
 
48
  def plan(frames, batch):
49
  gb = batch * WORLD
50
  steps = FIXED_STEPS
51
+ save = int(CKPT_SAVE) if CKPT_SAVE else (CKPT_EVERY if steps % CKPT_EVERY == 0 else steps - CKPT_EVERY) # saves at save and steps (the trainer always saves its last step)
52
  return {"frames": frames, "per_gpu_batch": batch, "global_batch": gb, "fixed_steps": True, "epochs": None,
53
  "epochs_equivalent": round(steps * gb / frames, 2), "steps": steps, "save_steps": save,
54
  "warmup_steps": max(1, round(WARMUP_FRAC * steps))}
code/hb_psi0/prepare_data.py CHANGED
@@ -86,6 +86,12 @@ TASKS = { # task -> (source dataset, episode limit, robot layout)
86
  "b4": (P / "b4-cushion-194e7cd/data", None, "g1"), # 2026-11-25 user: B4 cushion bed -> sofa (HF b4-cushion @194e7cde, v2 at the repo root, all 302 ep, G1, 30 Hz)
87
  "a29": (P / "a29-drawer-close-black-marble-30hz-d03c19e/data", None, "g1"), # 2026-11-25 user: A29 drawer close, black-marble kitchen 30 Hz (HF a29-drawer-close-black-marble-30hz-v1 @d03c19e6, all 100 ep, G1, ego_view + chest)
88
  "a21": (P / "a21-floor-transfer-basket-682f2bf/data", None, "g1"), # 2026-11-26 user: A21 floor basket transfer (HF a21-floor-transfer-basket-trim-raw-head-expert-v1 @682f2bfc, all 100 ep, G1, ego_view + chest, idle-trimmed)
 
 
 
 
 
 
89
  "a18cr2": (P / "a18-pour-water-cropped-v2-44cdd57/data", None, "h2"), # HF a18-pour-water-expert-cropped-v2 @44cdd57, head + chest (user 2026-11-22)
90
  "a17cr2": (P / "a17-unscrew-bottle-cropped-v2-3520b70/data", None, "h2"), # HF a17-unscrew-bottle-expert-cropped-v2 @3520b70, head + chest (user 2026-11-22) # HF a14-screw-bulb-expert-cropped-v3 @79fe08a (trimmed v2, + planner; user 2026-11-20)
91
  }
 
86
  "b4": (P / "b4-cushion-194e7cd/data", None, "g1"), # 2026-11-25 user: B4 cushion bed -> sofa (HF b4-cushion @194e7cde, v2 at the repo root, all 302 ep, G1, 30 Hz)
87
  "a29": (P / "a29-drawer-close-black-marble-30hz-d03c19e/data", None, "g1"), # 2026-11-25 user: A29 drawer close, black-marble kitchen 30 Hz (HF a29-drawer-close-black-marble-30hz-v1 @d03c19e6, all 100 ep, G1, ego_view + chest)
88
  "a21": (P / "a21-floor-transfer-basket-682f2bf/data", None, "g1"), # 2026-11-26 user: A21 floor basket transfer (HF a21-floor-transfer-basket-trim-raw-head-expert-v1 @682f2bfc, all 100 ep, G1, ego_view + chest, idle-trimmed)
89
+ "a3v4p": (P / "a3-fridge-open-v4p-fe89f5b/data", None, "g1"), # 2026-11-27 user: newest pause-trim (a29_trim_stationary 3 frames) data, all 7 baselines retrain: HF a3-fridge-open-expert-v4 @fe89f5b3
90
+ "a7v4p": (P / "a7-cabinet-close-v4p-d3ec805/data", None, "g1"), # 2026-11-27 user: newest pause-trim (a29_trim_stationary 3 frames) data, all 7 baselines retrain: HF a7-cabinet-close-expert-v4 @d3ec8057
91
+ "b1v2p": (P / "b1-riceball-microwave-v2-30hz-p-276ceb9/data", None, "g1"), # 2026-11-27 user: newest pause-trim (a29_trim_stationary 3 frames) data, all 7 baselines retrain: HF b1-riceball-microwave-expert-v2-30hz @276ceb91
92
+ "a14cr5": (P / "a14-screw-bulb-cropped-v5-33beae7/data", None, "h2p"), # 2026-11-27 user: newest pause-trim (a29_trim_stationary 3 frames) data, all 7 baselines retrain: HF a14-screw-bulb @33beae7c, head + chest, + planner
93
+ "a17cr4": (P / "a17-unscrew-bottle-cropped-v4-f710531/data", None, "h2"), # 2026-11-27 user: newest pause-trim (a29_trim_stationary 3 frames) data, all 7 baselines retrain: HF a17-unscrew-bottle @f7105314, head + chest
94
+ "a18cr4": (P / "a18-pour-water-cropped-v4-73fd522/data", None, "h2"), # 2026-11-27 user: newest pause-trim (a29_trim_stationary 3 frames) data, all 7 baselines retrain: HF a18-pour-water @73fd5225, head + chest
95
  "a18cr2": (P / "a18-pour-water-cropped-v2-44cdd57/data", None, "h2"), # HF a18-pour-water-expert-cropped-v2 @44cdd57, head + chest (user 2026-11-22)
96
  "a17cr2": (P / "a17-unscrew-bottle-cropped-v2-3520b70/data", None, "h2"), # HF a17-unscrew-bottle-expert-cropped-v2 @3520b70, head + chest (user 2026-11-22) # HF a14-screw-bulb-expert-cropped-v3 @79fe08a (trimmed v2, + planner; user 2026-11-20)
97
  }