Upload code/1028_run/README.md with huggingface_hub
Browse files- 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) | ~
|
|
|
|
|
|
|
| 132 |
|
| 133 |
**Speedup sources:**
|
| 134 |
-
1. **batch_size 64→256**:
|
| 135 |
-
2. **
|
| 136 |
-
3. **
|
| 137 |
|
| 138 |
-
AMP is
|
| 139 |
|
| 140 |
### Collection speedup
|
| 141 |
|
| 142 |
| Setting | Total collect time (50 demos) |
|
| 143 |
|---------|-------------------------------|
|
| 144 |
-
| `1027_run`: 2x parallel (GPU 0+2) | ~5–8h
|
| 145 |
-
| `1028_run`: 4x parallel (GPU 0/1/2/3) | ~2.
|
|
|
|
|
|
|
| 146 |
|
| 147 |
-
~
|
| 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 |
|