Add versioned inference guide for wan_omni20k_robotwin_8000_inference.md
Browse files
inference_guides/20261108/wan_omni20k_robotwin_8000_inference.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Source revision: `2d2f136bdd8b552814375310ffdb8ee7c1d70661` ([GitHub document](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/wan_omni20k_robotwin_8000_inference.md)). Relative documentation links below are expanded for Hugging Face.
|
| 2 |
+
|
| 3 |
+
# Wan Omni20K to RoboTwin 8,000: download and joint inference
|
| 4 |
+
|
| 5 |
+
This is Wan2.2 TI2V-5B after the recorded Omni20K start and 8,000 RoboTwin
|
| 6 |
+
updates. It retains RGB, DINO, depth representation, camera, robot tracking video
|
| 7 |
+
and Runjia's action-image representation as an independent action-video stream.
|
| 8 |
+
It does not add a separate action expert. RGB/tracking use nine frames and the
|
| 9 |
+
action stream uses 33 frames, aligned at ratio4.
|
| 10 |
+
|
| 11 |
+
## Verified shared weights
|
| 12 |
+
|
| 13 |
+
Repository: `yslan/o-intermediate-model`.
|
| 14 |
+
Immutable remote commit: `1bb36500565d63aebce26bf5ece23dea45b5f150`.
|
| 15 |
+
|
| 16 |
+
```bash
|
| 17 |
+
MODEL_DIR=/scratch/shared/engs2907/shared_models/wan_omni20k_robotwin8000
|
| 18 |
+
HF_PREFIX=wan22_5b_omni20k_robotwin_all_modalities_tracking_action_image_update_008000_20261108/attempt01/update_008000
|
| 19 |
+
hf download yslan/o-intermediate-model \
|
| 20 |
+
--revision 1bb36500565d63aebce26bf5ece23dea45b5f150 \
|
| 21 |
+
--include "$HF_PREFIX/*" --local-dir "$MODEL_DIR"
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
Payload: `step_008000.safetensors`, **20,094,065,912 bytes**, SHA-256
|
| 25 |
+
`2f7a7768ceebe8e4c639e9f13dcb632e95cae259af4c5faa804047a0336483cb`.
|
| 26 |
+
853 FP32 trainable tensors. The remote LFS checksum and all 14 remote file sizes
|
| 27 |
+
were verified. Config, sidecar, dataset statistics, split/transfer lineage and
|
| 28 |
+
checksum manifests accompany the weights. No frozen pretrained base or optimizer
|
| 29 |
+
state is included. Verify a new download once on CPU compute resources.
|
| 30 |
+
|
| 31 |
+
Verification receipt:
|
| 32 |
+
`/scratch/shared/engs2907/logs/vgg_forecast_4d/tools/hf_checkpoint_backup/wan22_5b_omni20k_robotwin_all_modalities_action_image_update_008000_20261108/attempt01/backup_complete.json`.
|
| 33 |
+
|
| 34 |
+
The original Civo run is:
|
| 35 |
+
|
| 36 |
+
```text
|
| 37 |
+
/scratch/shared/engs2907/logs/vgg_forecast_4d/train/wan22_5b_omni20k_robotwin_all_modalities_tracking_action_image_8000_updates_two_h200_20261106/attempt01/run
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Training73194.323 completed8,000 with exit0. It is no longer training on those
|
| 41 |
+
H200s; the current H200 processes are separate evaluations. Current native-start
|
| 42 |
+
control training is another model and another run.
|
| 43 |
+
|
| 44 |
+
## Model and condition contract
|
| 45 |
+
|
| 46 |
+
- Recorded training batch: 4 per H200 ×2 GPUs ×8 accumulation = global64.
|
| 47 |
+
- Native Euler inference: 25 steps, shift6, CFG1 for the recorded joint path.
|
| 48 |
+
- Tracking-video joint probability0.5; the independent action stream is copied
|
| 49 |
+
from the stage-one tracking representation's initialization, not substituted
|
| 50 |
+
for tracking output.
|
| 51 |
+
- `joint` gives context RGB0/current-state anchors and generates future streams.
|
| 52 |
+
Future RGB/depth/camera/tracking/action labels are scorer-only in this mode.
|
| 53 |
+
- Conditional modes may intentionally give full depth/camera streams; those are
|
| 54 |
+
different input-budget rows, not joint forecasts.
|
| 55 |
+
- Weights-only continuation uses a fresh optimizer; no exact optimizer/RNG
|
| 56 |
+
restoration is claimed.
|
| 57 |
+
|
| 58 |
+
## Existing inference owner
|
| 59 |
+
|
| 60 |
+
Python environment:
|
| 61 |
+
`/scratch/shared/engs2907/envs/flexpi-py310/bin/python`.
|
| 62 |
+
Flex-pi revision: `20c1b2b71ea35a415d5d47c39b04443cfadad7a1`.
|
| 63 |
+
The project inference owner is
|
| 64 |
+
`reproduction/20261023_flexpi_robot_arm_track_video/generate_track_video_test.py`.
|
| 65 |
+
The current reviewed scorer/CLI revision is
|
| 66 |
+
`c0ff59cf45bbe8b2daf495db8920b9b01f633619`.
|
| 67 |
+
|
| 68 |
+
An earlier real one-window joint six-stream preview ran at2,000 using project
|
| 69 |
+
source `ac273c2ea7cee8d86a467f234573c2a2dca308c9`. Its complete environment,
|
| 70 |
+
native assets and source archives are preserved in:
|
| 71 |
+
|
| 72 |
+
```text
|
| 73 |
+
/scratch/shared/engs2907/logs/vgg_forecast_4d/tools/robotwin_action_image_joint_preview_20261107/gpu_attempt08/launch.sh
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
Do not run that wrapper unchanged for8K: it hardcodes2K and an old output/GPU
|
| 77 |
+
UUID. Reuse its explicit dependency paths, then use the current CLI with a new
|
| 78 |
+
output directory and the intended checkpoint.
|
| 79 |
+
|
| 80 |
+
## One-window 8K command template
|
| 81 |
+
|
| 82 |
+
This template uses the reviewed current CLI. A fresh8K **joint** GPU acceptance
|
| 83 |
+
with this exact CLI has not been verified here; existing8K action-only and
|
| 84 |
+
closed-loop execution are not the same acceptance. Run the bounded check before
|
| 85 |
+
claiming a portable one-command release.
|
| 86 |
+
|
| 87 |
+
Inside an authorized, UUID-bound GPU step with shared lock and the archived
|
| 88 |
+
working `PYTHONPATH`/native weight caches:
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
PY=/scratch/shared/engs2907/envs/flexpi-py310/bin/python
|
| 92 |
+
RUN_ROOT=/scratch/shared/engs2907/logs/vgg_forecast_4d
|
| 93 |
+
RUN="$RUN_ROOT/train/wan22_5b_omni20k_robotwin_all_modalities_tracking_action_image_8000_updates_two_h200_20261106/attempt01/run"
|
| 94 |
+
WEIGHTS="$RUN/checkpoints/adapters/step_008000.safetensors"
|
| 95 |
+
MANIFEST="$RUN_ROOT/eval/robotwin_table4_gpu_smoke_20261108/attempt01/robotwin_heldout_windows_300.json"
|
| 96 |
+
MANIFEST_SHA=f79f58712246df8b6322dd753bd17c7c2800346218e34a2254a7546bec0fc4f0
|
| 97 |
+
OUT="$RUN_ROOT/eval/shared_wan_robotwin8000_joint/attempt01"
|
| 98 |
+
|
| 99 |
+
"$PY" "$PROJECT/reproduction/20261023_flexpi_robot_arm_track_video/generate_track_video_test.py" \
|
| 100 |
+
"$RUN" 8000 "$OUT" --mode joint --weights "$WEIGHTS" \
|
| 101 |
+
--window-manifest "$MANIFEST" --window-manifest-sha256 "$MANIFEST_SHA" \
|
| 102 |
+
--arm shared_all_streams --limit 1 --no-lpips
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
`PROJECT` must be a separate checkout of the declared current CLI revision,
|
| 106 |
+
not an active training checkout. `MANIFEST_SHA` is the canonical window-content
|
| 107 |
+
digest expected by `robotwin_window_manifest.py`, not a guessed file-byte hash.
|
| 108 |
+
The sidecar adjacent to the weights is required for strict853-tensor overlay
|
| 109 |
+
loading. Keep checkpoints and sidecars together after download.
|
| 110 |
+
|
| 111 |
+
On a fresh machine, rebase a **copy** of the run configuration to local native
|
| 112 |
+
Wan/VAE/DINO, RoboTwin records, statistics, split, URDF and calibration paths.
|
| 113 |
+
The strict native builder may also need the recorded initialization assets;
|
| 114 |
+
the trainable safetensors file is not a standalone Diffusers pipeline. Do not
|
| 115 |
+
overwrite the archived resolved configuration or silently substitute statistics.
|
| 116 |
+
|
| 117 |
+
## Evaluation and visualization
|
| 118 |
+
|
| 119 |
+
Use the same four fixed held-out windows for comparison with Nano RoboTwin.
|
| 120 |
+
Export RGB/tracking/action per stream as input frame0 (green), generated,
|
| 121 |
+
ground truth; keep DINO/depth/camera in a separate strip with banana depth.
|
| 122 |
+
Keep the old previews and write each re-export to a new attempt.
|
| 123 |
+
|
| 124 |
+
GBiH open-loop evaluation uses the same294-window manifest and four samples
|
| 125 |
+
seed42–45, native statistics/calibration, and tool-position error at action
|
| 126 |
+
instants4,8,…32. A single seed42 preview is not the four-sample GBiH score.
|
| 127 |
+
The separate300-window Table4 evaluator is not that294-window benchmark.
|
| 128 |
+
|
| 129 |
+
Use explicit framewise PSNR fields from `c0ff59cf4`; historical bare PSNR fields
|
| 130 |
+
are pooled diagnostics. If LPIPS is unavailable, report it unavailable rather
|
| 131 |
+
than a fabricated zero. If the current joint scorer rejects an unscored
|
| 132 |
+
generated stream, preserve outputs/failure and fix the project scorer; do not
|
| 133 |
+
convert the failure to a successful metric row.
|
| 134 |
+
|
| 135 |
+
The old173/250 versus121/250 closed-loop pair changes architecture, starting
|
| 136 |
+
weights and data. It is not a causal native-start versus Omni-start comparison.
|
| 137 |
+
See [Zihang's evaluation handoff](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/zihang_robotwin_evaluation_handoff_20261108.md)
|
| 138 |
+
and [current readiness](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/baseline_readiness_20261108.md).
|