Update latest Multi-WAM reproduction skill
Browse files- skills/multi-wam-joint-reproduce/SKILL.md +46 -0
- skills/multi-wam-joint-reproduce/references/layout.md +11 -0
- skills/multi-wam-joint-reproduce/scripts/download_dataset.sh +27 -0
- skills/multi-wam-joint-reproduce/scripts/download_release.sh +19 -0
- skills/multi-wam-joint-reproduce/scripts/relocate_checkpoint_identity.py +56 -0
- skills/multi-wam-joint-reproduce/scripts/restore_release.sh +45 -0
- skills/multi-wam-joint-reproduce/scripts/verify_release.sh +43 -0
- skills/multi-wam-joint-train/SKILL.md +3 -61
skills/multi-wam-joint-reproduce/SKILL.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: multi-wam-joint-reproduce
|
| 3 |
+
description: Restore, verify, resume and evaluate the Multi-WAM joint World+Action step-12531 release from Orangerl/multi-wam on a new GPU machine or cluster. Use for this release's code, frozen assets, RoboTwin data, environments, checkpoint, eval evidence and reproducibility checks.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Multi-WAM joint release (2026-10-10)
|
| 7 |
+
|
| 8 |
+
Read [layout.md](references/layout.md) and `release-20261010/RELEASE_MANIFEST.json` first. This skill supersedes the earlier `multi-wam-joint-train` protocol for the step-12531 run; older release files remain historical.
|
| 9 |
+
|
| 10 |
+
## Download directly, pinned
|
| 11 |
+
|
| 12 |
+
Clear proxy variables for **every** Hub operation. Use `snapshot-20261010-joint12531` after checking the tag exists; otherwise pin the final commit SHA from the release report. The helper below downloads the current release plus only four reused older assets, not the old 307 GiB predicted-future cache:
|
| 13 |
+
|
| 14 |
+
```bash
|
| 15 |
+
unset http_proxy https_proxy all_proxy ftp_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY FTP_PROXY
|
| 16 |
+
export NO_PROXY='*' no_proxy='*' HF_XET_HIGH_PERFORMANCE=1
|
| 17 |
+
bash skills/multi-wam-joint-reproduce/scripts/download_release.sh "$PWD"
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
Do not put HF or SwanLab credentials in the restored workspace archive. The RoboTwin dataset is external and is downloaded separately by `download_dataset.sh` at the pinned dataset revision.
|
| 21 |
+
|
| 22 |
+
## Restore and verify
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
bash skills/multi-wam-joint-reproduce/scripts/restore_release.sh "$PWD" /path/to/empty/workspace
|
| 26 |
+
bash skills/multi-wam-joint-reproduce/scripts/verify_release.sh /path/to/workspace
|
| 27 |
+
bash skills/multi-wam-joint-reproduce/scripts/download_dataset.sh /path/to/workspace
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
`restore_release.sh` installs two packed conda environments under the destination workspace, restores exact source, eval code, complete FSDP checkpoint/deploy model, the old frozen/source checkpoints, split manifests and statistics. It records but does not silently alter checkpoint identity. On a relocated workspace, run the narrow `relocate_checkpoint_identity.py` helper once; it changes **only** the checkpoint's recorded Qwen path and recomputes the identity digest after checking all other fields. Preserve the untouched published archive for audit.
|
| 31 |
+
|
| 32 |
+
The official RoboTwin simulator additionally requires matching NVIDIA driver/Vulkan graphics userspace and XPolicyLab/cuRobo. The packed eval environment is not a substitute for a working kernel driver. Run the source `scripts/preflight_robotwin_closed_loop.sh` before any closed-loop claim.
|
| 33 |
+
|
| 34 |
+
## Training contract and resume
|
| 35 |
+
|
| 36 |
+
Use the exact training source archived here: task/domain-balanced episodes and legal expert-trajectory anchors, three views `left/global/right`, original 30 Hz video sampled at 20 Hz, 10 Hz codec latents, 10 context + 10 future latent steps and 20 action targets. Train both World and Action; freeze Qwen3-VL-2B and the LingBot codec. Objective: `World FM 1.0 + Action FM 1.0`; latent and pixel auxiliary losses are **0**. There is no decoded RGB loss in this run. One step includes a differentiable 10-step World rollout. Do not use old H1/H3/H6/H10 equal-weight or RGB-loss instructions from the September skill.
|
| 37 |
+
|
| 38 |
+
For an exact continuation, retain world size **24** (3 nodes × 8 H200), per-device batch **5**, accumulation **1**, shard group **8**, target steps **55000**, World LR **1e-5**, Action LR **3e-5**, warmup **500**, and source paths/metadata. Do not change `--steps` or batch in-place: both are part of checkpoint identity and changing the former also changes the LR schedule. The 0→2449 portion used batch 3; the published checkpoint is already migrated to batch 5. The full checkpoint includes model, optimizer, scheduler, sampler and RNG states.
|
| 39 |
+
|
| 40 |
+
For new cluster addresses and SSH keys, set `JOINT24_MASTER_SSH`, `JOINT24_SLAVE_SSH`, `JOINT24_MASTER_SSH_KEY`, `JOINT24_SLAVE_SSH_KEY`, `TORCHRUN_MASTER_ADDR` and adapt the node preflight (RoCE interface/GID). The historical `scripts/launch_joint_anchor_v2_24gpu_cluster.sh` hardcodes this source cluster topology; do not run it unchanged elsewhere. To resume use `mira/scripts/launch_joint_world_action.sh` with the checkpoint output directory, the above exact arguments and `MIRA_PYTHON=<workspace>/conda/envs/mira/bin/python`. Add local SwanLab token at `<workspace>/z_oranger/token.txt` and ensure direct network. Confirm a logged optimizer step and 24 live ranks; GPU allocation alone is not proof of training.
|
| 41 |
+
|
| 42 |
+
## Evaluation and interpretation
|
| 43 |
+
|
| 44 |
+
The released deploy weights are the exact evaluated step-12531 model. Reproduce with the pinned simulator source and `mira/scripts/maintenance/run_joint_robotwin_formal.py`, 50 RoboTwin tasks × 2 conditions × 100 trials; use `--resume` only after checking saved episode identities. This release's actual run used clean=`seen`, randomized=`unseen`, and only **96/100 task-condition groups** completed. The observed 4437/9600 = 46.22% is incomplete and must not be advertised as full paper C2C/C2R: training also mixed clean and randomized data. Read `PROGRESS_20261010.md` and eval evidence for task-level results, failures, seeds and videos.
|
| 45 |
+
|
| 46 |
+
Never overwrite earlier releases, change a hash-bound source file and call it an exact resume, or treat missing eval groups as failures or successes.
|
skills/multi-wam-joint-reproduce/references/layout.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Release layout and dependencies
|
| 2 |
+
|
| 3 |
+
`release-20261010/archives/` holds the exact current source, pinned RoboTwin eval source, full joint checkpoint, deploy weights, two packed conda environments, eval telemetry and eval videos. `release-20261010/metadata/` holds the joint split manifests, train-only state/action normalization and run metrics. `release-20261010/SHA256SUMS` audits every current file.
|
| 4 |
+
|
| 5 |
+
Four assets are reused from the immutable `snapshot-20260902-full` tag: `archives/codec-checkpoint-step125000.tar.zst`, `archives/qwen3-vl-2b-instruct.tar.zst`, and the two `release-20260902/workspace/outputs/...` source checkpoint directories (World-v12 step 25066 and Action-v13 step 23016). These are required for exact initialization and trainer identity checks. Do not download the old derived caches; joint training computes frozen features online.
|
| 6 |
+
|
| 7 |
+
The restored workspace has `mira/`, `lingbot-vision/`, `scripts/`, `docs/`, `transfer/robotwin-official-20260921/`, `outputs/joint_anchor_v2_24gpu_long_20260930/{joint-checkpoint-12531,deploy-12531}`, `outputs/mira_robotwin_codec/checkpoint-125000/`, `models/Qwen3-VL-2B-Instruct/`, `datasets/RoboTwin2.0/mira_manifests/joint_anchor_v2/`, and `conda/envs/{mira,robotwin-eval}/`.
|
| 8 |
+
|
| 9 |
+
Data source: `TianxingChen/RoboTwin2.0` revision `9dc9299c163db059931898a9f0852098a61155a1`; training needs the 100 `dataset/*/aloha-agilex_{clean_50,randomized_500}.zip` files. Evaluation additionally needs `background_texture.zip`, `embodiments.zip`, `objects.zip` at the same revision, extracted into the pinned RoboTwin source's `assets/`. Dataset archives are **not** included in this model repository.
|
| 10 |
+
|
| 11 |
+
The existing checkpoint records the old absolute Qwen path as an experiment-identity field. `relocate_checkpoint_identity.py` can update only that path in a **restored copy** of `trainer_state.json`; the original archive remains byte-for-byte immutable. The source implementation hashes, source checkpoint fingerprints, manifest hashes, stats hashes, batch, steps and world size must remain unchanged for an exact optimizer-state resume.
|
skills/multi-wam-joint-reproduce/scripts/download_dataset.sh
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
WORKSPACE="$(cd "${1:?usage: download_dataset.sh WORKSPACE}" && pwd)"
|
| 5 |
+
DATASET="$WORKSPACE/datasets/RoboTwin2.0"
|
| 6 |
+
ASSETS="$WORKSPACE/transfer/robotwin-official-20260921/assets"
|
| 7 |
+
REVISION=9dc9299c163db059931898a9f0852098a61155a1
|
| 8 |
+
mkdir -p "$DATASET" "$ASSETS"
|
| 9 |
+
unset http_proxy https_proxy all_proxy ftp_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY FTP_PROXY
|
| 10 |
+
export NO_PROXY='*' no_proxy='*' HF_XET_HIGH_PERFORMANCE=1
|
| 11 |
+
|
| 12 |
+
hf download TianxingChen/RoboTwin2.0 --repo-type dataset --revision "$REVISION" \
|
| 13 |
+
--include 'dataset/*/aloha-agilex_clean_50.zip' 'dataset/*/aloha-agilex_randomized_500.zip' \
|
| 14 |
+
--local-dir "$DATASET"
|
| 15 |
+
hf download TianxingChen/RoboTwin2.0 --repo-type dataset --revision "$REVISION" \
|
| 16 |
+
--include 'background_texture.zip' 'embodiments.zip' 'objects.zip' \
|
| 17 |
+
--local-dir "$ASSETS"
|
| 18 |
+
|
| 19 |
+
count="$(find "$DATASET/dataset" -mindepth 2 -maxdepth 2 -name 'aloha-agilex_*.zip' | wc -l)"
|
| 20 |
+
[[ "$count" -eq 100 ]] || { echo "Expected 100 ALOHA task/domain archives, found $count" >&2; exit 2; }
|
| 21 |
+
for name in background_texture embodiments objects; do
|
| 22 |
+
[[ -s "$ASSETS/$name.zip" ]] || exit 2
|
| 23 |
+
if [[ ! -d "$ASSETS/$name" ]]; then
|
| 24 |
+
unzip -q "$ASSETS/$name.zip" -d "$ASSETS"
|
| 25 |
+
fi
|
| 26 |
+
done
|
| 27 |
+
echo "Pinned RoboTwin training data and simulator assets ready ($count zip files)."
|
skills/multi-wam-joint-reproduce/scripts/download_release.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
DEST="${1:?usage: download_release.sh DOWNLOAD_DIR}"
|
| 5 |
+
mkdir -p "$DEST"
|
| 6 |
+
unset http_proxy https_proxy all_proxy ftp_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY FTP_PROXY
|
| 7 |
+
export NO_PROXY='*' no_proxy='*' HF_XET_HIGH_PERFORMANCE=1
|
| 8 |
+
REVISION="${MULTIWAM_REVISION:-snapshot-20261010-joint12531}"
|
| 9 |
+
|
| 10 |
+
hf download Orangerl/multi-wam --revision "$REVISION" \
|
| 11 |
+
--include 'README.md' 'PROGRESS_20261010.md' 'skills/multi-wam-joint-reproduce/**' \
|
| 12 |
+
'skills/multi-wam-joint-train/SKILL.md' 'release-20261010/**' \
|
| 13 |
+
'archives/codec-checkpoint-step125000.tar.zst' \
|
| 14 |
+
'archives/qwen3-vl-2b-instruct.tar.zst' \
|
| 15 |
+
'release-20260902/workspace/outputs/robotwin_bihub_world_v12_largebatch_remaining/main-checkpoint-25066/**' \
|
| 16 |
+
'release-20260902/workspace/outputs/robotwin_bihub_wam_v13_action_eval_aligned_continue4epoch/action-checkpoint-23016/**' \
|
| 17 |
+
--local-dir "$DEST"
|
| 18 |
+
|
| 19 |
+
echo "Downloaded pinned Multi-WAM release $REVISION to $DEST"
|
skills/multi-wam-joint-reproduce/scripts/relocate_checkpoint_identity.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Relocate only the Qwen path in a *restored copy* of the full checkpoint.
|
| 3 |
+
|
| 4 |
+
The original published trainer_state.json must remain immutable for audit. This
|
| 5 |
+
helper refuses any unexpected input identity or changed source/data hashes.
|
| 6 |
+
"""
|
| 7 |
+
import hashlib
|
| 8 |
+
import json
|
| 9 |
+
import pathlib
|
| 10 |
+
import sys
|
| 11 |
+
|
| 12 |
+
ORIGINAL_IDENTITY = "ed0821370e634911d01e3ce1b533234de313d39a5ed7545c23124d2f6bc78b91"
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def digest(value):
|
| 16 |
+
payload = json.dumps(value, sort_keys=True, separators=(",", ":"), ensure_ascii=False).encode()
|
| 17 |
+
return hashlib.sha256(payload).hexdigest()
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def main(workspace):
|
| 21 |
+
workspace = workspace.resolve()
|
| 22 |
+
path = workspace / "outputs/joint_anchor_v2_24gpu_long_20260930/joint-checkpoint-12531/trainer_state.json"
|
| 23 |
+
state = json.loads(path.read_text())
|
| 24 |
+
identity = state["artifact_identity"]
|
| 25 |
+
if state["artifact_identity_sha256"] != ORIGINAL_IDENTITY:
|
| 26 |
+
raise SystemExit("Refusing: source checkpoint identity is not the published original")
|
| 27 |
+
if digest(identity) != ORIGINAL_IDENTITY:
|
| 28 |
+
raise SystemExit("Refusing: source metadata failed its own checksum")
|
| 29 |
+
qwen = workspace / "models/Qwen3-VL-2B-Instruct"
|
| 30 |
+
expected_config = identity["qwen_config_sha256"]
|
| 31 |
+
if hashlib.sha256((qwen / "config.json").read_bytes()).hexdigest() != expected_config:
|
| 32 |
+
raise SystemExit("Refusing: Qwen config changed")
|
| 33 |
+
for name, expected in identity["implementation_sha256"].items():
|
| 34 |
+
if hashlib.sha256((workspace / "mira" / name).read_bytes()).hexdigest() != expected:
|
| 35 |
+
raise SystemExit(f"Refusing: implementation changed: {name}")
|
| 36 |
+
identity["qwen_root"] = str(qwen)
|
| 37 |
+
old_sha = identity.pop("sha256")
|
| 38 |
+
# The nested SHA covers all other identity fields, not itself.
|
| 39 |
+
identity["sha256"] = digest(identity)
|
| 40 |
+
state["artifact_identity_sha256"] = digest(identity)
|
| 41 |
+
state["relocation_audit"] = {
|
| 42 |
+
"source_artifact_identity_sha256": ORIGINAL_IDENTITY,
|
| 43 |
+
"source_nested_sha256": old_sha,
|
| 44 |
+
"changed_field": "artifact_identity.qwen_root",
|
| 45 |
+
"purpose": "destination-local path relocation; no tensor/state change",
|
| 46 |
+
}
|
| 47 |
+
temp = path.with_suffix(".json.relocating")
|
| 48 |
+
temp.write_text(json.dumps(state, indent=2, ensure_ascii=False) + "\n")
|
| 49 |
+
temp.replace(path)
|
| 50 |
+
print("Relocated Qwen path in restored checkpoint metadata only:", qwen)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
if __name__ == "__main__":
|
| 54 |
+
if len(sys.argv) != 2:
|
| 55 |
+
raise SystemExit("usage: relocate_checkpoint_identity.py WORKSPACE")
|
| 56 |
+
main(pathlib.Path(sys.argv[1]))
|
skills/multi-wam-joint-reproduce/scripts/restore_release.sh
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
if [[ $# -ne 2 ]]; then
|
| 5 |
+
echo "usage: restore_release.sh DOWNLOAD_DIR EMPTY_WORKSPACE" >&2
|
| 6 |
+
exit 2
|
| 7 |
+
fi
|
| 8 |
+
BUNDLE="$(cd "$1" && pwd)"
|
| 9 |
+
WORKSPACE="$2"
|
| 10 |
+
mkdir -p "$WORKSPACE"
|
| 11 |
+
WORKSPACE="$(cd "$WORKSPACE" && pwd)"
|
| 12 |
+
if [[ -n "$(ls -A "$WORKSPACE")" ]]; then
|
| 13 |
+
echo "Destination is not empty; refusing to overwrite: $WORKSPACE" >&2
|
| 14 |
+
exit 2
|
| 15 |
+
fi
|
| 16 |
+
RELEASE="$BUNDLE/release-20261010"
|
| 17 |
+
ARCHIVES="$RELEASE/archives"
|
| 18 |
+
|
| 19 |
+
(cd "$BUNDLE" && sha256sum -c release-20261010/SHA256SUMS)
|
| 20 |
+
for name in source-code-joint12531 robotwin-eval-code-pinned joint-checkpoint-12531 joint-deploy-12531; do
|
| 21 |
+
tar --zstd -xf "$ARCHIVES/$name.tar.zst" -C "$WORKSPACE"
|
| 22 |
+
done
|
| 23 |
+
cp -a "$RELEASE/metadata/." "$WORKSPACE/"
|
| 24 |
+
|
| 25 |
+
for name in codec-checkpoint-step125000 qwen3-vl-2b-instruct; do
|
| 26 |
+
tar --zstd -xf "$BUNDLE/archives/$name.tar.zst" -C "$WORKSPACE"
|
| 27 |
+
done
|
| 28 |
+
for path in \
|
| 29 |
+
outputs/robotwin_bihub_world_v12_largebatch_remaining/main-checkpoint-25066 \
|
| 30 |
+
outputs/robotwin_bihub_wam_v13_action_eval_aligned_continue4epoch/action-checkpoint-23016; do
|
| 31 |
+
mkdir -p "$(dirname "$WORKSPACE/$path")"
|
| 32 |
+
cp -a "$BUNDLE/release-20260902/workspace/$path" "$WORKSPACE/$path"
|
| 33 |
+
done
|
| 34 |
+
|
| 35 |
+
for name in mira robotwin-eval; do
|
| 36 |
+
target="$WORKSPACE/conda/envs/$name"
|
| 37 |
+
mkdir -p "$target"
|
| 38 |
+
tar --zstd -xf "$ARCHIVES/$name-conda-env.tar.zst" -C "$target"
|
| 39 |
+
"$target/bin/conda-unpack"
|
| 40 |
+
done
|
| 41 |
+
"$WORKSPACE/conda/envs/mira/bin/python" -m pip install --no-deps --no-build-isolation \
|
| 42 |
+
-e "$WORKSPACE/lingbot-vision" -e "$WORKSPACE/mira"
|
| 43 |
+
|
| 44 |
+
echo "Restored release at $WORKSPACE. Run verify_release.sh, then download_dataset.sh."
|
| 45 |
+
echo "For a relocated exact resume, run relocate_checkpoint_identity.py after verification."
|
skills/multi-wam-joint-reproduce/scripts/verify_release.sh
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
WORKSPACE="$(cd "${1:?usage: verify_release.sh WORKSPACE}" && pwd)"
|
| 5 |
+
PYTHON="$WORKSPACE/conda/envs/mira/bin/python"
|
| 6 |
+
[[ -x "$PYTHON" ]] || { echo "Missing packed mira environment" >&2; exit 2; }
|
| 7 |
+
"$PYTHON" - "$WORKSPACE" <<'PY'
|
| 8 |
+
import hashlib
|
| 9 |
+
import json
|
| 10 |
+
import pathlib
|
| 11 |
+
import sys
|
| 12 |
+
|
| 13 |
+
w = pathlib.Path(sys.argv[1])
|
| 14 |
+
ckpt = w / "outputs/joint_anchor_v2_24gpu_long_20260930/joint-checkpoint-12531"
|
| 15 |
+
meta = json.loads((ckpt / "trainer_state.json").read_text())
|
| 16 |
+
assert meta["completed_steps"] == 12531
|
| 17 |
+
assert meta["artifact_identity"]["world_size"] == 24
|
| 18 |
+
assert meta["artifact_identity"]["optimization"]["per_device_batch"] == 5
|
| 19 |
+
assert meta["artifact_identity"]["loss_weights"] == {"world_flow": 1.0, "latent": 0.0, "pixel": 0.0, "action": 1.0}
|
| 20 |
+
hash_file = lambda p: hashlib.sha256(p.read_bytes()).hexdigest()
|
| 21 |
+
for name, expected in meta["artifact_identity"]["implementation_sha256"].items():
|
| 22 |
+
actual = hash_file(w / "mira" / name)
|
| 23 |
+
assert actual == expected, f"source hash mismatch: {name}: {actual}"
|
| 24 |
+
for name, expected in [
|
| 25 |
+
("train.jsonl", meta["artifact_identity"]["dataset_manifest_sha256"]),
|
| 26 |
+
("val.jsonl", meta["artifact_identity"]["validation_manifest_sha256"]),
|
| 27 |
+
]:
|
| 28 |
+
actual = hash_file(w / "datasets/RoboTwin2.0/mira_manifests/joint_anchor_v2" / name)
|
| 29 |
+
assert actual == expected, f"manifest hash mismatch: {name}"
|
| 30 |
+
assert hash_file(w / "datasets/RoboTwin2.0/mira_wam_aloha/dataset_stats.json") == meta["artifact_identity"]["dataset_stats_sha256"]
|
| 31 |
+
assert hash_file(w / "outputs/mira_robotwin_codec/checkpoint-125000/checkpoint.pth") == meta["artifact_identity"]["codec_checkpoint_sha256"]
|
| 32 |
+
assert hash_file(w / "models/Qwen3-VL-2B-Instruct/config.json") == meta["artifact_identity"]["qwen_config_sha256"]
|
| 33 |
+
for i in range(24):
|
| 34 |
+
assert (ckpt / f"rank-{i:05d}.pth").is_file(), f"missing rank state {i}"
|
| 35 |
+
assert (ckpt / "distributed/.metadata").is_file()
|
| 36 |
+
assert len(list((ckpt / "distributed").glob("*.distcp"))) == 24
|
| 37 |
+
assert (w / "outputs/joint_anchor_v2_24gpu_long_20260930/deploy-12531/deployment.json").is_file()
|
| 38 |
+
assert (w / "transfer/robotwin-official-20260921/scripts/eval_policy_xpolicylab.py").is_file()
|
| 39 |
+
print("Release integrity OK: exact source, manifests, codec/Qwen, 24-rank full state and deploy weights")
|
| 40 |
+
PY
|
| 41 |
+
|
| 42 |
+
"$PYTHON" -c 'import torch, mira, swanlab; print("training imports OK", torch.__version__)'
|
| 43 |
+
"$WORKSPACE/conda/envs/robotwin-eval/bin/python" -c 'import sapien; print("eval import OK")'
|
skills/multi-wam-joint-train/SKILL.md
CHANGED
|
@@ -1,66 +1,8 @@
|
|
| 1 |
---
|
| 2 |
name: multi-wam-joint-train
|
| 3 |
-
description:
|
| 4 |
---
|
| 5 |
|
| 6 |
-
# Multi-WAM
|
| 7 |
|
| 8 |
-
|
| 9 |
-
use `source/mira/`; its launcher extracts only the frozen Qwen and codec assets. Read
|
| 10 |
-
[references/h200_runbook.md](references/h200_runbook.md) before launching on H200s, changing batch
|
| 11 |
-
size or rollout steps, diagnosing throughput/OOM, or resuming a formal run.
|
| 12 |
-
|
| 13 |
-
## Required training contract
|
| 14 |
-
|
| 15 |
-
- Initialize World from online World-v12 step 25,066 and Action from Action-v13 step 23,016.
|
| 16 |
-
- Train all effective World and Action parameters with a fresh optimizer. Qwen and the entire codec
|
| 17 |
-
remain frozen. The Action path shares the live trainable World state encoder rather than keeping
|
| 18 |
-
its duplicate frozen state encoder.
|
| 19 |
-
- Read RGB, state and action directly from original RoboTwin zip/HDF5 episodes. Never build or use
|
| 20 |
-
codec-latent, Qwen-hidden, predicted-future, or Action caches for this workflow. Lightweight
|
| 21 |
-
split manifests and train-only state statistics are required and are not model caches.
|
| 22 |
-
- Preserve view order `left/global/right`, arms `left/right`, latent shape `[32,9,12]`, 20 Hz RGB
|
| 23 |
-
and action, 10 Hz latent, 10 context latents, 10 future latents, and 20 absolute-qpos targets.
|
| 24 |
-
- Sample H1/H3/H6 only at episode start, H10 at every legal start, with equal history weighting.
|
| 25 |
-
- Do not detach the World prediction before either downstream branch. Action loss must update both
|
| 26 |
-
Action and World. Frozen decoder parameters must still allow RGB-loss gradients into World.
|
| 27 |
-
- Decode `context + predicted future` together because the codec decoder is causal, then supervise
|
| 28 |
-
only the 20 future RGB frames.
|
| 29 |
-
|
| 30 |
-
The fixed default objective is:
|
| 31 |
-
|
| 32 |
-
```text
|
| 33 |
-
L = 1.0 L_world_flow + 1.0 L_future_latent
|
| 34 |
-
+ 0.1 L_future_RGB_Charbonnier + 1.0 L_action_flow
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
Treat loss weights, differentiable rollout steps, source checkpoints, manifest hashes and frozen
|
| 38 |
-
model identities as experiment identity. Never change them inside an existing output directory.
|
| 39 |
-
|
| 40 |
-
## Normal launch
|
| 41 |
-
|
| 42 |
-
With the full snapshot and environment restored, the only required user input is the dataset root:
|
| 43 |
-
|
| 44 |
-
```bash
|
| 45 |
-
cd /path/to/workspace/mira
|
| 46 |
-
bash scripts/launch_joint_world_action.sh /path/to/RoboTwin2.0
|
| 47 |
-
```
|
| 48 |
-
|
| 49 |
-
The dataset root must contain `dataset/*/*.zip`. The launcher builds missing manifests/statistics,
|
| 50 |
-
discovers released assets, uses all visible GPUs, enables the 8xH200 profile when eight GPUs are
|
| 51 |
-
visible, and resumes the latest identity-compatible `joint-checkpoint-*` automatically.
|
| 52 |
-
|
| 53 |
-
Before reporting that training has started, confirm all eight ranks passed model loading and at
|
| 54 |
-
least one optimizer step was logged. Do not call a dot-prefixed temporary checkpoint complete.
|
| 55 |
-
|
| 56 |
-
## Files to inspect when changing or diagnosing the workflow
|
| 57 |
-
|
| 58 |
-
- `mira/scripts/launch_joint_world_action.sh`: asset discovery and hardware profile.
|
| 59 |
-
- `mira/scripts/train_joint_world_action.py`: FSDP2, frozen online feature extraction, losses,
|
| 60 |
-
metrics, checkpoint/resume.
|
| 61 |
-
- `mira/src/mira/joint/model.py`: differentiable World rollout and World-to-Action coupling.
|
| 62 |
-
- `mira/src/mira/data/joint_online.py`: raw episode alignment and balanced sampling.
|
| 63 |
-
- `mira/docs/joint_world_action_online.md`: concise architecture rationale.
|
| 64 |
-
|
| 65 |
-
Preserve unrelated download-in-progress files and existing release checkpoint shards. This skill
|
| 66 |
-
does not authorize uploading checkpoints, starting paid remote compute, or deleting prior runs.
|
|
|
|
| 1 |
---
|
| 2 |
name: multi-wam-joint-train
|
| 3 |
+
description: Route Multi-WAM joint training to the correct dated protocol and avoid applying the obsolete September objective or sampler to the October step-12531 release.
|
| 4 |
---
|
| 5 |
|
| 6 |
+
# Multi-WAM joint training routing
|
| 7 |
|
| 8 |
+
For the latest step-12531 World+Action release, read [multi-wam-joint-reproduce](../multi-wam-joint-reproduce/SKILL.md) and its `references/layout.md` before any restore, resume or eval. The 2026-09-02 joint-training guidance is historical and **not** the objective used by this checkpoint. Specifically, this run uses all legal expert-trajectory anchors, `World FM + Action FM` weights `1 + 1`, latent/pixel auxiliary weights `0 + 0`, and a differentiable 10-step World rollout. Check the released `trainer_state.json` rather than extrapolating from an older plan.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|