yqi19 commited on
Commit
5bb8179
·
verified ·
1 Parent(s): eeb0e1c

Upload code/1028_run/README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. code/1028_run/README.md +15 -11
code/1028_run/README.md CHANGED
@@ -125,26 +125,30 @@ Merges episode npz + videos, renumbers indices, writes `collect_meta.json`.
125
 
126
  ### Speed comparison
127
 
128
- | Setting | it/s | Time for 130 epochs |
129
- |---------|------|---------------------|
130
- | `1027_run`: batch=64, workers=4, FP32 | ~1.1 | ~10h |
131
- | `1028_run`: batch=256, workers=16, AMP (FP16) | ~3–4 (est.) | ~2.5–3h |
 
 
132
 
133
  **Speedup sources:**
134
- 1. **batch_size 64→256**: more GPU utilization per step (4×)
135
- 2. **num_workers 4→16**: parallel zarr.zip loading (4×, capped by I/O)
136
- 3. **AMP mixed precision**: FP16 forward/backward, ~1.5–2× on L40s tensor cores
137
 
138
- AMP is implemented in `train_equi_workspace.py` via `torch.cuda.amp.GradScaler` + `autocast`. Disable with `training.use_amp=False`.
139
 
140
  ### Collection speedup
141
 
142
  | Setting | Total collect time (50 demos) |
143
  |---------|-------------------------------|
144
- | `1027_run`: 2x parallel (GPU 0+2) | ~5–8h (with GPU crash risk) |
145
- | `1028_run`: 4x parallel (GPU 0/1/2/3) | ~2.5–4h (est.) |
 
 
146
 
147
- ~300s per demo × 50 demos / 4 GPUs = ~62 min minimum. With Isaac Sim init overhead ~4h total.
148
 
149
  ---
150
 
 
125
 
126
  ### Speed comparison
127
 
128
+ | Setting | it/s | Batches/epoch | Time for 130 epochs |
129
+ |---------|------|---------------|---------------------|
130
+ | `1027_run`: batch=64, workers=4, FP32 | ~1.1 | 324 | ~10h |
131
+ | `1028_run`: batch=256, workers=16, AMP (FP16) | ~2.5 | 39 | **~78 min** |
132
+
133
+ **Measured speedup: 7.7× on training** (tested on battery_v1, L40s GPU).
134
 
135
  **Speedup sources:**
136
+ 1. **batch_size 64→256**: 4× fewer batches per epoch
137
+ 2. **AMP mixed precision** (`+training.use_amp=True`): FP16 forward/backward via `torch.cuda.amp.GradScaler` + `autocast`, ~2× throughput on L40s tensor cores
138
+ 3. **num_workers 4→16**: parallel zarr.zip cache loading
139
 
140
+ AMP is patched into `train_equi_workspace.py`. Disable with `+training.use_amp=False`.
141
 
142
  ### Collection speedup
143
 
144
  | Setting | Total collect time (50 demos) |
145
  |---------|-------------------------------|
146
+ | `1027_run`: 2x parallel (GPU 0+2) | ~5–8h |
147
+ | `1028_run`: 4x parallel (GPU 0/1/2/3) | **~2.5h** |
148
+
149
+ **Measured: battery_v1 50 demos in 2h 26min** (4x parallel, 15+15+15+20 shards).
150
 
151
+ ~270s per demo × 50 demos / 4 GPUs = ~56 min minimum. With Isaac Sim init overhead (~3 min/proc × 4 staggered) total ~2.5h.
152
 
153
  ---
154