Release original E5+C3 training and evaluation source, configs, results and loss curves
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- DEPENDENCIES.json +23 -0
- EVALUATION.md +82 -0
- HARDWARE.md +19 -0
- README.md +39 -0
- RESULTS.json +1237 -0
- SOURCE_MANIFEST.json +1410 -0
- TRAINING.md +62 -0
- configs/augmentation/c3_v1.json +62 -0
- configs/ep2_training.yaml +280 -0
- configs/ep6_training.yaml +280 -0
- configs/evaluation/ep2.json +44 -0
- configs/evaluation/ep6.json +44 -0
- configs/evaluation/subset_binding.json +20 -0
- configs/phase4_robot_configs/robotwin.yaml +46 -0
- deployment/finetune/e5_8gpu_rank_entry.py +33 -0
- deployment/finetune/e5_rank_entry.py +33 -0
- loss/ep2.csv +0 -0
- loss/ep6.csv +0 -0
- loss/original_training.svg +0 -0
- loss/summary.json +20 -0
- manifests/e5_allclean_train.txt +100 -0
- manifests/norm_stats/robotwin_clean_train_s7.json +301 -0
- scripts/e5_rollout_history.py +134 -0
- scripts/eval_common.py +135 -0
- scripts/eval_device.py +36 -0
- scripts/eval_diagnostics.py +71 -0
- scripts/eval_model_registry.py +66 -0
- scripts/eval_official_worker.py +378 -0
- scripts/eval_planner_optimization.py +223 -0
- scripts/frozen_eval_subset.py +198 -0
- scripts/hybrid_capacity_telemetry.py +176 -0
- scripts/hybrid_concurrent_server.py +341 -0
- scripts/hybrid_transport.py +378 -0
- scripts/hybrid_worker.py +244 -0
- scripts/release_eval.py +65 -0
- scripts/serve_eval_policy.py +165 -0
- scripts/serve_hybrid_concurrent_policy.py +42 -0
- src/lora_eval_loading.py +71 -0
- src/lora_eval_policy.py +95 -0
- src/phase4_policy.py +189 -0
- third_party/lingbot-vla-v2/LICENSE +202 -0
- third_party/lingbot-vla-v2/configs/robot_configs/agilex_cobot_magic.yaml +20 -0
- third_party/lingbot-vla-v2/configs/robot_configs/robotwin.yaml +49 -0
- third_party/lingbot-vla-v2/configs/vla/norm_compute/post_data.yaml +15 -0
- third_party/lingbot-vla-v2/configs/vla/real_robot/real_robot.yaml +146 -0
- third_party/lingbot-vla-v2/configs/vla/robotwin/robotwin.yaml +140 -0
- third_party/lingbot-vla-v2/deploy/__init__.py +0 -0
- third_party/lingbot-vla-v2/deploy/executed_action_history.py +51 -0
- third_party/lingbot-vla-v2/deploy/image_tools.py +58 -0
- third_party/lingbot-vla-v2/deploy/lingbot_vla_v2_policy.py +700 -0
DEPENDENCIES.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": {
|
| 3 |
+
"frames": 549787,
|
| 4 |
+
"repo_id": "TianxingChen/RoboTwin2.0",
|
| 5 |
+
"revision": "981c92aa34d8f94d4cff47e0d5bc2f7d4e0af042",
|
| 6 |
+
"scope": "50 clean episodes/task across50tasks, original train+val partitions both included in original all-clean training. No held-out validation, seed7, normalization fixed.",
|
| 7 |
+
"trajectories": 2500
|
| 8 |
+
},
|
| 9 |
+
"models": {
|
| 10 |
+
"base": {
|
| 11 |
+
"repo_id": "robbyant/lingbot-vla-v2-6b",
|
| 12 |
+
"revision": "11c703bf6a5c1f45b3b69168482da11fdbba53d7"
|
| 13 |
+
},
|
| 14 |
+
"depth_teacher": {
|
| 15 |
+
"repo_id": "Ruicheng/moge-2-vitb-normal",
|
| 16 |
+
"revision": "ca5f0e07ff01d3e5a364c1d954ed12ee1814b368"
|
| 17 |
+
},
|
| 18 |
+
"tokenizer": {
|
| 19 |
+
"repo_id": "Qwen/Qwen3-VL-4B-Instruct",
|
| 20 |
+
"revision": "ebb281ec70b05090aa6165b016eac8ec08e71b17"
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
EVALUATION.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Actual evaluation method and results
|
| 2 |
+
|
| 3 |
+
The historical benchmark is `robotwin-eval-subset-v2-seen-unseen`, fixed subset commit
|
| 4 |
+
`b5abe512dafd400736c6dca5905f2fd262dd9029`: 50 tasks × 10 clean/seen + 10 randomized/unseen
|
| 5 |
+
episodes, 1000 episodes per model. The same 1000 episode IDs and initial RGB/public-state
|
| 6 |
+
hashes match across endpoints. Accepted policy failures are included; infrastructure retries
|
| 7 |
+
are excluded. Evaluation uses unseen instructions, not unseen-instruction training.
|
| 8 |
+
All tasks are present in the all-clean training set. Seen/unseen refers to instruction pools;
|
| 9 |
+
clean/seen versus randomized/unseen changes both visual conditions and instruction pools.
|
| 10 |
+
These results concern the original fixed-table runs, not later low-table adaptations.
|
| 11 |
+
|
| 12 |
+
| Model | Clean / seen | Randomized / unseen | Overall |
|
| 13 |
+
|---|---:|---:|---:|
|
| 14 |
+
| ep2 | 381/500 (76.2%) | 204/500 (40.8%) | 585/1000 (58.5%) |
|
| 15 |
+
| ep6 | 416/500 (83.2%) | 178/500 (35.6%) | 594/1000 (59.4%) |
|
| 16 |
+
|
| 17 |
+
Per-task counts, completed/planned counts, success rates, worker counts and measured episode
|
| 18 |
+
wall times are in `RESULTS.json`. Wall times are specific to the actual distributed setup,
|
| 19 |
+
not hardware-independent model latency. These are historical results, not current service status.
|
| 20 |
+
|
| 21 |
+
Model inference used F32 weights/main path, eager action attention, compile=false, tf32=false,
|
| 22 |
+
autocast=false. Official FA2 vision casts FP32 Q/K/V to BF16 internally and restores output dtype.
|
| 23 |
+
E5 causal history is reset per episode/session, uses only confirmed executed command prefixes,
|
| 24 |
+
and prior public drive-target state observations. It is not measured-qpos history.
|
| 25 |
+
|
| 26 |
+
The checkpoint requires custom runtime loading, the original normalization, three camera inputs,
|
| 27 |
+
14-dimensional execution commands and baseline dependencies. Core runtime source is preserved
|
| 28 |
+
from original training archives. `scripts/e5_rollout_history.py` implements the causal history contract.
|
| 29 |
+
Use `HARDWARE.md` for actual inference/rendering machines and precision boundaries.
|
| 30 |
+
|
| 31 |
+
Exact original server, transport, renderer worker and subset verifier source from both evaluations is included and hashed in `SOURCE_MANIFEST.json`.
|
| 32 |
+
|
| 33 |
+
Exact end-to-end rollout reproduction still requires the fixed subset, compatible RoboTwin
|
| 34 |
+
simulation assets and matching server/renderer integration. No generic upstream evaluation
|
| 35 |
+
script is represented as the exact 1000-episode harness. No new rollout was run for this release.
|
| 36 |
+
原始记录保存在本地。
|
| 37 |
+
|
| 38 |
+
## Portable entry
|
| 39 |
+
|
| 40 |
+
Download the selected public checkpoint, including `training_config.yaml`, to `checkpoints/ep2`
|
| 41 |
+
or `checkpoints/ep6`. The release identity adapter verifies all six original shard hashes,
|
| 42 |
+
the index, sanitized model/training config and normalization before loading. It replaces
|
| 43 |
+
only checks tied to private training records. The loader now reads `training_config.yaml`
|
| 44 |
+
beside the shards. `SOURCE_MANIFEST.json` lists these changes and retains both original
|
| 45 |
+
registry hashes. The earlier training-archive rollout-history version is retained under
|
| 46 |
+
`training_reference/`; the active version is the exact source used by both evaluations.
|
| 47 |
+
|
| 48 |
+
Install the CUDA inference dependencies; keep Qwen3-VL under
|
| 49 |
+
`checkpoints/dependencies/Qwen3-VL-4B-Instruct`. Place compatible RoboTwin source/assets in
|
| 50 |
+
`third_party/RoboTwin`. Original warmup requires the clean adjust_bottle episode0 HDF5 under
|
| 51 |
+
`data/raw/adjust_bottle/aloha-agilex_clean_50/data/episode0.hdf5`.
|
| 52 |
+
The fixed subset must be a checksummed Git checkout. A public mirror is
|
| 53 |
+
[ar-mine/robotwin-eval-subset-v2-seen-unseen](https://huggingface.co/datasets/ar-mine/robotwin-eval-subset-v2-seen-unseen/tree/73277c2022be224d3afb195b503a3cff56ded46d),
|
| 54 |
+
at HF revision `73277c2022be224d3afb195b503a3cff56ded46d`. Its package SHA256SUMS is byte-identical
|
| 55 |
+
to the original benchmark (SHA256 `a8a41f7c5162732cce287e77628840bf754f631825d3a6a343d51c648f932eb9`).
|
| 56 |
+
The wrapper accepts either the original Git commit above or this fixed public mirror commit,
|
| 57 |
+
verifies the exact checksum-file hash and all package files, and records the actual checkout
|
| 58 |
+
commit used. Set `SUBSET_ROOT` to `benchmarks/robotwin_eval_subset_v2_seen_unseen` inside that
|
| 59 |
+
checkout and `RUN_DIR` to a fresh local result directory. Configure the
|
| 60 |
+
already-established transport so the renderer can reach the inference server on localhost
|
| 61 |
+
port 9340. The wrapper creates no SSH tunnels, scheduler allocations or remote jobs.
|
| 62 |
+
|
| 63 |
+
On the inference machine (A100), after selecting its GPU through `CUDA_VISIBLE_DEVICES`:
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
python scripts/release_eval.py server --epoch ep6 --output "$RUN_DIR/server" --port 9340 --run
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
On the renderer (RTX 5090), set `EVAL_GPU_UUID` and `CUDA_VISIBLE_DEVICES` to the same allocated
|
| 70 |
+
render GPU UUID. Execute an episode from the fixed subset:
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
python scripts/release_eval.py episode --epoch ep6 --subset "$SUBSET_ROOT" --task adjust_bottle --setting clean --index 0 --output "$RUN_DIR/adjust_bottle_clean_0" --port 9340 --run
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
Omit `--run` to validate/print a plan without starting a GPU process or service. For epoch2
|
| 77 |
+
choose `--epoch ep2` on both sides. The original worker applies per-episode seeds, RT rendering,
|
| 78 |
+
confirmed-action and public-state history, session reset and strict server-identity checks.
|
| 79 |
+
The wrapper runs one episode at a time; full1000 orchestration, resumability and infrastructure
|
| 80 |
+
retry accounting remain the executor's responsibility. Do not compare an incomplete run with
|
| 81 |
+
the historical full1000 table. Portable entries received CPU validation only; target-GPU
|
| 82 |
+
loading, the two-episode causal-history smoke, and full benchmark reproduction remain pending.
|
HARDWARE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hardware and version boundaries
|
| 2 |
+
|
| 3 |
+
Actual training allocations:
|
| 4 |
+
|
| 5 |
+
- ep2: 1 node(s), 4 × NVIDIA A100-SXM4-40GB, 40960 MiB per GPU. Scheduler requested 64 CPUs and 440 GB RAM per node; this is not measured usage. CPU model: not captured in preserved allocation/binding record.
|
| 6 |
+
- ep6: 2 node(s), 8 × NVIDIA A100-SXM4-40GB, 40960 MiB per GPU. Scheduler requested 64 CPUs and 440 GB RAM per node; this is not measured usage. CPU model: not captured in preserved allocation/binding record.
|
| 7 |
+
|
| 8 |
+
Actual evaluation inference used NVIDIA A100-SXM4-40GB (42406903808 reported bytes),
|
| 9 |
+
PyTorch 2.8.0+cu128, CUDA 12.8, one model replica per reported server; six max clients.
|
| 10 |
+
Episode workers: epoch2 4/6 across recorded batches; epoch6 6. Rendering used RTX 5090 32GB.
|
| 11 |
+
|
| 12 |
+
A pre-evaluation workstation snapshot dated 2026-09-18 reports Intel i9-12900KF,
|
| 13 |
+
24 logical CPUs, 62 GiB RAM, RTX 5090 32607 MiB, Ubuntu 22.04.5 and driver 580.178.04.
|
| 14 |
+
That older snapshot is not proof that the driver/CPU/RAM was rechecked at every rollout.
|
| 15 |
+
Training CPU model, actual memory usage and inference-server CPU/RAM are not recovered
|
| 16 |
+
in the supplied facts. Do not substitute hardware from later experiments.
|
| 17 |
+
|
| 18 |
+
No hardware was exercised for this release; these statements describe historical runs.
|
| 19 |
+
原始记录保存在本地。
|
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- robotics
|
| 4 |
+
- lingbot-vla
|
| 5 |
+
---
|
| 6 |
+
# E5+C3 original training code and evaluation documentation
|
| 7 |
+
|
| 8 |
+
Public release, 2026-10-25 (Asia/Singapore). This Hugging Face dataset hosts a **Git source
|
| 9 |
+
repository**, cloneable with `git clone https://huggingface.co/datasets/ar-mine/e5-c3-code`.
|
| 10 |
+
It is not a training dataset or a generic AutoModel implementation.
|
| 11 |
+
|
| 12 |
+
[Epoch2 weights](https://huggingface.co/ar-mine/lingbot-vla-v2-6b-e5-c3-epoch2-step17180) ·
|
| 13 |
+
[Epoch6 weights](https://huggingface.co/ar-mine/lingbot-vla-v2-6b-e5-c3-epoch6-step17178) ·
|
| 14 |
+
[Training method and reproduction](TRAINING.md) · [Evaluation method](EVALUATION.md) ·
|
| 15 |
+
[Hardware](HARDWARE.md) · [Full results](RESULTS.json).
|
| 16 |
+
|
| 17 |
+
| Model | Clean / seen | Randomized / unseen | Overall |
|
| 18 |
+
|---|---:|---:|---:|
|
| 19 |
+
| ep2 | 381/500 (76.2%) | 204/500 (40.8%) | 585/1000 (58.5%) |
|
| 20 |
+
| ep6 | 416/500 (83.2%) | 178/500 (35.6%) | 594/1000 (59.4%) |
|
| 21 |
+
|
| 22 |
+
These are completed historical evaluations; the release task ran no new rollouts or training.
|
| 23 |
+
Epoch2 and epoch6 differ in global batch (64/192), LR (1e-4/1.5e-4), GPU count (4/8)
|
| 24 |
+
and epoch count. They are not a pure epoch ablation.
|
| 25 |
+
Clean/seen versus randomized/unseen also changes the instruction pool, so it is not a pure
|
| 26 |
+
visual randomization effect. All 50 tasks appear in training; seen/unseen describes instruction
|
| 27 |
+
vocabulary/template pools, not unseen tasks. These are the original fixed-table runs, not later
|
| 28 |
+
low-table adaptation or interpolation experiments.
|
| 29 |
+
|
| 30 |
+
The actual original training archives supply the shared runtime, training entry, E5 history
|
| 31 |
+
logic, C3 augmentation, normalization and configs. Selected shared files are byte-identical
|
| 32 |
+
between endpoints before the documented portable path changes. `SOURCE_MANIFEST.json`
|
| 33 |
+
records original/export SHA256 values, original archive SHA256 values and portable edits.
|
| 34 |
+
Original archive contents, machine-specific mappings and records remain local: 原始记录保存在本地。
|
| 35 |
+
|
| 36 |
+
Upstream licenses are preserved in `third_party/lingbot-vla-v2/LICENSE` and nested dependency
|
| 37 |
+
LICENSE files. Original upstream illustrations/loss plots are omitted; they are not these runs'
|
| 38 |
+
curves. Deployment allocation scripts and private machine layouts are not required by the
|
| 39 |
+
portable training entry. See the explicit remaining reproduction limits in the method documents.
|
RESULTS.json
ADDED
|
@@ -0,0 +1,1237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": {
|
| 3 |
+
"frames": 549787,
|
| 4 |
+
"repo_id": "TianxingChen/RoboTwin2.0",
|
| 5 |
+
"revision": "981c92aa34d8f94d4cff47e0d5bc2f7d4e0af042",
|
| 6 |
+
"scope": "50 clean episodes/task across50tasks, original train+val partitions both included in original all-clean training. No held-out validation, seed7, normalization fixed.",
|
| 7 |
+
"trajectories": 2500
|
| 8 |
+
},
|
| 9 |
+
"date": "2026-10-25",
|
| 10 |
+
"dependency_models": {
|
| 11 |
+
"base": {
|
| 12 |
+
"repo_id": "robbyant/lingbot-vla-v2-6b",
|
| 13 |
+
"revision": "11c703bf6a5c1f45b3b69168482da11fdbba53d7"
|
| 14 |
+
},
|
| 15 |
+
"depth_teacher": {
|
| 16 |
+
"repo_id": "Ruicheng/moge-2-vitb-normal",
|
| 17 |
+
"revision": "ca5f0e07ff01d3e5a364c1d954ed12ee1814b368"
|
| 18 |
+
},
|
| 19 |
+
"tokenizer": {
|
| 20 |
+
"repo_id": "Qwen/Qwen3-VL-4B-Instruct",
|
| 21 |
+
"revision": "ebb281ec70b05090aa6165b016eac8ec08e71b17"
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"eval_note": "Both original benchmarks completed. Compile/TF32/autocast disabled, eager action attention; official FA2 vision internally casts QKV to BF16. Not pure all-FP32 operations.",
|
| 25 |
+
"models": {
|
| 26 |
+
"ep2": {
|
| 27 |
+
"evaluation": {
|
| 28 |
+
"by_task": {
|
| 29 |
+
"adjust_bottle": {
|
| 30 |
+
"clean": {
|
| 31 |
+
"episodes": 10,
|
| 32 |
+
"successes": 10
|
| 33 |
+
},
|
| 34 |
+
"randomized": {
|
| 35 |
+
"episodes": 10,
|
| 36 |
+
"successes": 7
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
"beat_block_hammer": {
|
| 40 |
+
"clean": {
|
| 41 |
+
"episodes": 10,
|
| 42 |
+
"successes": 10
|
| 43 |
+
},
|
| 44 |
+
"randomized": {
|
| 45 |
+
"episodes": 10,
|
| 46 |
+
"successes": 6
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"blocks_ranking_rgb": {
|
| 50 |
+
"clean": {
|
| 51 |
+
"episodes": 10,
|
| 52 |
+
"successes": 7
|
| 53 |
+
},
|
| 54 |
+
"randomized": {
|
| 55 |
+
"episodes": 10,
|
| 56 |
+
"successes": 6
|
| 57 |
+
}
|
| 58 |
+
},
|
| 59 |
+
"blocks_ranking_size": {
|
| 60 |
+
"clean": {
|
| 61 |
+
"episodes": 10,
|
| 62 |
+
"successes": 5
|
| 63 |
+
},
|
| 64 |
+
"randomized": {
|
| 65 |
+
"episodes": 10,
|
| 66 |
+
"successes": 3
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"click_alarmclock": {
|
| 70 |
+
"clean": {
|
| 71 |
+
"episodes": 10,
|
| 72 |
+
"successes": 10
|
| 73 |
+
},
|
| 74 |
+
"randomized": {
|
| 75 |
+
"episodes": 10,
|
| 76 |
+
"successes": 9
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
"click_bell": {
|
| 80 |
+
"clean": {
|
| 81 |
+
"episodes": 10,
|
| 82 |
+
"successes": 10
|
| 83 |
+
},
|
| 84 |
+
"randomized": {
|
| 85 |
+
"episodes": 10,
|
| 86 |
+
"successes": 4
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
"dump_bin_bigbin": {
|
| 90 |
+
"clean": {
|
| 91 |
+
"episodes": 10,
|
| 92 |
+
"successes": 10
|
| 93 |
+
},
|
| 94 |
+
"randomized": {
|
| 95 |
+
"episodes": 10,
|
| 96 |
+
"successes": 10
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
"grab_roller": {
|
| 100 |
+
"clean": {
|
| 101 |
+
"episodes": 10,
|
| 102 |
+
"successes": 10
|
| 103 |
+
},
|
| 104 |
+
"randomized": {
|
| 105 |
+
"episodes": 10,
|
| 106 |
+
"successes": 6
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
"handover_block": {
|
| 110 |
+
"clean": {
|
| 111 |
+
"episodes": 10,
|
| 112 |
+
"successes": 4
|
| 113 |
+
},
|
| 114 |
+
"randomized": {
|
| 115 |
+
"episodes": 10,
|
| 116 |
+
"successes": 2
|
| 117 |
+
}
|
| 118 |
+
},
|
| 119 |
+
"handover_mic": {
|
| 120 |
+
"clean": {
|
| 121 |
+
"episodes": 10,
|
| 122 |
+
"successes": 8
|
| 123 |
+
},
|
| 124 |
+
"randomized": {
|
| 125 |
+
"episodes": 10,
|
| 126 |
+
"successes": 2
|
| 127 |
+
}
|
| 128 |
+
},
|
| 129 |
+
"hanging_mug": {
|
| 130 |
+
"clean": {
|
| 131 |
+
"episodes": 10,
|
| 132 |
+
"successes": 5
|
| 133 |
+
},
|
| 134 |
+
"randomized": {
|
| 135 |
+
"episodes": 10,
|
| 136 |
+
"successes": 0
|
| 137 |
+
}
|
| 138 |
+
},
|
| 139 |
+
"lift_pot": {
|
| 140 |
+
"clean": {
|
| 141 |
+
"episodes": 10,
|
| 142 |
+
"successes": 8
|
| 143 |
+
},
|
| 144 |
+
"randomized": {
|
| 145 |
+
"episodes": 10,
|
| 146 |
+
"successes": 0
|
| 147 |
+
}
|
| 148 |
+
},
|
| 149 |
+
"move_can_pot": {
|
| 150 |
+
"clean": {
|
| 151 |
+
"episodes": 10,
|
| 152 |
+
"successes": 8
|
| 153 |
+
},
|
| 154 |
+
"randomized": {
|
| 155 |
+
"episodes": 10,
|
| 156 |
+
"successes": 1
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
"move_pillbottle_pad": {
|
| 160 |
+
"clean": {
|
| 161 |
+
"episodes": 10,
|
| 162 |
+
"successes": 8
|
| 163 |
+
},
|
| 164 |
+
"randomized": {
|
| 165 |
+
"episodes": 10,
|
| 166 |
+
"successes": 2
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
"move_playingcard_away": {
|
| 170 |
+
"clean": {
|
| 171 |
+
"episodes": 10,
|
| 172 |
+
"successes": 9
|
| 173 |
+
},
|
| 174 |
+
"randomized": {
|
| 175 |
+
"episodes": 10,
|
| 176 |
+
"successes": 7
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"move_stapler_pad": {
|
| 180 |
+
"clean": {
|
| 181 |
+
"episodes": 10,
|
| 182 |
+
"successes": 2
|
| 183 |
+
},
|
| 184 |
+
"randomized": {
|
| 185 |
+
"episodes": 10,
|
| 186 |
+
"successes": 0
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
"open_laptop": {
|
| 190 |
+
"clean": {
|
| 191 |
+
"episodes": 10,
|
| 192 |
+
"successes": 9
|
| 193 |
+
},
|
| 194 |
+
"randomized": {
|
| 195 |
+
"episodes": 10,
|
| 196 |
+
"successes": 1
|
| 197 |
+
}
|
| 198 |
+
},
|
| 199 |
+
"open_microwave": {
|
| 200 |
+
"clean": {
|
| 201 |
+
"episodes": 10,
|
| 202 |
+
"successes": 7
|
| 203 |
+
},
|
| 204 |
+
"randomized": {
|
| 205 |
+
"episodes": 10,
|
| 206 |
+
"successes": 1
|
| 207 |
+
}
|
| 208 |
+
},
|
| 209 |
+
"pick_diverse_bottles": {
|
| 210 |
+
"clean": {
|
| 211 |
+
"episodes": 10,
|
| 212 |
+
"successes": 7
|
| 213 |
+
},
|
| 214 |
+
"randomized": {
|
| 215 |
+
"episodes": 10,
|
| 216 |
+
"successes": 4
|
| 217 |
+
}
|
| 218 |
+
},
|
| 219 |
+
"pick_dual_bottles": {
|
| 220 |
+
"clean": {
|
| 221 |
+
"episodes": 10,
|
| 222 |
+
"successes": 8
|
| 223 |
+
},
|
| 224 |
+
"randomized": {
|
| 225 |
+
"episodes": 10,
|
| 226 |
+
"successes": 3
|
| 227 |
+
}
|
| 228 |
+
},
|
| 229 |
+
"place_a2b_left": {
|
| 230 |
+
"clean": {
|
| 231 |
+
"episodes": 10,
|
| 232 |
+
"successes": 8
|
| 233 |
+
},
|
| 234 |
+
"randomized": {
|
| 235 |
+
"episodes": 10,
|
| 236 |
+
"successes": 1
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
"place_a2b_right": {
|
| 240 |
+
"clean": {
|
| 241 |
+
"episodes": 10,
|
| 242 |
+
"successes": 6
|
| 243 |
+
},
|
| 244 |
+
"randomized": {
|
| 245 |
+
"episodes": 10,
|
| 246 |
+
"successes": 1
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
"place_bread_basket": {
|
| 250 |
+
"clean": {
|
| 251 |
+
"episodes": 10,
|
| 252 |
+
"successes": 4
|
| 253 |
+
},
|
| 254 |
+
"randomized": {
|
| 255 |
+
"episodes": 10,
|
| 256 |
+
"successes": 6
|
| 257 |
+
}
|
| 258 |
+
},
|
| 259 |
+
"place_bread_skillet": {
|
| 260 |
+
"clean": {
|
| 261 |
+
"episodes": 10,
|
| 262 |
+
"successes": 8
|
| 263 |
+
},
|
| 264 |
+
"randomized": {
|
| 265 |
+
"episodes": 10,
|
| 266 |
+
"successes": 3
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
"place_burger_fries": {
|
| 270 |
+
"clean": {
|
| 271 |
+
"episodes": 10,
|
| 272 |
+
"successes": 9
|
| 273 |
+
},
|
| 274 |
+
"randomized": {
|
| 275 |
+
"episodes": 10,
|
| 276 |
+
"successes": 7
|
| 277 |
+
}
|
| 278 |
+
},
|
| 279 |
+
"place_can_basket": {
|
| 280 |
+
"clean": {
|
| 281 |
+
"episodes": 10,
|
| 282 |
+
"successes": 9
|
| 283 |
+
},
|
| 284 |
+
"randomized": {
|
| 285 |
+
"episodes": 10,
|
| 286 |
+
"successes": 0
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
"place_cans_plasticbox": {
|
| 290 |
+
"clean": {
|
| 291 |
+
"episodes": 10,
|
| 292 |
+
"successes": 9
|
| 293 |
+
},
|
| 294 |
+
"randomized": {
|
| 295 |
+
"episodes": 10,
|
| 296 |
+
"successes": 8
|
| 297 |
+
}
|
| 298 |
+
},
|
| 299 |
+
"place_container_plate": {
|
| 300 |
+
"clean": {
|
| 301 |
+
"episodes": 10,
|
| 302 |
+
"successes": 10
|
| 303 |
+
},
|
| 304 |
+
"randomized": {
|
| 305 |
+
"episodes": 10,
|
| 306 |
+
"successes": 9
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"place_dual_shoes": {
|
| 310 |
+
"clean": {
|
| 311 |
+
"episodes": 10,
|
| 312 |
+
"successes": 7
|
| 313 |
+
},
|
| 314 |
+
"randomized": {
|
| 315 |
+
"episodes": 10,
|
| 316 |
+
"successes": 1
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
"place_empty_cup": {
|
| 320 |
+
"clean": {
|
| 321 |
+
"episodes": 10,
|
| 322 |
+
"successes": 10
|
| 323 |
+
},
|
| 324 |
+
"randomized": {
|
| 325 |
+
"episodes": 10,
|
| 326 |
+
"successes": 6
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
"place_fan": {
|
| 330 |
+
"clean": {
|
| 331 |
+
"episodes": 10,
|
| 332 |
+
"successes": 3
|
| 333 |
+
},
|
| 334 |
+
"randomized": {
|
| 335 |
+
"episodes": 10,
|
| 336 |
+
"successes": 5
|
| 337 |
+
}
|
| 338 |
+
},
|
| 339 |
+
"place_mouse_pad": {
|
| 340 |
+
"clean": {
|
| 341 |
+
"episodes": 10,
|
| 342 |
+
"successes": 7
|
| 343 |
+
},
|
| 344 |
+
"randomized": {
|
| 345 |
+
"episodes": 10,
|
| 346 |
+
"successes": 3
|
| 347 |
+
}
|
| 348 |
+
},
|
| 349 |
+
"place_object_basket": {
|
| 350 |
+
"clean": {
|
| 351 |
+
"episodes": 10,
|
| 352 |
+
"successes": 9
|
| 353 |
+
},
|
| 354 |
+
"randomized": {
|
| 355 |
+
"episodes": 10,
|
| 356 |
+
"successes": 6
|
| 357 |
+
}
|
| 358 |
+
},
|
| 359 |
+
"place_object_scale": {
|
| 360 |
+
"clean": {
|
| 361 |
+
"episodes": 10,
|
| 362 |
+
"successes": 5
|
| 363 |
+
},
|
| 364 |
+
"randomized": {
|
| 365 |
+
"episodes": 10,
|
| 366 |
+
"successes": 0
|
| 367 |
+
}
|
| 368 |
+
},
|
| 369 |
+
"place_object_stand": {
|
| 370 |
+
"clean": {
|
| 371 |
+
"episodes": 10,
|
| 372 |
+
"successes": 8
|
| 373 |
+
},
|
| 374 |
+
"randomized": {
|
| 375 |
+
"episodes": 10,
|
| 376 |
+
"successes": 4
|
| 377 |
+
}
|
| 378 |
+
},
|
| 379 |
+
"place_phone_stand": {
|
| 380 |
+
"clean": {
|
| 381 |
+
"episodes": 10,
|
| 382 |
+
"successes": 8
|
| 383 |
+
},
|
| 384 |
+
"randomized": {
|
| 385 |
+
"episodes": 10,
|
| 386 |
+
"successes": 3
|
| 387 |
+
}
|
| 388 |
+
},
|
| 389 |
+
"place_shoe": {
|
| 390 |
+
"clean": {
|
| 391 |
+
"episodes": 10,
|
| 392 |
+
"successes": 9
|
| 393 |
+
},
|
| 394 |
+
"randomized": {
|
| 395 |
+
"episodes": 10,
|
| 396 |
+
"successes": 4
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
"press_stapler": {
|
| 400 |
+
"clean": {
|
| 401 |
+
"episodes": 10,
|
| 402 |
+
"successes": 9
|
| 403 |
+
},
|
| 404 |
+
"randomized": {
|
| 405 |
+
"episodes": 10,
|
| 406 |
+
"successes": 4
|
| 407 |
+
}
|
| 408 |
+
},
|
| 409 |
+
"put_bottles_dustbin": {
|
| 410 |
+
"clean": {
|
| 411 |
+
"episodes": 10,
|
| 412 |
+
"successes": 4
|
| 413 |
+
},
|
| 414 |
+
"randomized": {
|
| 415 |
+
"episodes": 10,
|
| 416 |
+
"successes": 4
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
"put_object_cabinet": {
|
| 420 |
+
"clean": {
|
| 421 |
+
"episodes": 10,
|
| 422 |
+
"successes": 5
|
| 423 |
+
},
|
| 424 |
+
"randomized": {
|
| 425 |
+
"episodes": 10,
|
| 426 |
+
"successes": 2
|
| 427 |
+
}
|
| 428 |
+
},
|
| 429 |
+
"rotate_qrcode": {
|
| 430 |
+
"clean": {
|
| 431 |
+
"episodes": 10,
|
| 432 |
+
"successes": 10
|
| 433 |
+
},
|
| 434 |
+
"randomized": {
|
| 435 |
+
"episodes": 10,
|
| 436 |
+
"successes": 1
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"scan_object": {
|
| 440 |
+
"clean": {
|
| 441 |
+
"episodes": 10,
|
| 442 |
+
"successes": 4
|
| 443 |
+
},
|
| 444 |
+
"randomized": {
|
| 445 |
+
"episodes": 10,
|
| 446 |
+
"successes": 3
|
| 447 |
+
}
|
| 448 |
+
},
|
| 449 |
+
"shake_bottle": {
|
| 450 |
+
"clean": {
|
| 451 |
+
"episodes": 10,
|
| 452 |
+
"successes": 10
|
| 453 |
+
},
|
| 454 |
+
"randomized": {
|
| 455 |
+
"episodes": 10,
|
| 456 |
+
"successes": 10
|
| 457 |
+
}
|
| 458 |
+
},
|
| 459 |
+
"shake_bottle_horizontally": {
|
| 460 |
+
"clean": {
|
| 461 |
+
"episodes": 10,
|
| 462 |
+
"successes": 10
|
| 463 |
+
},
|
| 464 |
+
"randomized": {
|
| 465 |
+
"episodes": 10,
|
| 466 |
+
"successes": 10
|
| 467 |
+
}
|
| 468 |
+
},
|
| 469 |
+
"stack_blocks_three": {
|
| 470 |
+
"clean": {
|
| 471 |
+
"episodes": 10,
|
| 472 |
+
"successes": 8
|
| 473 |
+
},
|
| 474 |
+
"randomized": {
|
| 475 |
+
"episodes": 10,
|
| 476 |
+
"successes": 4
|
| 477 |
+
}
|
| 478 |
+
},
|
| 479 |
+
"stack_blocks_two": {
|
| 480 |
+
"clean": {
|
| 481 |
+
"episodes": 10,
|
| 482 |
+
"successes": 10
|
| 483 |
+
},
|
| 484 |
+
"randomized": {
|
| 485 |
+
"episodes": 10,
|
| 486 |
+
"successes": 6
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
"stack_bowls_three": {
|
| 490 |
+
"clean": {
|
| 491 |
+
"episodes": 10,
|
| 492 |
+
"successes": 9
|
| 493 |
+
},
|
| 494 |
+
"randomized": {
|
| 495 |
+
"episodes": 10,
|
| 496 |
+
"successes": 6
|
| 497 |
+
}
|
| 498 |
+
},
|
| 499 |
+
"stack_bowls_two": {
|
| 500 |
+
"clean": {
|
| 501 |
+
"episodes": 10,
|
| 502 |
+
"successes": 10
|
| 503 |
+
},
|
| 504 |
+
"randomized": {
|
| 505 |
+
"episodes": 10,
|
| 506 |
+
"successes": 9
|
| 507 |
+
}
|
| 508 |
+
},
|
| 509 |
+
"stamp_seal": {
|
| 510 |
+
"clean": {
|
| 511 |
+
"episodes": 10,
|
| 512 |
+
"successes": 5
|
| 513 |
+
},
|
| 514 |
+
"randomized": {
|
| 515 |
+
"episodes": 10,
|
| 516 |
+
"successes": 0
|
| 517 |
+
}
|
| 518 |
+
},
|
| 519 |
+
"turn_switch": {
|
| 520 |
+
"clean": {
|
| 521 |
+
"episodes": 10,
|
| 522 |
+
"successes": 3
|
| 523 |
+
},
|
| 524 |
+
"randomized": {
|
| 525 |
+
"episodes": 10,
|
| 526 |
+
"successes": 4
|
| 527 |
+
}
|
| 528 |
+
}
|
| 529 |
+
},
|
| 530 |
+
"completed_on": "2026-10-09",
|
| 531 |
+
"inference_runtime": [
|
| 532 |
+
{
|
| 533 |
+
"attention_implementation": "eager",
|
| 534 |
+
"autocast": false,
|
| 535 |
+
"compile": false,
|
| 536 |
+
"cuda_version": "12.8",
|
| 537 |
+
"gpu_memory_bytes": 42406903808,
|
| 538 |
+
"gpu_name": "NVIDIA A100-SXM4-40GB",
|
| 539 |
+
"max_clients": 6,
|
| 540 |
+
"model_replicas": 1,
|
| 541 |
+
"precision": "fp32",
|
| 542 |
+
"tf32": false,
|
| 543 |
+
"torch_version": "2.8.0+cu128",
|
| 544 |
+
"vision_attention_precision_note": "Official FA2 vision patch internally casts FP32 Q/K/V to BF16, then restores output dtype; FP32 here denotes official FP32 parameter/main-path mode, not all operations IEEE FP32."
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"attention_implementation": "eager",
|
| 548 |
+
"autocast": false,
|
| 549 |
+
"compile": false,
|
| 550 |
+
"cuda_version": "12.8",
|
| 551 |
+
"gpu_memory_bytes": 42406903808,
|
| 552 |
+
"gpu_name": "NVIDIA A100-SXM4-40GB",
|
| 553 |
+
"max_clients": 6,
|
| 554 |
+
"model_replicas": 1,
|
| 555 |
+
"precision": "fp32",
|
| 556 |
+
"tf32": false,
|
| 557 |
+
"torch_version": "2.8.0+cu128",
|
| 558 |
+
"vision_attention_precision_note": "Official FA2 vision patch internally casts FP32 Q/K/V to BF16, then restores output dtype; FP32 here denotes official FP32 parameter/main-path mode, not all operations IEEE FP32."
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"attention_implementation": "eager",
|
| 562 |
+
"autocast": false,
|
| 563 |
+
"compile": false,
|
| 564 |
+
"cuda_version": "12.8",
|
| 565 |
+
"gpu_memory_bytes": 42406903808,
|
| 566 |
+
"gpu_name": "NVIDIA A100-SXM4-40GB",
|
| 567 |
+
"max_clients": 6,
|
| 568 |
+
"model_replicas": 1,
|
| 569 |
+
"precision": "fp32",
|
| 570 |
+
"tf32": false,
|
| 571 |
+
"torch_version": "2.8.0+cu128",
|
| 572 |
+
"vision_attention_precision_note": "Official FA2 vision patch internally casts FP32 Q/K/V to BF16, then restores output dtype; FP32 here denotes official FP32 parameter/main-path mode, not all operations IEEE FP32."
|
| 573 |
+
}
|
| 574 |
+
],
|
| 575 |
+
"instruction_protocol_note": "clean uses seen template/object vocabulary; randomized uses unseen instructions. This split changes both scene setting and instruction pool; not a pure visual randomization ablation.",
|
| 576 |
+
"instruction_types": {
|
| 577 |
+
"seen": {
|
| 578 |
+
"episodes": 500,
|
| 579 |
+
"successes": 381
|
| 580 |
+
},
|
| 581 |
+
"unseen": {
|
| 582 |
+
"episodes": 500,
|
| 583 |
+
"successes": 204
|
| 584 |
+
}
|
| 585 |
+
},
|
| 586 |
+
"metrics": {
|
| 587 |
+
"clean": {
|
| 588 |
+
"completed": 500,
|
| 589 |
+
"mean_episode_wall_seconds": 28.920957204053643,
|
| 590 |
+
"planned": 500,
|
| 591 |
+
"success_rate_among_completed": 0.762,
|
| 592 |
+
"successes": 381
|
| 593 |
+
},
|
| 594 |
+
"overall": {
|
| 595 |
+
"completed": 1000,
|
| 596 |
+
"mean_episode_wall_seconds": 34.47787418675865,
|
| 597 |
+
"planned": 1000,
|
| 598 |
+
"success_rate_among_completed": 0.585,
|
| 599 |
+
"successes": 585
|
| 600 |
+
},
|
| 601 |
+
"randomized": {
|
| 602 |
+
"completed": 500,
|
| 603 |
+
"mean_episode_wall_seconds": 40.03479116946366,
|
| 604 |
+
"planned": 500,
|
| 605 |
+
"success_rate_among_completed": 0.408,
|
| 606 |
+
"successes": 204
|
| 607 |
+
}
|
| 608 |
+
},
|
| 609 |
+
"render_gpu": "NVIDIA GeForce RTX 5090 32GB",
|
| 610 |
+
"subset_commit": "b5abe512dafd400736c6dca5905f2fd262dd9029",
|
| 611 |
+
"subset_id": "robotwin-eval-subset-v2-seen-unseen",
|
| 612 |
+
"workers": [
|
| 613 |
+
4,
|
| 614 |
+
6
|
| 615 |
+
]
|
| 616 |
+
},
|
| 617 |
+
"repo_id": "ar-mine/lingbot-vla-v2-6b-e5-c3-epoch2-step17180",
|
| 618 |
+
"training": {
|
| 619 |
+
"automatic_restarts": 0,
|
| 620 |
+
"epochs": 2,
|
| 621 |
+
"frames": 549787,
|
| 622 |
+
"global_batch_size": 64,
|
| 623 |
+
"gpu_count": 4,
|
| 624 |
+
"gpu_model": "NVIDIA A100-SXM4-40GB",
|
| 625 |
+
"gpu_vram_mib": 40960,
|
| 626 |
+
"gpus_per_node": 4,
|
| 627 |
+
"gradient_accumulation_steps": 2,
|
| 628 |
+
"held_out_trajectories": 0,
|
| 629 |
+
"initialization": "official_base_fresh",
|
| 630 |
+
"last_training_loss": 0.019561767578125,
|
| 631 |
+
"micro_batch_size": 8,
|
| 632 |
+
"nodes": 1,
|
| 633 |
+
"optimizer_steps": 17180,
|
| 634 |
+
"requested_cpus_per_node": 64,
|
| 635 |
+
"requested_memory_gb_per_node": 440,
|
| 636 |
+
"source_archive_sha256": "830d1e28a0dbff4d8d7a127ac236fe8e6da88e3b1096e581914ad5288967e10c",
|
| 637 |
+
"training_cpu_model": "not captured in preserved allocation/binding record",
|
| 638 |
+
"training_seconds": 93651.12558245659,
|
| 639 |
+
"trajectories": 2500,
|
| 640 |
+
"validation_enabled": false
|
| 641 |
+
}
|
| 642 |
+
},
|
| 643 |
+
"ep6": {
|
| 644 |
+
"evaluation": {
|
| 645 |
+
"by_task": {
|
| 646 |
+
"adjust_bottle": {
|
| 647 |
+
"clean": {
|
| 648 |
+
"episodes": 10,
|
| 649 |
+
"successes": 10
|
| 650 |
+
},
|
| 651 |
+
"randomized": {
|
| 652 |
+
"episodes": 10,
|
| 653 |
+
"successes": 9
|
| 654 |
+
}
|
| 655 |
+
},
|
| 656 |
+
"beat_block_hammer": {
|
| 657 |
+
"clean": {
|
| 658 |
+
"episodes": 10,
|
| 659 |
+
"successes": 10
|
| 660 |
+
},
|
| 661 |
+
"randomized": {
|
| 662 |
+
"episodes": 10,
|
| 663 |
+
"successes": 2
|
| 664 |
+
}
|
| 665 |
+
},
|
| 666 |
+
"blocks_ranking_rgb": {
|
| 667 |
+
"clean": {
|
| 668 |
+
"episodes": 10,
|
| 669 |
+
"successes": 9
|
| 670 |
+
},
|
| 671 |
+
"randomized": {
|
| 672 |
+
"episodes": 10,
|
| 673 |
+
"successes": 6
|
| 674 |
+
}
|
| 675 |
+
},
|
| 676 |
+
"blocks_ranking_size": {
|
| 677 |
+
"clean": {
|
| 678 |
+
"episodes": 10,
|
| 679 |
+
"successes": 5
|
| 680 |
+
},
|
| 681 |
+
"randomized": {
|
| 682 |
+
"episodes": 10,
|
| 683 |
+
"successes": 2
|
| 684 |
+
}
|
| 685 |
+
},
|
| 686 |
+
"click_alarmclock": {
|
| 687 |
+
"clean": {
|
| 688 |
+
"episodes": 10,
|
| 689 |
+
"successes": 10
|
| 690 |
+
},
|
| 691 |
+
"randomized": {
|
| 692 |
+
"episodes": 10,
|
| 693 |
+
"successes": 6
|
| 694 |
+
}
|
| 695 |
+
},
|
| 696 |
+
"click_bell": {
|
| 697 |
+
"clean": {
|
| 698 |
+
"episodes": 10,
|
| 699 |
+
"successes": 10
|
| 700 |
+
},
|
| 701 |
+
"randomized": {
|
| 702 |
+
"episodes": 10,
|
| 703 |
+
"successes": 5
|
| 704 |
+
}
|
| 705 |
+
},
|
| 706 |
+
"dump_bin_bigbin": {
|
| 707 |
+
"clean": {
|
| 708 |
+
"episodes": 10,
|
| 709 |
+
"successes": 9
|
| 710 |
+
},
|
| 711 |
+
"randomized": {
|
| 712 |
+
"episodes": 10,
|
| 713 |
+
"successes": 7
|
| 714 |
+
}
|
| 715 |
+
},
|
| 716 |
+
"grab_roller": {
|
| 717 |
+
"clean": {
|
| 718 |
+
"episodes": 10,
|
| 719 |
+
"successes": 10
|
| 720 |
+
},
|
| 721 |
+
"randomized": {
|
| 722 |
+
"episodes": 10,
|
| 723 |
+
"successes": 5
|
| 724 |
+
}
|
| 725 |
+
},
|
| 726 |
+
"handover_block": {
|
| 727 |
+
"clean": {
|
| 728 |
+
"episodes": 10,
|
| 729 |
+
"successes": 8
|
| 730 |
+
},
|
| 731 |
+
"randomized": {
|
| 732 |
+
"episodes": 10,
|
| 733 |
+
"successes": 3
|
| 734 |
+
}
|
| 735 |
+
},
|
| 736 |
+
"handover_mic": {
|
| 737 |
+
"clean": {
|
| 738 |
+
"episodes": 10,
|
| 739 |
+
"successes": 10
|
| 740 |
+
},
|
| 741 |
+
"randomized": {
|
| 742 |
+
"episodes": 10,
|
| 743 |
+
"successes": 0
|
| 744 |
+
}
|
| 745 |
+
},
|
| 746 |
+
"hanging_mug": {
|
| 747 |
+
"clean": {
|
| 748 |
+
"episodes": 10,
|
| 749 |
+
"successes": 4
|
| 750 |
+
},
|
| 751 |
+
"randomized": {
|
| 752 |
+
"episodes": 10,
|
| 753 |
+
"successes": 1
|
| 754 |
+
}
|
| 755 |
+
},
|
| 756 |
+
"lift_pot": {
|
| 757 |
+
"clean": {
|
| 758 |
+
"episodes": 10,
|
| 759 |
+
"successes": 10
|
| 760 |
+
},
|
| 761 |
+
"randomized": {
|
| 762 |
+
"episodes": 10,
|
| 763 |
+
"successes": 0
|
| 764 |
+
}
|
| 765 |
+
},
|
| 766 |
+
"move_can_pot": {
|
| 767 |
+
"clean": {
|
| 768 |
+
"episodes": 10,
|
| 769 |
+
"successes": 10
|
| 770 |
+
},
|
| 771 |
+
"randomized": {
|
| 772 |
+
"episodes": 10,
|
| 773 |
+
"successes": 1
|
| 774 |
+
}
|
| 775 |
+
},
|
| 776 |
+
"move_pillbottle_pad": {
|
| 777 |
+
"clean": {
|
| 778 |
+
"episodes": 10,
|
| 779 |
+
"successes": 8
|
| 780 |
+
},
|
| 781 |
+
"randomized": {
|
| 782 |
+
"episodes": 10,
|
| 783 |
+
"successes": 2
|
| 784 |
+
}
|
| 785 |
+
},
|
| 786 |
+
"move_playingcard_away": {
|
| 787 |
+
"clean": {
|
| 788 |
+
"episodes": 10,
|
| 789 |
+
"successes": 10
|
| 790 |
+
},
|
| 791 |
+
"randomized": {
|
| 792 |
+
"episodes": 10,
|
| 793 |
+
"successes": 6
|
| 794 |
+
}
|
| 795 |
+
},
|
| 796 |
+
"move_stapler_pad": {
|
| 797 |
+
"clean": {
|
| 798 |
+
"episodes": 10,
|
| 799 |
+
"successes": 2
|
| 800 |
+
},
|
| 801 |
+
"randomized": {
|
| 802 |
+
"episodes": 10,
|
| 803 |
+
"successes": 1
|
| 804 |
+
}
|
| 805 |
+
},
|
| 806 |
+
"open_laptop": {
|
| 807 |
+
"clean": {
|
| 808 |
+
"episodes": 10,
|
| 809 |
+
"successes": 9
|
| 810 |
+
},
|
| 811 |
+
"randomized": {
|
| 812 |
+
"episodes": 10,
|
| 813 |
+
"successes": 1
|
| 814 |
+
}
|
| 815 |
+
},
|
| 816 |
+
"open_microwave": {
|
| 817 |
+
"clean": {
|
| 818 |
+
"episodes": 10,
|
| 819 |
+
"successes": 7
|
| 820 |
+
},
|
| 821 |
+
"randomized": {
|
| 822 |
+
"episodes": 10,
|
| 823 |
+
"successes": 0
|
| 824 |
+
}
|
| 825 |
+
},
|
| 826 |
+
"pick_diverse_bottles": {
|
| 827 |
+
"clean": {
|
| 828 |
+
"episodes": 10,
|
| 829 |
+
"successes": 7
|
| 830 |
+
},
|
| 831 |
+
"randomized": {
|
| 832 |
+
"episodes": 10,
|
| 833 |
+
"successes": 3
|
| 834 |
+
}
|
| 835 |
+
},
|
| 836 |
+
"pick_dual_bottles": {
|
| 837 |
+
"clean": {
|
| 838 |
+
"episodes": 10,
|
| 839 |
+
"successes": 8
|
| 840 |
+
},
|
| 841 |
+
"randomized": {
|
| 842 |
+
"episodes": 10,
|
| 843 |
+
"successes": 4
|
| 844 |
+
}
|
| 845 |
+
},
|
| 846 |
+
"place_a2b_left": {
|
| 847 |
+
"clean": {
|
| 848 |
+
"episodes": 10,
|
| 849 |
+
"successes": 8
|
| 850 |
+
},
|
| 851 |
+
"randomized": {
|
| 852 |
+
"episodes": 10,
|
| 853 |
+
"successes": 2
|
| 854 |
+
}
|
| 855 |
+
},
|
| 856 |
+
"place_a2b_right": {
|
| 857 |
+
"clean": {
|
| 858 |
+
"episodes": 10,
|
| 859 |
+
"successes": 5
|
| 860 |
+
},
|
| 861 |
+
"randomized": {
|
| 862 |
+
"episodes": 10,
|
| 863 |
+
"successes": 3
|
| 864 |
+
}
|
| 865 |
+
},
|
| 866 |
+
"place_bread_basket": {
|
| 867 |
+
"clean": {
|
| 868 |
+
"episodes": 10,
|
| 869 |
+
"successes": 9
|
| 870 |
+
},
|
| 871 |
+
"randomized": {
|
| 872 |
+
"episodes": 10,
|
| 873 |
+
"successes": 6
|
| 874 |
+
}
|
| 875 |
+
},
|
| 876 |
+
"place_bread_skillet": {
|
| 877 |
+
"clean": {
|
| 878 |
+
"episodes": 10,
|
| 879 |
+
"successes": 8
|
| 880 |
+
},
|
| 881 |
+
"randomized": {
|
| 882 |
+
"episodes": 10,
|
| 883 |
+
"successes": 2
|
| 884 |
+
}
|
| 885 |
+
},
|
| 886 |
+
"place_burger_fries": {
|
| 887 |
+
"clean": {
|
| 888 |
+
"episodes": 10,
|
| 889 |
+
"successes": 10
|
| 890 |
+
},
|
| 891 |
+
"randomized": {
|
| 892 |
+
"episodes": 10,
|
| 893 |
+
"successes": 8
|
| 894 |
+
}
|
| 895 |
+
},
|
| 896 |
+
"place_can_basket": {
|
| 897 |
+
"clean": {
|
| 898 |
+
"episodes": 10,
|
| 899 |
+
"successes": 8
|
| 900 |
+
},
|
| 901 |
+
"randomized": {
|
| 902 |
+
"episodes": 10,
|
| 903 |
+
"successes": 1
|
| 904 |
+
}
|
| 905 |
+
},
|
| 906 |
+
"place_cans_plasticbox": {
|
| 907 |
+
"clean": {
|
| 908 |
+
"episodes": 10,
|
| 909 |
+
"successes": 10
|
| 910 |
+
},
|
| 911 |
+
"randomized": {
|
| 912 |
+
"episodes": 10,
|
| 913 |
+
"successes": 7
|
| 914 |
+
}
|
| 915 |
+
},
|
| 916 |
+
"place_container_plate": {
|
| 917 |
+
"clean": {
|
| 918 |
+
"episodes": 10,
|
| 919 |
+
"successes": 10
|
| 920 |
+
},
|
| 921 |
+
"randomized": {
|
| 922 |
+
"episodes": 10,
|
| 923 |
+
"successes": 8
|
| 924 |
+
}
|
| 925 |
+
},
|
| 926 |
+
"place_dual_shoes": {
|
| 927 |
+
"clean": {
|
| 928 |
+
"episodes": 10,
|
| 929 |
+
"successes": 8
|
| 930 |
+
},
|
| 931 |
+
"randomized": {
|
| 932 |
+
"episodes": 10,
|
| 933 |
+
"successes": 1
|
| 934 |
+
}
|
| 935 |
+
},
|
| 936 |
+
"place_empty_cup": {
|
| 937 |
+
"clean": {
|
| 938 |
+
"episodes": 10,
|
| 939 |
+
"successes": 10
|
| 940 |
+
},
|
| 941 |
+
"randomized": {
|
| 942 |
+
"episodes": 10,
|
| 943 |
+
"successes": 4
|
| 944 |
+
}
|
| 945 |
+
},
|
| 946 |
+
"place_fan": {
|
| 947 |
+
"clean": {
|
| 948 |
+
"episodes": 10,
|
| 949 |
+
"successes": 8
|
| 950 |
+
},
|
| 951 |
+
"randomized": {
|
| 952 |
+
"episodes": 10,
|
| 953 |
+
"successes": 1
|
| 954 |
+
}
|
| 955 |
+
},
|
| 956 |
+
"place_mouse_pad": {
|
| 957 |
+
"clean": {
|
| 958 |
+
"episodes": 10,
|
| 959 |
+
"successes": 7
|
| 960 |
+
},
|
| 961 |
+
"randomized": {
|
| 962 |
+
"episodes": 10,
|
| 963 |
+
"successes": 2
|
| 964 |
+
}
|
| 965 |
+
},
|
| 966 |
+
"place_object_basket": {
|
| 967 |
+
"clean": {
|
| 968 |
+
"episodes": 10,
|
| 969 |
+
"successes": 7
|
| 970 |
+
},
|
| 971 |
+
"randomized": {
|
| 972 |
+
"episodes": 10,
|
| 973 |
+
"successes": 4
|
| 974 |
+
}
|
| 975 |
+
},
|
| 976 |
+
"place_object_scale": {
|
| 977 |
+
"clean": {
|
| 978 |
+
"episodes": 10,
|
| 979 |
+
"successes": 7
|
| 980 |
+
},
|
| 981 |
+
"randomized": {
|
| 982 |
+
"episodes": 10,
|
| 983 |
+
"successes": 1
|
| 984 |
+
}
|
| 985 |
+
},
|
| 986 |
+
"place_object_stand": {
|
| 987 |
+
"clean": {
|
| 988 |
+
"episodes": 10,
|
| 989 |
+
"successes": 8
|
| 990 |
+
},
|
| 991 |
+
"randomized": {
|
| 992 |
+
"episodes": 10,
|
| 993 |
+
"successes": 3
|
| 994 |
+
}
|
| 995 |
+
},
|
| 996 |
+
"place_phone_stand": {
|
| 997 |
+
"clean": {
|
| 998 |
+
"episodes": 10,
|
| 999 |
+
"successes": 9
|
| 1000 |
+
},
|
| 1001 |
+
"randomized": {
|
| 1002 |
+
"episodes": 10,
|
| 1003 |
+
"successes": 4
|
| 1004 |
+
}
|
| 1005 |
+
},
|
| 1006 |
+
"place_shoe": {
|
| 1007 |
+
"clean": {
|
| 1008 |
+
"episodes": 10,
|
| 1009 |
+
"successes": 10
|
| 1010 |
+
},
|
| 1011 |
+
"randomized": {
|
| 1012 |
+
"episodes": 10,
|
| 1013 |
+
"successes": 5
|
| 1014 |
+
}
|
| 1015 |
+
},
|
| 1016 |
+
"press_stapler": {
|
| 1017 |
+
"clean": {
|
| 1018 |
+
"episodes": 10,
|
| 1019 |
+
"successes": 10
|
| 1020 |
+
},
|
| 1021 |
+
"randomized": {
|
| 1022 |
+
"episodes": 10,
|
| 1023 |
+
"successes": 4
|
| 1024 |
+
}
|
| 1025 |
+
},
|
| 1026 |
+
"put_bottles_dustbin": {
|
| 1027 |
+
"clean": {
|
| 1028 |
+
"episodes": 10,
|
| 1029 |
+
"successes": 8
|
| 1030 |
+
},
|
| 1031 |
+
"randomized": {
|
| 1032 |
+
"episodes": 10,
|
| 1033 |
+
"successes": 3
|
| 1034 |
+
}
|
| 1035 |
+
},
|
| 1036 |
+
"put_object_cabinet": {
|
| 1037 |
+
"clean": {
|
| 1038 |
+
"episodes": 10,
|
| 1039 |
+
"successes": 5
|
| 1040 |
+
},
|
| 1041 |
+
"randomized": {
|
| 1042 |
+
"episodes": 10,
|
| 1043 |
+
"successes": 2
|
| 1044 |
+
}
|
| 1045 |
+
},
|
| 1046 |
+
"rotate_qrcode": {
|
| 1047 |
+
"clean": {
|
| 1048 |
+
"episodes": 10,
|
| 1049 |
+
"successes": 10
|
| 1050 |
+
},
|
| 1051 |
+
"randomized": {
|
| 1052 |
+
"episodes": 10,
|
| 1053 |
+
"successes": 0
|
| 1054 |
+
}
|
| 1055 |
+
},
|
| 1056 |
+
"scan_object": {
|
| 1057 |
+
"clean": {
|
| 1058 |
+
"episodes": 10,
|
| 1059 |
+
"successes": 8
|
| 1060 |
+
},
|
| 1061 |
+
"randomized": {
|
| 1062 |
+
"episodes": 10,
|
| 1063 |
+
"successes": 2
|
| 1064 |
+
}
|
| 1065 |
+
},
|
| 1066 |
+
"shake_bottle": {
|
| 1067 |
+
"clean": {
|
| 1068 |
+
"episodes": 10,
|
| 1069 |
+
"successes": 10
|
| 1070 |
+
},
|
| 1071 |
+
"randomized": {
|
| 1072 |
+
"episodes": 10,
|
| 1073 |
+
"successes": 8
|
| 1074 |
+
}
|
| 1075 |
+
},
|
| 1076 |
+
"shake_bottle_horizontally": {
|
| 1077 |
+
"clean": {
|
| 1078 |
+
"episodes": 10,
|
| 1079 |
+
"successes": 10
|
| 1080 |
+
},
|
| 1081 |
+
"randomized": {
|
| 1082 |
+
"episodes": 10,
|
| 1083 |
+
"successes": 10
|
| 1084 |
+
}
|
| 1085 |
+
},
|
| 1086 |
+
"stack_blocks_three": {
|
| 1087 |
+
"clean": {
|
| 1088 |
+
"episodes": 10,
|
| 1089 |
+
"successes": 10
|
| 1090 |
+
},
|
| 1091 |
+
"randomized": {
|
| 1092 |
+
"episodes": 10,
|
| 1093 |
+
"successes": 5
|
| 1094 |
+
}
|
| 1095 |
+
},
|
| 1096 |
+
"stack_blocks_two": {
|
| 1097 |
+
"clean": {
|
| 1098 |
+
"episodes": 10,
|
| 1099 |
+
"successes": 10
|
| 1100 |
+
},
|
| 1101 |
+
"randomized": {
|
| 1102 |
+
"episodes": 10,
|
| 1103 |
+
"successes": 5
|
| 1104 |
+
}
|
| 1105 |
+
},
|
| 1106 |
+
"stack_bowls_three": {
|
| 1107 |
+
"clean": {
|
| 1108 |
+
"episodes": 10,
|
| 1109 |
+
"successes": 9
|
| 1110 |
+
},
|
| 1111 |
+
"randomized": {
|
| 1112 |
+
"episodes": 10,
|
| 1113 |
+
"successes": 6
|
| 1114 |
+
}
|
| 1115 |
+
},
|
| 1116 |
+
"stack_bowls_two": {
|
| 1117 |
+
"clean": {
|
| 1118 |
+
"episodes": 10,
|
| 1119 |
+
"successes": 10
|
| 1120 |
+
},
|
| 1121 |
+
"randomized": {
|
| 1122 |
+
"episodes": 10,
|
| 1123 |
+
"successes": 6
|
| 1124 |
+
}
|
| 1125 |
+
},
|
| 1126 |
+
"stamp_seal": {
|
| 1127 |
+
"clean": {
|
| 1128 |
+
"episodes": 10,
|
| 1129 |
+
"successes": 5
|
| 1130 |
+
},
|
| 1131 |
+
"randomized": {
|
| 1132 |
+
"episodes": 10,
|
| 1133 |
+
"successes": 1
|
| 1134 |
+
}
|
| 1135 |
+
},
|
| 1136 |
+
"turn_switch": {
|
| 1137 |
+
"clean": {
|
| 1138 |
+
"episodes": 10,
|
| 1139 |
+
"successes": 3
|
| 1140 |
+
},
|
| 1141 |
+
"randomized": {
|
| 1142 |
+
"episodes": 10,
|
| 1143 |
+
"successes": 0
|
| 1144 |
+
}
|
| 1145 |
+
}
|
| 1146 |
+
},
|
| 1147 |
+
"completed_on": "2026-10-12",
|
| 1148 |
+
"inference_runtime": [
|
| 1149 |
+
{
|
| 1150 |
+
"attention_implementation": "eager",
|
| 1151 |
+
"autocast": false,
|
| 1152 |
+
"compile": false,
|
| 1153 |
+
"cuda_version": "12.8",
|
| 1154 |
+
"gpu_memory_bytes": 42406903808,
|
| 1155 |
+
"gpu_name": "NVIDIA A100-SXM4-40GB",
|
| 1156 |
+
"max_clients": 6,
|
| 1157 |
+
"model_replicas": 1,
|
| 1158 |
+
"precision": "fp32",
|
| 1159 |
+
"tf32": false,
|
| 1160 |
+
"torch_version": "2.8.0+cu128",
|
| 1161 |
+
"vision_attention_precision_note": "Official FA2 vision patch internally casts FP32 Q/K/V to BF16, then restores output dtype; FP32 here denotes official FP32 parameter/main-path mode, not all operations IEEE FP32."
|
| 1162 |
+
}
|
| 1163 |
+
],
|
| 1164 |
+
"instruction_protocol_note": "clean uses seen template/object vocabulary; randomized uses unseen instructions. This split changes both scene setting and instruction pool; not a pure visual randomization ablation.",
|
| 1165 |
+
"instruction_types": {
|
| 1166 |
+
"seen": {
|
| 1167 |
+
"episodes": 500,
|
| 1168 |
+
"successes": 416
|
| 1169 |
+
},
|
| 1170 |
+
"unseen": {
|
| 1171 |
+
"episodes": 500,
|
| 1172 |
+
"successes": 178
|
| 1173 |
+
}
|
| 1174 |
+
},
|
| 1175 |
+
"metrics": {
|
| 1176 |
+
"clean": {
|
| 1177 |
+
"completed": 500,
|
| 1178 |
+
"mean_episode_wall_seconds": 32.501751442580485,
|
| 1179 |
+
"planned": 500,
|
| 1180 |
+
"success_rate_among_completed": 0.832,
|
| 1181 |
+
"successes": 416
|
| 1182 |
+
},
|
| 1183 |
+
"overall": {
|
| 1184 |
+
"completed": 1000,
|
| 1185 |
+
"mean_episode_wall_seconds": 41.383597164122506,
|
| 1186 |
+
"planned": 1000,
|
| 1187 |
+
"success_rate_among_completed": 0.594,
|
| 1188 |
+
"successes": 594
|
| 1189 |
+
},
|
| 1190 |
+
"randomized": {
|
| 1191 |
+
"completed": 500,
|
| 1192 |
+
"mean_episode_wall_seconds": 50.26544288566453,
|
| 1193 |
+
"planned": 500,
|
| 1194 |
+
"success_rate_among_completed": 0.356,
|
| 1195 |
+
"successes": 178
|
| 1196 |
+
}
|
| 1197 |
+
},
|
| 1198 |
+
"render_gpu": "NVIDIA GeForce RTX 5090 32GB",
|
| 1199 |
+
"subset_commit": "b5abe512dafd400736c6dca5905f2fd262dd9029",
|
| 1200 |
+
"subset_id": "robotwin-eval-subset-v2-seen-unseen",
|
| 1201 |
+
"workers": [
|
| 1202 |
+
6
|
| 1203 |
+
]
|
| 1204 |
+
},
|
| 1205 |
+
"repo_id": "ar-mine/lingbot-vla-v2-6b-e5-c3-epoch6-step17178",
|
| 1206 |
+
"training": {
|
| 1207 |
+
"automatic_restarts": 0,
|
| 1208 |
+
"epochs": 6,
|
| 1209 |
+
"frames": 549787,
|
| 1210 |
+
"global_batch_size": 192,
|
| 1211 |
+
"gpu_count": 8,
|
| 1212 |
+
"gpu_model": "NVIDIA A100-SXM4-40GB",
|
| 1213 |
+
"gpu_vram_mib": 40960,
|
| 1214 |
+
"gpus_per_node": 4,
|
| 1215 |
+
"gradient_accumulation_steps": 2,
|
| 1216 |
+
"held_out_trajectories": 0,
|
| 1217 |
+
"initialization": "official_base_fresh",
|
| 1218 |
+
"last_training_loss": 0.018779754638671875,
|
| 1219 |
+
"micro_batch_size": 12,
|
| 1220 |
+
"nodes": 2,
|
| 1221 |
+
"optimizer_steps": 17178,
|
| 1222 |
+
"requested_cpus_per_node": 64,
|
| 1223 |
+
"requested_memory_gb_per_node": 440,
|
| 1224 |
+
"source_archive_sha256": "77c95a4d09b5dc44358b46c3598203f09d1f1de26540e2883c15039212816c0a",
|
| 1225 |
+
"training_cpu_model": "not captured in preserved allocation/binding record",
|
| 1226 |
+
"training_seconds": 165183.77823376656,
|
| 1227 |
+
"trajectories": 2500,
|
| 1228 |
+
"validation_enabled": false
|
| 1229 |
+
}
|
| 1230 |
+
}
|
| 1231 |
+
},
|
| 1232 |
+
"pairing": {
|
| 1233 |
+
"initial_observation_hash_mismatches": 0,
|
| 1234 |
+
"scope": "All 1000 accepted initial RGB and public state hashes match between endpoints; policy failures accepted, infrastructure retries excluded.",
|
| 1235 |
+
"shared_episode_ids": 1000
|
| 1236 |
+
}
|
| 1237 |
+
}
|
SOURCE_MANIFEST.json
ADDED
|
@@ -0,0 +1,1410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"files": {
|
| 3 |
+
"configs/augmentation/c3_v1.json": {
|
| 4 |
+
"export_sha256": "754827db7505595b161976eac53cba51f00a592f884bfb8434d7b5f4a7781904",
|
| 5 |
+
"original_sha256": "754827db7505595b161976eac53cba51f00a592f884bfb8434d7b5f4a7781904"
|
| 6 |
+
},
|
| 7 |
+
"configs/ep2_training.yaml": {
|
| 8 |
+
"export_sha256": "e268943fc0f87701a40f58fcd095e0452eae2d51f1b836c301e52ad0d318d92b",
|
| 9 |
+
"original_sha256": "8c3f404cc690bb491e1b1b50f6a8a162b2a4d2c1cc6a8093a1f31070c501bf37"
|
| 10 |
+
},
|
| 11 |
+
"configs/ep6_training.yaml": {
|
| 12 |
+
"export_sha256": "f39cd9bbadfaea705e0b6647e9a869cdc40140907dba8bd369db1edd8ee17701",
|
| 13 |
+
"original_sha256": "a6c804837d3cdb1d140e9acd49db8ae0ff9926eac46c399a63b0aa213e61799b"
|
| 14 |
+
},
|
| 15 |
+
"configs/phase4_robot_configs/robotwin.yaml": {
|
| 16 |
+
"export_sha256": "4c9d1b13a6d757fd4d6fa04a0646e264e6d3a9929b6adce2fbe3296945dcc4b6",
|
| 17 |
+
"original_sha256": "4c9d1b13a6d757fd4d6fa04a0646e264e6d3a9929b6adce2fbe3296945dcc4b6"
|
| 18 |
+
},
|
| 19 |
+
"deployment/finetune/e5_8gpu_rank_entry.py": {
|
| 20 |
+
"export_sha256": "4f41a23cb82b19649fc09bd149196b448f3d616cee5b2e37b93ef082f8485f6a",
|
| 21 |
+
"original_sha256": "4f41a23cb82b19649fc09bd149196b448f3d616cee5b2e37b93ef082f8485f6a"
|
| 22 |
+
},
|
| 23 |
+
"deployment/finetune/e5_rank_entry.py": {
|
| 24 |
+
"export_sha256": "40d9de5125b987978d60a4cdda8e14b17ac5eedf26bfb856b7da288368621d08",
|
| 25 |
+
"original_sha256": "40d9de5125b987978d60a4cdda8e14b17ac5eedf26bfb856b7da288368621d08"
|
| 26 |
+
},
|
| 27 |
+
"manifests/e5_allclean_train.txt": {
|
| 28 |
+
"export_sha256": "373d8406d26cc429b08bc1c120fd8e03586beb5391029024e3b05a687a88778d",
|
| 29 |
+
"original_sha256": "000344f11cf60771a0b39685f82442aea54b19563872429cc9acd6361e613491"
|
| 30 |
+
},
|
| 31 |
+
"manifests/norm_stats/robotwin_clean_train_s7.json": {
|
| 32 |
+
"export_sha256": "51f709ad7b1c9f5b0d94711b96ed4eb56a711791b5720f8291ac1cb727990205",
|
| 33 |
+
"original_sha256": "51f709ad7b1c9f5b0d94711b96ed4eb56a711791b5720f8291ac1cb727990205"
|
| 34 |
+
},
|
| 35 |
+
"scripts/e5_rollout_history.py": {
|
| 36 |
+
"export_sha256": "fd0b6aca5d856af136fd6445d2e3284e38be38aade26444e50144d237fc2dd8e",
|
| 37 |
+
"original_ep2_sha256": "fd0b6aca5d856af136fd6445d2e3284e38be38aade26444e50144d237fc2dd8e",
|
| 38 |
+
"original_ep6_sha256": "fd0b6aca5d856af136fd6445d2e3284e38be38aade26444e50144d237fc2dd8e"
|
| 39 |
+
},
|
| 40 |
+
"scripts/eval_common.py": {
|
| 41 |
+
"export_sha256": "f35f0dbc45e0d2fc171b4658d3dd829275298942266e8bad6a45d43e7d344780",
|
| 42 |
+
"original_ep2_sha256": "f35f0dbc45e0d2fc171b4658d3dd829275298942266e8bad6a45d43e7d344780",
|
| 43 |
+
"original_ep6_sha256": "f35f0dbc45e0d2fc171b4658d3dd829275298942266e8bad6a45d43e7d344780"
|
| 44 |
+
},
|
| 45 |
+
"scripts/eval_device.py": {
|
| 46 |
+
"export_sha256": "dc356debea6ef97a19b0e5eb6af24c78f50c8f9e1e7fa0744e682c1b8e07edf8",
|
| 47 |
+
"original_ep2_sha256": "dc356debea6ef97a19b0e5eb6af24c78f50c8f9e1e7fa0744e682c1b8e07edf8",
|
| 48 |
+
"original_ep6_sha256": "dc356debea6ef97a19b0e5eb6af24c78f50c8f9e1e7fa0744e682c1b8e07edf8"
|
| 49 |
+
},
|
| 50 |
+
"scripts/eval_diagnostics.py": {
|
| 51 |
+
"export_sha256": "67076271605ee6bdf454dd51eb6f3944b7fa545dd63eb35874f55b9f526dccfc",
|
| 52 |
+
"original_ep2_sha256": "67076271605ee6bdf454dd51eb6f3944b7fa545dd63eb35874f55b9f526dccfc",
|
| 53 |
+
"original_ep6_sha256": "67076271605ee6bdf454dd51eb6f3944b7fa545dd63eb35874f55b9f526dccfc"
|
| 54 |
+
},
|
| 55 |
+
"scripts/eval_model_registry.py": {
|
| 56 |
+
"export_sha256": "b18f4d3496e3e8c82e673124be98ec44fdd21cf330ec8d051a6b6ae3206947f7",
|
| 57 |
+
"original_ep2_sha256": "d0c9e13312627b45f5e4ced4d25acecfb46d2214c90edd1c8654accc51488b42",
|
| 58 |
+
"original_ep6_sha256": "aace6c808f32d1279ad06e6ff187e54f001c812df2cf4deb5947f8e87848821c"
|
| 59 |
+
},
|
| 60 |
+
"scripts/eval_official_worker.py": {
|
| 61 |
+
"export_sha256": "ba5f676fc221ed839ac67c8c6feb188dc6bb4ba311374ee1dc57308480d980a6",
|
| 62 |
+
"original_ep2_sha256": "ba5f676fc221ed839ac67c8c6feb188dc6bb4ba311374ee1dc57308480d980a6",
|
| 63 |
+
"original_ep6_sha256": "ba5f676fc221ed839ac67c8c6feb188dc6bb4ba311374ee1dc57308480d980a6"
|
| 64 |
+
},
|
| 65 |
+
"scripts/eval_planner_optimization.py": {
|
| 66 |
+
"export_sha256": "e7311bd1ed2bc9b30eb14643e6f46b9ed45d71439c789cd484eedd3e00a53f10",
|
| 67 |
+
"original_ep2_sha256": "e7311bd1ed2bc9b30eb14643e6f46b9ed45d71439c789cd484eedd3e00a53f10",
|
| 68 |
+
"original_ep6_sha256": "e7311bd1ed2bc9b30eb14643e6f46b9ed45d71439c789cd484eedd3e00a53f10"
|
| 69 |
+
},
|
| 70 |
+
"scripts/frozen_eval_subset.py": {
|
| 71 |
+
"export_sha256": "ebc42c0388f8daf4f7a7cc709b97d8a9ddd4c125651d301a408db100828f1b37",
|
| 72 |
+
"original_ep2_sha256": "ebc42c0388f8daf4f7a7cc709b97d8a9ddd4c125651d301a408db100828f1b37",
|
| 73 |
+
"original_ep6_sha256": "ebc42c0388f8daf4f7a7cc709b97d8a9ddd4c125651d301a408db100828f1b37"
|
| 74 |
+
},
|
| 75 |
+
"scripts/hybrid_capacity_telemetry.py": {
|
| 76 |
+
"export_sha256": "e018c8e580a773437793219aecc74974848adc4468f138735c4fabf5487b1c19",
|
| 77 |
+
"original_ep2_sha256": "e018c8e580a773437793219aecc74974848adc4468f138735c4fabf5487b1c19",
|
| 78 |
+
"original_ep6_sha256": "e018c8e580a773437793219aecc74974848adc4468f138735c4fabf5487b1c19"
|
| 79 |
+
},
|
| 80 |
+
"scripts/hybrid_concurrent_server.py": {
|
| 81 |
+
"export_sha256": "1e4f18ccf699473c2d634dc34e876805bc8dd5f19ce1d4bac370a5405668704d",
|
| 82 |
+
"original_ep2_sha256": "1e4f18ccf699473c2d634dc34e876805bc8dd5f19ce1d4bac370a5405668704d",
|
| 83 |
+
"original_ep6_sha256": "1e4f18ccf699473c2d634dc34e876805bc8dd5f19ce1d4bac370a5405668704d"
|
| 84 |
+
},
|
| 85 |
+
"scripts/hybrid_transport.py": {
|
| 86 |
+
"export_sha256": "992683fb8e927959d40deafbad7dbe6a15c19d1f13bccc409b2b47669ca3a13a",
|
| 87 |
+
"original_ep2_sha256": "992683fb8e927959d40deafbad7dbe6a15c19d1f13bccc409b2b47669ca3a13a",
|
| 88 |
+
"original_ep6_sha256": "992683fb8e927959d40deafbad7dbe6a15c19d1f13bccc409b2b47669ca3a13a"
|
| 89 |
+
},
|
| 90 |
+
"scripts/hybrid_worker.py": {
|
| 91 |
+
"export_sha256": "ca20e8fff75652e9438d66fbddec2ceec27ae2c762268902af87a8cac88734da",
|
| 92 |
+
"original_ep2_sha256": "ca20e8fff75652e9438d66fbddec2ceec27ae2c762268902af87a8cac88734da",
|
| 93 |
+
"original_ep6_sha256": "ca20e8fff75652e9438d66fbddec2ceec27ae2c762268902af87a8cac88734da"
|
| 94 |
+
},
|
| 95 |
+
"scripts/release_eval.py": {
|
| 96 |
+
"export_sha256": "399bd3684c3c8fed493640484346a2f74efb71f0236130b66d39f61a035cebca",
|
| 97 |
+
"origin": "new_release_wrapper"
|
| 98 |
+
},
|
| 99 |
+
"scripts/serve_eval_policy.py": {
|
| 100 |
+
"export_sha256": "e490b53916c159b744e578cd83761a63faf53d33e63ac74aca46c261264e6c72",
|
| 101 |
+
"original_ep2_sha256": "e490b53916c159b744e578cd83761a63faf53d33e63ac74aca46c261264e6c72",
|
| 102 |
+
"original_ep6_sha256": "e490b53916c159b744e578cd83761a63faf53d33e63ac74aca46c261264e6c72"
|
| 103 |
+
},
|
| 104 |
+
"scripts/serve_hybrid_concurrent_policy.py": {
|
| 105 |
+
"export_sha256": "65fc3c90d778425dd7e4b04417af38e1b4d87c64117d8e3d1788ebe813c1f7d5",
|
| 106 |
+
"original_ep2_sha256": "65fc3c90d778425dd7e4b04417af38e1b4d87c64117d8e3d1788ebe813c1f7d5",
|
| 107 |
+
"original_ep6_sha256": "65fc3c90d778425dd7e4b04417af38e1b4d87c64117d8e3d1788ebe813c1f7d5"
|
| 108 |
+
},
|
| 109 |
+
"src/lora_eval_loading.py": {
|
| 110 |
+
"export_sha256": "0de7d45c11687311e1a165bbcf149a84234d1e989043760499ba11bb7eeca1ab",
|
| 111 |
+
"original_ep2_sha256": "0de7d45c11687311e1a165bbcf149a84234d1e989043760499ba11bb7eeca1ab",
|
| 112 |
+
"original_ep6_sha256": "0de7d45c11687311e1a165bbcf149a84234d1e989043760499ba11bb7eeca1ab"
|
| 113 |
+
},
|
| 114 |
+
"src/lora_eval_policy.py": {
|
| 115 |
+
"export_sha256": "da5e682843e77ce2b73995a7fbce544d678c6ad016325bf31cc8a2e6bb1ce8dc",
|
| 116 |
+
"original_ep2_sha256": "da5e682843e77ce2b73995a7fbce544d678c6ad016325bf31cc8a2e6bb1ce8dc",
|
| 117 |
+
"original_ep6_sha256": "da5e682843e77ce2b73995a7fbce544d678c6ad016325bf31cc8a2e6bb1ce8dc"
|
| 118 |
+
},
|
| 119 |
+
"src/phase4_policy.py": {
|
| 120 |
+
"export_sha256": "b19d4d754a54cac1fc53346e8ac639d3377a8ec48e37d5b2aa7af15233ce0259",
|
| 121 |
+
"original_ep2_sha256": "b19d4d754a54cac1fc53346e8ac639d3377a8ec48e37d5b2aa7af15233ce0259",
|
| 122 |
+
"original_ep6_sha256": "b19d4d754a54cac1fc53346e8ac639d3377a8ec48e37d5b2aa7af15233ce0259"
|
| 123 |
+
},
|
| 124 |
+
"third_party/lingbot-vla-v2/LICENSE": {
|
| 125 |
+
"export_sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
|
| 126 |
+
"original_sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
|
| 127 |
+
},
|
| 128 |
+
"third_party/lingbot-vla-v2/configs/robot_configs/agilex_cobot_magic.yaml": {
|
| 129 |
+
"export_sha256": "8ab06b150fe28d7f0f90e67df445325d6b31d4a11929b46b7e06159d94922baa",
|
| 130 |
+
"original_sha256": "8ab06b150fe28d7f0f90e67df445325d6b31d4a11929b46b7e06159d94922baa"
|
| 131 |
+
},
|
| 132 |
+
"third_party/lingbot-vla-v2/configs/robot_configs/robotwin.yaml": {
|
| 133 |
+
"export_sha256": "2c2a26509fc9662a8ada64adaa7fa959627dd6dadc6b48b680c4285da2d8ffd8",
|
| 134 |
+
"original_sha256": "2c2a26509fc9662a8ada64adaa7fa959627dd6dadc6b48b680c4285da2d8ffd8"
|
| 135 |
+
},
|
| 136 |
+
"third_party/lingbot-vla-v2/configs/vla/norm_compute/post_data.yaml": {
|
| 137 |
+
"export_sha256": "8d1537aedf05f030c00cf8c1ddad9919d9e609148cdbb3927925682f6c109c41",
|
| 138 |
+
"original_sha256": "8d1537aedf05f030c00cf8c1ddad9919d9e609148cdbb3927925682f6c109c41"
|
| 139 |
+
},
|
| 140 |
+
"third_party/lingbot-vla-v2/configs/vla/real_robot/real_robot.yaml": {
|
| 141 |
+
"export_sha256": "8d5ddcd1d6caa846c4c0442cc3e9ea3f25078c6f274536d1ee1caadb560d8124",
|
| 142 |
+
"original_sha256": "8d5ddcd1d6caa846c4c0442cc3e9ea3f25078c6f274536d1ee1caadb560d8124"
|
| 143 |
+
},
|
| 144 |
+
"third_party/lingbot-vla-v2/configs/vla/robotwin/robotwin.yaml": {
|
| 145 |
+
"export_sha256": "ee915e4ad34589a6def35c9e3c12bb8ff7d9f768dfc7ad44ce789fa7aaea57e2",
|
| 146 |
+
"original_sha256": "ee915e4ad34589a6def35c9e3c12bb8ff7d9f768dfc7ad44ce789fa7aaea57e2"
|
| 147 |
+
},
|
| 148 |
+
"third_party/lingbot-vla-v2/deploy/__init__.py": {
|
| 149 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 150 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 151 |
+
},
|
| 152 |
+
"third_party/lingbot-vla-v2/deploy/executed_action_history.py": {
|
| 153 |
+
"export_sha256": "8b657fe5da0b29e1930c51aac234802021ce3eb2afd248461dba6b075044f294",
|
| 154 |
+
"original_sha256": "8b657fe5da0b29e1930c51aac234802021ce3eb2afd248461dba6b075044f294"
|
| 155 |
+
},
|
| 156 |
+
"third_party/lingbot-vla-v2/deploy/image_tools.py": {
|
| 157 |
+
"export_sha256": "d48b4bd7f44e79fe6db8a8e07c9161144fa250be686e1245014a8b47e6171977",
|
| 158 |
+
"original_sha256": "d48b4bd7f44e79fe6db8a8e07c9161144fa250be686e1245014a8b47e6171977"
|
| 159 |
+
},
|
| 160 |
+
"third_party/lingbot-vla-v2/deploy/lingbot_vla_v2_policy.py": {
|
| 161 |
+
"export_sha256": "008e0e3aab20a5a2c70131a868226308d59320020f11c1bd19a3c51b62641a9e",
|
| 162 |
+
"original_sha256": "13599b07e83086e7cffe69a64eda00f2377e0c2ade2fd9b3675fb0a3e11ade10"
|
| 163 |
+
},
|
| 164 |
+
"third_party/lingbot-vla-v2/deploy/msgpack_numpy.py": {
|
| 165 |
+
"export_sha256": "c04568948fcee52b691e3be4b6cffb759f7e79ad67530fcd5d23095a0d13c057",
|
| 166 |
+
"original_sha256": "c04568948fcee52b691e3be4b6cffb759f7e79ad67530fcd5d23095a0d13c057"
|
| 167 |
+
},
|
| 168 |
+
"third_party/lingbot-vla-v2/deploy/utils.py": {
|
| 169 |
+
"export_sha256": "b90a4d367dcef61cfb86d85e9103af067ab8b8df99c71b597495e573b5bc991e",
|
| 170 |
+
"original_sha256": "b90a4d367dcef61cfb86d85e9103af067ab8b8df99c71b597495e573b5bc991e"
|
| 171 |
+
},
|
| 172 |
+
"third_party/lingbot-vla-v2/deploy/websocket_client_policy.py": {
|
| 173 |
+
"export_sha256": "4642c7ab25494b3113372b5abdeaffab9c15b8d31a33c8b7c89df658fdca4151",
|
| 174 |
+
"original_sha256": "4642c7ab25494b3113372b5abdeaffab9c15b8d31a33c8b7c89df658fdca4151"
|
| 175 |
+
},
|
| 176 |
+
"third_party/lingbot-vla-v2/deploy/websocket_policy_server.py": {
|
| 177 |
+
"export_sha256": "67bebd23c6d82803f89978a79de7829bd32a62f4c32e485e6e0540204ede565b",
|
| 178 |
+
"original_sha256": "67bebd23c6d82803f89978a79de7829bd32a62f4c32e485e6e0540204ede565b"
|
| 179 |
+
},
|
| 180 |
+
"third_party/lingbot-vla-v2/lingbotvla/__init__.py": {
|
| 181 |
+
"export_sha256": "fcfeb5547f909133485a146441ddcc3072447063914eace4793e487967a88f78",
|
| 182 |
+
"original_sha256": "fcfeb5547f909133485a146441ddcc3072447063914eace4793e487967a88f78"
|
| 183 |
+
},
|
| 184 |
+
"third_party/lingbot-vla-v2/lingbotvla/checkpoint/__init__.py": {
|
| 185 |
+
"export_sha256": "5b68a96dcd313876a211b3023e3e9dbbbedff96b6d5bddfd155c910525d89f96",
|
| 186 |
+
"original_sha256": "5b68a96dcd313876a211b3023e3e9dbbbedff96b6d5bddfd155c910525d89f96"
|
| 187 |
+
},
|
| 188 |
+
"third_party/lingbot-vla-v2/lingbotvla/checkpoint/checkpointer.py": {
|
| 189 |
+
"export_sha256": "152532e120534e95342ec7398e1aae691714093ad0363b95e17363f908a68871",
|
| 190 |
+
"original_sha256": "152532e120534e95342ec7398e1aae691714093ad0363b95e17363f908a68871"
|
| 191 |
+
},
|
| 192 |
+
"third_party/lingbot-vla-v2/lingbotvla/checkpoint/format_utils.py": {
|
| 193 |
+
"export_sha256": "25dc1eead76e7cbf1d773196927f472d452efebc4eef53a586ea5d257941e2b5",
|
| 194 |
+
"original_sha256": "25dc1eead76e7cbf1d773196927f472d452efebc4eef53a586ea5d257941e2b5"
|
| 195 |
+
},
|
| 196 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/__init__.py": {
|
| 197 |
+
"export_sha256": "db4230123017f1d3f684b402e46b8d94bdd6583f9bc18100c7401855a2b4af2b",
|
| 198 |
+
"original_sha256": "db4230123017f1d3f684b402e46b8d94bdd6583f9bc18100c7401855a2b4af2b"
|
| 199 |
+
},
|
| 200 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/batching_strategy.py": {
|
| 201 |
+
"export_sha256": "3fae066e32fc83d4df3a15a333bd30d1e4800886c750ade9bd0921a5e569960b",
|
| 202 |
+
"original_sha256": "3fae066e32fc83d4df3a15a333bd30d1e4800886c750ade9bd0921a5e569960b"
|
| 203 |
+
},
|
| 204 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/chat_template.py": {
|
| 205 |
+
"export_sha256": "54fa29e91838dbab619dc33e9c8619948c0778ac7b1037b7674acfd7930c2126",
|
| 206 |
+
"original_sha256": "54fa29e91838dbab619dc33e9c8619948c0778ac7b1037b7674acfd7930c2126"
|
| 207 |
+
},
|
| 208 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/constants.py": {
|
| 209 |
+
"export_sha256": "126d4dae9fe60353d4ff3f8a94cb2be0bd1a2ea769771106ce6f73a48c7dd77e",
|
| 210 |
+
"original_sha256": "126d4dae9fe60353d4ff3f8a94cb2be0bd1a2ea769771106ce6f73a48c7dd77e"
|
| 211 |
+
},
|
| 212 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/data_collator.py": {
|
| 213 |
+
"export_sha256": "02505732b0143c39271b38b215d7d72a197f9f95fa9cf9d5e6f18ded51b2cefa",
|
| 214 |
+
"original_sha256": "02505732b0143c39271b38b215d7d72a197f9f95fa9cf9d5e6f18ded51b2cefa"
|
| 215 |
+
},
|
| 216 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/data_loader.py": {
|
| 217 |
+
"export_sha256": "3e50b30313a5178295ccc524cbb17cda40fbb0d7c18b85736d2ab1599fabe819",
|
| 218 |
+
"original_sha256": "3e50b30313a5178295ccc524cbb17cda40fbb0d7c18b85736d2ab1599fabe819"
|
| 219 |
+
},
|
| 220 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/data_transform.py": {
|
| 221 |
+
"export_sha256": "6dd6ab7d3a02a243b548b297045500e8310cdfb7f3fffa493be4027232fabb56",
|
| 222 |
+
"original_sha256": "6dd6ab7d3a02a243b548b297045500e8310cdfb7f3fffa493be4027232fabb56"
|
| 223 |
+
},
|
| 224 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/dataset.py": {
|
| 225 |
+
"export_sha256": "120991b363c4c4457546de56913d9fb6d5fbcf433a790dba0bc28ff96df15809",
|
| 226 |
+
"original_sha256": "120991b363c4c4457546de56913d9fb6d5fbcf433a790dba0bc28ff96df15809"
|
| 227 |
+
},
|
| 228 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/dynamic_batching.py": {
|
| 229 |
+
"export_sha256": "e5fadeaf804fc78054ca836b3fb21c7f73e1fb9e934519bd06bb88bcbee06416",
|
| 230 |
+
"original_sha256": "e5fadeaf804fc78054ca836b3fb21c7f73e1fb9e934519bd06bb88bcbee06416"
|
| 231 |
+
},
|
| 232 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/multimodal/__init__.py": {
|
| 233 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 234 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 235 |
+
},
|
| 236 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/multimodal/data_collator.py": {
|
| 237 |
+
"export_sha256": "b59b5171481d8b16540279d700d4afc7a1270d40e8e8de959930001753158cef",
|
| 238 |
+
"original_sha256": "b59b5171481d8b16540279d700d4afc7a1270d40e8e8de959930001753158cef"
|
| 239 |
+
},
|
| 240 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/multimodal/multimodal_chat_template.py": {
|
| 241 |
+
"export_sha256": "4088ff01a8748e7c21024b2966068d98724fd30930f29eb0287be0925561e9d4",
|
| 242 |
+
"original_sha256": "4088ff01a8748e7c21024b2966068d98724fd30930f29eb0287be0925561e9d4"
|
| 243 |
+
},
|
| 244 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/multimodal/multimodal_transform.py": {
|
| 245 |
+
"export_sha256": "1dbd3e1fba5a50249b440a3f5aa4f32595726d94419a16ad95b758407a2b1de3",
|
| 246 |
+
"original_sha256": "1dbd3e1fba5a50249b440a3f5aa4f32595726d94419a16ad95b758407a2b1de3"
|
| 247 |
+
},
|
| 248 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/multimodal/preprocess.py": {
|
| 249 |
+
"export_sha256": "d867f93a9d3b6fde2209bdf85dacea2a3d6ea3bf782b2c1bc096ac1dbbb4c950",
|
| 250 |
+
"original_sha256": "d867f93a9d3b6fde2209bdf85dacea2a3d6ea3bf782b2c1bc096ac1dbbb4c950"
|
| 251 |
+
},
|
| 252 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/__init__.py": {
|
| 253 |
+
"export_sha256": "362282de0f8ac1ab332571a3e52ad29e40430a9cd43c7f1f7de003a0d77abb67",
|
| 254 |
+
"original_sha256": "362282de0f8ac1ab332571a3e52ad29e40430a9cd43c7f1f7de003a0d77abb67"
|
| 255 |
+
},
|
| 256 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/base_dataset.py": {
|
| 257 |
+
"export_sha256": "8f05c17b13752233085a38d05cae7f456b0bf47d758d14beb099af0b611c922c",
|
| 258 |
+
"original_sha256": "8f05c17b13752233085a38d05cae7f456b0bf47d758d14beb099af0b611c922c"
|
| 259 |
+
},
|
| 260 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/c3_augmentation.py": {
|
| 261 |
+
"export_sha256": "82e917b8170a93f64913672ac5081fc2f4a2710801359babfa0f9fffbef3dd92",
|
| 262 |
+
"original_sha256": "82e917b8170a93f64913672ac5081fc2f4a2710801359babfa0f9fffbef3dd92"
|
| 263 |
+
},
|
| 264 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/ee_pose_transform.py": {
|
| 265 |
+
"export_sha256": "07a54ad75ca3bb0a7f65ab8e726452548679ae272d960c20b742c5222f13ea53",
|
| 266 |
+
"original_sha256": "07a54ad75ca3bb0a7f65ab8e726452548679ae272d960c20b742c5222f13ea53"
|
| 267 |
+
},
|
| 268 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/multi_vla_dataset.py": {
|
| 269 |
+
"export_sha256": "c484c0c10236b35eb133fdc3cb9488fe7c0df0bde4830cdf545b96d3f7de5085",
|
| 270 |
+
"original_sha256": "c484c0c10236b35eb133fdc3cb9488fe7c0df0bde4830cdf545b96d3f7de5085"
|
| 271 |
+
},
|
| 272 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/transform.py": {
|
| 273 |
+
"export_sha256": "e8f237c99ebf6cb4b16178b9bca7fba147337071f004aca8a135ac11f8ca2e49",
|
| 274 |
+
"original_sha256": "e8f237c99ebf6cb4b16178b9bca7fba147337071f004aca8a135ac11f8ca2e49"
|
| 275 |
+
},
|
| 276 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/utils.py": {
|
| 277 |
+
"export_sha256": "d047281b00bb8fb4cfa594ed0704840a8125fab28f9da91b97d45bb1eed2c7c9",
|
| 278 |
+
"original_sha256": "d047281b00bb8fb4cfa594ed0704840a8125fab28f9da91b97d45bb1eed2c7c9"
|
| 279 |
+
},
|
| 280 |
+
"third_party/lingbot-vla-v2/lingbotvla/data/vla_data/video_utils.py": {
|
| 281 |
+
"export_sha256": "016244862ef3bae740ecd55314028dc64c09893553bea2d639dd7b0273110746",
|
| 282 |
+
"original_sha256": "016244862ef3bae740ecd55314028dc64c09893553bea2d639dd7b0273110746"
|
| 283 |
+
},
|
| 284 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/__init__.py": {
|
| 285 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 286 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 287 |
+
},
|
| 288 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/checkpoint.py": {
|
| 289 |
+
"export_sha256": "e6c98c3ed48849d79d1f981ab65b8f19011120391ef8f4734e13bf8b12630f8d",
|
| 290 |
+
"original_sha256": "e6c98c3ed48849d79d1f981ab65b8f19011120391ef8f4734e13bf8b12630f8d"
|
| 291 |
+
},
|
| 292 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/fsdp/__init__.py": {
|
| 293 |
+
"export_sha256": "ea33030a80e0bf61602e39e8e08fbe612197ba71a9c805eadb7f98afd6409287",
|
| 294 |
+
"original_sha256": "ea33030a80e0bf61602e39e8e08fbe612197ba71a9c805eadb7f98afd6409287"
|
| 295 |
+
},
|
| 296 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/fsdp/clip_grad_norm.py": {
|
| 297 |
+
"export_sha256": "bea38ed7ca18f5cd68f1b68407dbe6e5d0ec30ca0086a7c8712ae16decb8775a",
|
| 298 |
+
"original_sha256": "bea38ed7ca18f5cd68f1b68407dbe6e5d0ec30ca0086a7c8712ae16decb8775a"
|
| 299 |
+
},
|
| 300 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/fsdp/extension.py": {
|
| 301 |
+
"export_sha256": "3fa259f460f91b49ffb0974af08b26cee2a2b4b9626e7dc20f73de704f9ea8f1",
|
| 302 |
+
"original_sha256": "3fa259f460f91b49ffb0974af08b26cee2a2b4b9626e7dc20f73de704f9ea8f1"
|
| 303 |
+
},
|
| 304 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/fsdp/initialize.py": {
|
| 305 |
+
"export_sha256": "54ed6958c2be1cb1a0d43d6e33cfe9aa2037273bd8239ecc11410581b1c362bb",
|
| 306 |
+
"original_sha256": "54ed6958c2be1cb1a0d43d6e33cfe9aa2037273bd8239ecc11410581b1c362bb"
|
| 307 |
+
},
|
| 308 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/fsdp2/__init__.py": {
|
| 309 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 310 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 311 |
+
},
|
| 312 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/fsdp2/clip_grad_norm.py": {
|
| 313 |
+
"export_sha256": "0743ff0c1f175cafcd2d57cbf78031b8ed97472acf5e98d3fea1dae375a9874f",
|
| 314 |
+
"original_sha256": "0743ff0c1f175cafcd2d57cbf78031b8ed97472acf5e98d3fea1dae375a9874f"
|
| 315 |
+
},
|
| 316 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/moe/__init__.py": {
|
| 317 |
+
"export_sha256": "1dcf10d80db3716f81de18b07bbccb9d7d4f31d4204e60e8deceacc1f587c31a",
|
| 318 |
+
"original_sha256": "1dcf10d80db3716f81de18b07bbccb9d7d4f31d4204e60e8deceacc1f587c31a"
|
| 319 |
+
},
|
| 320 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/moe/comm.py": {
|
| 321 |
+
"export_sha256": "6c4a676ae00ae8bbbb4fd9e939b32cd8a08dd0f34bead8171656731dd5ff1b99",
|
| 322 |
+
"original_sha256": "6c4a676ae00ae8bbbb4fd9e939b32cd8a08dd0f34bead8171656731dd5ff1b99"
|
| 323 |
+
},
|
| 324 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/moe/moe_layer.py": {
|
| 325 |
+
"export_sha256": "9941aae19371b8b06ba34f0857403a901b78882f7f78fb50f01654a159d49764",
|
| 326 |
+
"original_sha256": "9941aae19371b8b06ba34f0857403a901b78882f7f78fb50f01654a159d49764"
|
| 327 |
+
},
|
| 328 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/moe/moe_utils.py": {
|
| 329 |
+
"export_sha256": "ae70dfd57a1ca723a606ed1d934743f71f6847b30b00595e536151bbf921a49d",
|
| 330 |
+
"original_sha256": "ae70dfd57a1ca723a606ed1d934743f71f6847b30b00595e536151bbf921a49d"
|
| 331 |
+
},
|
| 332 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/offloading.py": {
|
| 333 |
+
"export_sha256": "044511219c31a33df46f381a40d5bca9dd5aea8ff6ee4cce6aaf5bea5c2688aa",
|
| 334 |
+
"original_sha256": "044511219c31a33df46f381a40d5bca9dd5aea8ff6ee4cce6aaf5bea5c2688aa"
|
| 335 |
+
},
|
| 336 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/parallel_plan.py": {
|
| 337 |
+
"export_sha256": "48e8da68e4cc70ac5e955fbf10340fe7b0a5c2442120c8344f85cb6e66554837",
|
| 338 |
+
"original_sha256": "48e8da68e4cc70ac5e955fbf10340fe7b0a5c2442120c8344f85cb6e66554837"
|
| 339 |
+
},
|
| 340 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/parallel_state.py": {
|
| 341 |
+
"export_sha256": "c15d7d0d509845a331ea5bc0503d7ebfac380a16b48d11ce4377ea6310b3dd7c",
|
| 342 |
+
"original_sha256": "c15d7d0d509845a331ea5bc0503d7ebfac380a16b48d11ce4377ea6310b3dd7c"
|
| 343 |
+
},
|
| 344 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/__init__.py": {
|
| 345 |
+
"export_sha256": "cba224d2e25125a28fabdd9dc43970460f8f1b288475672575379cdfe03ceaa7",
|
| 346 |
+
"original_sha256": "cba224d2e25125a28fabdd9dc43970460f8f1b288475672575379cdfe03ceaa7"
|
| 347 |
+
},
|
| 348 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/async_ulysses.py": {
|
| 349 |
+
"export_sha256": "052b86c46f281376b339811e9ea42f394a417d435a6b11a8b573d59a545aa3ac",
|
| 350 |
+
"original_sha256": "052b86c46f281376b339811e9ea42f394a417d435a6b11a8b573d59a545aa3ac"
|
| 351 |
+
},
|
| 352 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/async_ulysses_dit.py": {
|
| 353 |
+
"export_sha256": "9a28b37253108aaf4d38e34cccb516a47d3f7f7065a8c7bb70f191e68e08bdef",
|
| 354 |
+
"original_sha256": "9a28b37253108aaf4d38e34cccb516a47d3f7f7065a8c7bb70f191e68e08bdef"
|
| 355 |
+
},
|
| 356 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/comm.py": {
|
| 357 |
+
"export_sha256": "aaee38fb444c6c4c9ae0e3f1e09e01da10808e299299e2d8be30fcf393ef1fd4",
|
| 358 |
+
"original_sha256": "aaee38fb444c6c4c9ae0e3f1e09e01da10808e299299e2d8be30fcf393ef1fd4"
|
| 359 |
+
},
|
| 360 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/data.py": {
|
| 361 |
+
"export_sha256": "ab1081840a5704894c8f622a4558b424acb6189bd180aa8ecfbe2a301ee14b35",
|
| 362 |
+
"original_sha256": "ab1081840a5704894c8f622a4558b424acb6189bd180aa8ecfbe2a301ee14b35"
|
| 363 |
+
},
|
| 364 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/loss.py": {
|
| 365 |
+
"export_sha256": "4d5ab17b522bced7b693870dbf0953055cb33f441abdd7ef3e757a45530bdf2d",
|
| 366 |
+
"original_sha256": "4d5ab17b522bced7b693870dbf0953055cb33f441abdd7ef3e757a45530bdf2d"
|
| 367 |
+
},
|
| 368 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/ulysses.py": {
|
| 369 |
+
"export_sha256": "25836baadf5c08a567c65774c45e4eed082860dc74dda1740a0f8880b5dd1d11",
|
| 370 |
+
"original_sha256": "25836baadf5c08a567c65774c45e4eed082860dc74dda1740a0f8880b5dd1d11"
|
| 371 |
+
},
|
| 372 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/sequence_parallel/utils.py": {
|
| 373 |
+
"export_sha256": "5aa78940f3aa85aaea181528ac551d97a754034a7979b8ac4299965dc45a18dc",
|
| 374 |
+
"original_sha256": "5aa78940f3aa85aaea181528ac551d97a754034a7979b8ac4299965dc45a18dc"
|
| 375 |
+
},
|
| 376 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/torch_parallelize.py": {
|
| 377 |
+
"export_sha256": "00d6e229fc5587f6590cfab07e581f39ffe272715999946ee50ae35c14bb6e5f",
|
| 378 |
+
"original_sha256": "00d6e229fc5587f6590cfab07e581f39ffe272715999946ee50ae35c14bb6e5f"
|
| 379 |
+
},
|
| 380 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/utils.py": {
|
| 381 |
+
"export_sha256": "90638562bd7a2eb63595cc18bba1fc5dc93cb3520820a9ecbad3e30f53e615b3",
|
| 382 |
+
"original_sha256": "90638562bd7a2eb63595cc18bba1fc5dc93cb3520820a9ecbad3e30f53e615b3"
|
| 383 |
+
},
|
| 384 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/vescale_parallelize.py": {
|
| 385 |
+
"export_sha256": "a610275eceb40a0f1bcdc326b1eb3171aa9086b7a66b0b0c2ff0ee46ffba155c",
|
| 386 |
+
"original_sha256": "a610275eceb40a0f1bcdc326b1eb3171aa9086b7a66b0b0c2ff0ee46ffba155c"
|
| 387 |
+
},
|
| 388 |
+
"third_party/lingbot-vla-v2/lingbotvla/distributed/vescale_plan.py": {
|
| 389 |
+
"export_sha256": "a5c157cf81a5c200ac4bb7dd8e20674730f541973e66cc86bc0276eebb3ba067",
|
| 390 |
+
"original_sha256": "a5c157cf81a5c200ac4bb7dd8e20674730f541973e66cc86bc0276eebb3ba067"
|
| 391 |
+
},
|
| 392 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/__init__.py": {
|
| 393 |
+
"export_sha256": "e0d0fb7e7ac2f3e5fddbbea68dd4e06a2038dc723ce34a144d98307e61f2ad7e",
|
| 394 |
+
"original_sha256": "e0d0fb7e7ac2f3e5fddbbea68dd4e06a2038dc723ce34a144d98307e61f2ad7e"
|
| 395 |
+
},
|
| 396 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/auto.py": {
|
| 397 |
+
"export_sha256": "c7c01d27297eefdca3503fef0b2666662550c933c523a87e07597b5d8d2005f1",
|
| 398 |
+
"original_sha256": "c7c01d27297eefdca3503fef0b2666662550c933c523a87e07597b5d8d2005f1"
|
| 399 |
+
},
|
| 400 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/config_registry.py": {
|
| 401 |
+
"export_sha256": "3c5e1758e5c3acb0a9e28e1087b19424340cef614af7d99dd33ffd02b35c45ee",
|
| 402 |
+
"original_sha256": "3c5e1758e5c3acb0a9e28e1087b19424340cef614af7d99dd33ffd02b35c45ee"
|
| 403 |
+
},
|
| 404 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/loader.py": {
|
| 405 |
+
"export_sha256": "dbac5bb3d6a901bd2ff4ef6c362022cc0096eb3561521a8b9eeaa5ddd18c683e",
|
| 406 |
+
"original_sha256": "dbac5bb3d6a901bd2ff4ef6c362022cc0096eb3561521a8b9eeaa5ddd18c683e"
|
| 407 |
+
},
|
| 408 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/modeling_layers.py": {
|
| 409 |
+
"export_sha256": "9f86f23ced2d9111a5a6a8b6a388fe56554b18650f8dd5168c690e6a846b149b",
|
| 410 |
+
"original_sha256": "9f86f23ced2d9111a5a6a8b6a388fe56554b18650f8dd5168c690e6a846b149b"
|
| 411 |
+
},
|
| 412 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/module_utils.py": {
|
| 413 |
+
"export_sha256": "1a982c7b7ff7391197d4bdd564493424fe31f6acbb4e79acd7c35629af545789",
|
| 414 |
+
"original_sha256": "1a982c7b7ff7391197d4bdd564493424fe31f6acbb4e79acd7c35629af545789"
|
| 415 |
+
},
|
| 416 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/registry.py": {
|
| 417 |
+
"export_sha256": "25b2f06ac447fbbda79b04dbcda4260967d9a839ada35b6c721df2ef13a02f38",
|
| 418 |
+
"original_sha256": "25b2f06ac447fbbda79b04dbcda4260967d9a839ada35b6c721df2ef13a02f38"
|
| 419 |
+
},
|
| 420 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/__init__.py": {
|
| 421 |
+
"export_sha256": "8beb7f9e986cf86c79caabd9bf916a72287c7e7f18a2d9aa762740fd89cdb4b4",
|
| 422 |
+
"original_sha256": "8beb7f9e986cf86c79caabd9bf916a72287c7e7f18a2d9aa762740fd89cdb4b4"
|
| 423 |
+
},
|
| 424 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/__init__.py": {
|
| 425 |
+
"export_sha256": "24a6e4f8507703f4f3ae21f2206bc5ec6a713a6b76d171a43900a0cf932e38d7",
|
| 426 |
+
"original_sha256": "24a6e4f8507703f4f3ae21f2206bc5ec6a713a6b76d171a43900a0cf932e38d7"
|
| 427 |
+
},
|
| 428 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/action_history.py": {
|
| 429 |
+
"export_sha256": "b75ebf1f9ad92e45dd913b082857563c6dbb887109b3d66f96e7a14315172b7c",
|
| 430 |
+
"original_sha256": "b75ebf1f9ad92e45dd913b082857563c6dbb887109b3d66f96e7a14315172b7c"
|
| 431 |
+
},
|
| 432 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/configuration_lingbot_vla.py": {
|
| 433 |
+
"export_sha256": "3b94da5f5aa66abbbf594491582417679a93a07b5826e2da1e1e958964d87707",
|
| 434 |
+
"original_sha256": "3b94da5f5aa66abbbf594491582417679a93a07b5826e2da1e1e958964d87707"
|
| 435 |
+
},
|
| 436 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/flex_attention.py": {
|
| 437 |
+
"export_sha256": "c7ea18fc1b122e14b24775b4e0e983dbffc7dd0b02e91b03a5a1c4369eff3da9",
|
| 438 |
+
"original_sha256": "c7ea18fc1b122e14b24775b4e0e983dbffc7dd0b02e91b03a5a1c4369eff3da9"
|
| 439 |
+
},
|
| 440 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/modeling_lingbot_vla.py": {
|
| 441 |
+
"export_sha256": "af6a365f05e4ccd7d2585368412be5d186a3afdabfc6e9eaf0c97e71a51037dc",
|
| 442 |
+
"original_sha256": "af6a365f05e4ccd7d2585368412be5d186a3afdabfc6e9eaf0c97e71a51037dc"
|
| 443 |
+
},
|
| 444 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/modeling_lingbot_vla_v2.py": {
|
| 445 |
+
"export_sha256": "b17250f71e3c2af420e20308cd356440c23a448092221f8c32ff13ee034324a2",
|
| 446 |
+
"original_sha256": "b17250f71e3c2af420e20308cd356440c23a448092221f8c32ff13ee034324a2"
|
| 447 |
+
},
|
| 448 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/moe_load_balance.py": {
|
| 449 |
+
"export_sha256": "15dd33d388d503fc96b891e8ff2cb29415cefa5bb165f1450f847a7f0bbca833",
|
| 450 |
+
"original_sha256": "15dd33d388d503fc96b891e8ff2cb29415cefa5bb165f1450f847a7f0bbca833"
|
| 451 |
+
},
|
| 452 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/qwen2_action_expert.py": {
|
| 453 |
+
"export_sha256": "2221459c676c27eb70e13edd29d6e25c2c6008a1fc3f0b7c820b8abbbf11aff6",
|
| 454 |
+
"original_sha256": "2221459c676c27eb70e13edd29d6e25c2c6008a1fc3f0b7c820b8abbbf11aff6"
|
| 455 |
+
},
|
| 456 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/qwen3vl_in_vla.py": {
|
| 457 |
+
"export_sha256": "eb2202bd01916c891b366c90f9bf11a2782f9387031cc24ed08851b3d8f01e96",
|
| 458 |
+
"original_sha256": "eb2202bd01916c891b366c90f9bf11a2782f9387031cc24ed08851b3d8f01e96"
|
| 459 |
+
},
|
| 460 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/qwenvl_in_vla.py": {
|
| 461 |
+
"export_sha256": "6320cbc1c71cfd51b98258e92782d601d00f0b33035bf50979a299fbe29ba7c3",
|
| 462 |
+
"original_sha256": "6320cbc1c71cfd51b98258e92782d601d00f0b33035bf50979a299fbe29ba7c3"
|
| 463 |
+
},
|
| 464 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/state_history.py": {
|
| 465 |
+
"export_sha256": "5fedc852b0c10b14b9511e72ea8a4ccaff8cac234ab676414cfc30d4433124bf",
|
| 466 |
+
"original_sha256": "5fedc852b0c10b14b9511e72ea8a4ccaff8cac234ab676414cfc30d4433124bf"
|
| 467 |
+
},
|
| 468 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/utils.py": {
|
| 469 |
+
"export_sha256": "aa8d55137c17a1efa78d3a8124a131ddacf8166b56a2d8802f68bc04b434e747",
|
| 470 |
+
"original_sha256": "aa8d55137c17a1efa78d3a8124a131ddacf8166b56a2d8802f68bc04b434e747"
|
| 471 |
+
},
|
| 472 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/lingbot_vla/visual_history.py": {
|
| 473 |
+
"export_sha256": "29d2fa61e66aa37a5a7245588b57665de9d88bf869bb2889b6210865adbda391",
|
| 474 |
+
"original_sha256": "29d2fa61e66aa37a5a7245588b57665de9d88bf869bb2889b6210865adbda391"
|
| 475 |
+
},
|
| 476 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/pi0/__init__.py": {
|
| 477 |
+
"export_sha256": "24a6e4f8507703f4f3ae21f2206bc5ec6a713a6b76d171a43900a0cf932e38d7",
|
| 478 |
+
"original_sha256": "24a6e4f8507703f4f3ae21f2206bc5ec6a713a6b76d171a43900a0cf932e38d7"
|
| 479 |
+
},
|
| 480 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/pi0/flex_attention.py": {
|
| 481 |
+
"export_sha256": "f46e0fd09eddf4ccbeac21fbdea58685fb7e821e6850d3c190db11272ffc8d96",
|
| 482 |
+
"original_sha256": "f46e0fd09eddf4ccbeac21fbdea58685fb7e821e6850d3c190db11272ffc8d96"
|
| 483 |
+
},
|
| 484 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/pi0/modeling_pi0.py": {
|
| 485 |
+
"export_sha256": "cb0186a313f124fc0d70c1957e2fbb6981dbe323bde1f305bc099ae68f1bf59d",
|
| 486 |
+
"original_sha256": "cb0186a313f124fc0d70c1957e2fbb6981dbe323bde1f305bc099ae68f1bf59d"
|
| 487 |
+
},
|
| 488 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/pi0/utils.py": {
|
| 489 |
+
"export_sha256": "7d5d67dbdeeec9d8038ae1445a952d23749938d2ad3d5da7e4f134183fa79bd1",
|
| 490 |
+
"original_sha256": "7d5d67dbdeeec9d8038ae1445a952d23749938d2ad3d5da7e4f134183fa79bd1"
|
| 491 |
+
},
|
| 492 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/LICENSE": {
|
| 493 |
+
"export_sha256": "ad7d951c80c5fc2b2bce035f2041bc0a0dbf9028c8ecc4c9a8e1fba8130b6b59",
|
| 494 |
+
"original_sha256": "ad7d951c80c5fc2b2bce035f2041bc0a0dbf9028c8ecc4c9a8e1fba8130b6b59"
|
| 495 |
+
},
|
| 496 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/baselines/da_v2.py": {
|
| 497 |
+
"export_sha256": "897958984c030b2388c9801aa25053cd1bf1dd3be98bb4c131e8826d38685ae2",
|
| 498 |
+
"original_sha256": "897958984c030b2388c9801aa25053cd1bf1dd3be98bb4c131e8826d38685ae2"
|
| 499 |
+
},
|
| 500 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/baselines/da_v2_metric.py": {
|
| 501 |
+
"export_sha256": "d339b3e229b57601a28491cde80a93968826989a76251cbe4f7eff1ee87a49ee",
|
| 502 |
+
"original_sha256": "d339b3e229b57601a28491cde80a93968826989a76251cbe4f7eff1ee87a49ee"
|
| 503 |
+
},
|
| 504 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/baselines/metric3d_v2.py": {
|
| 505 |
+
"export_sha256": "7f40a3f200f84947b30003d70f539da6f5e8242413b06d0edeef69977eb97d33",
|
| 506 |
+
"original_sha256": "7f40a3f200f84947b30003d70f539da6f5e8242413b06d0edeef69977eb97d33"
|
| 507 |
+
},
|
| 508 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/baselines/moge.py": {
|
| 509 |
+
"export_sha256": "c245f279dcfb1abe68b18199c34fe065cbf94c6415b39b6a6601d078ab9a465e",
|
| 510 |
+
"original_sha256": "c245f279dcfb1abe68b18199c34fe065cbf94c6415b39b6a6601d078ab9a465e"
|
| 511 |
+
},
|
| 512 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/all_benchmarks.json": {
|
| 513 |
+
"export_sha256": "028d405eddf0e5c65cb7ad4f832d11fc9a73992c1acb260b2f1c64437cfa8b54",
|
| 514 |
+
"original_sha256": "028d405eddf0e5c65cb7ad4f832d11fc9a73992c1acb260b2f1c64437cfa8b54"
|
| 515 |
+
},
|
| 516 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/ddad.json": {
|
| 517 |
+
"export_sha256": "bd5479209fa7541cbc189c30ba3a91d47ee3dda7d57584773757a1034af42cc2",
|
| 518 |
+
"original_sha256": "bd5479209fa7541cbc189c30ba3a91d47ee3dda7d57584773757a1034af42cc2"
|
| 519 |
+
},
|
| 520 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/diode.json": {
|
| 521 |
+
"export_sha256": "a223974ab82aff6a2ddad1a7864972b25d67060833a38a7090d3db82bf4257ca",
|
| 522 |
+
"original_sha256": "a223974ab82aff6a2ddad1a7864972b25d67060833a38a7090d3db82bf4257ca"
|
| 523 |
+
},
|
| 524 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/eth3d.json": {
|
| 525 |
+
"export_sha256": "b6311545d9c7ca5b7581bad694d698b536a93d792390b1f088c49d4014006770",
|
| 526 |
+
"original_sha256": "b6311545d9c7ca5b7581bad694d698b536a93d792390b1f088c49d4014006770"
|
| 527 |
+
},
|
| 528 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/gso.json": {
|
| 529 |
+
"export_sha256": "54e8f7bc4243541c42d79c5fbbf6f5e727b48d6633e73587978ec4ce43d241b9",
|
| 530 |
+
"original_sha256": "54e8f7bc4243541c42d79c5fbbf6f5e727b48d6633e73587978ec4ce43d241b9"
|
| 531 |
+
},
|
| 532 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/hammer.json": {
|
| 533 |
+
"export_sha256": "aaf6ea2c6fc4a82b2c37428539c89d9dc18e77e481b9c78ab0f55826fdabb252",
|
| 534 |
+
"original_sha256": "aaf6ea2c6fc4a82b2c37428539c89d9dc18e77e481b9c78ab0f55826fdabb252"
|
| 535 |
+
},
|
| 536 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/ibims-1.json": {
|
| 537 |
+
"export_sha256": "c56f2362c6bc08f5b91d627ce3a30f8cc71056d36707217aab9afbfdad33343b",
|
| 538 |
+
"original_sha256": "c56f2362c6bc08f5b91d627ce3a30f8cc71056d36707217aab9afbfdad33343b"
|
| 539 |
+
},
|
| 540 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/kitti.json": {
|
| 541 |
+
"export_sha256": "caf8893ff50bbeb7f8b1e41c524d07508ca88853c3dd6a8d184fe8bee1cd919e",
|
| 542 |
+
"original_sha256": "caf8893ff50bbeb7f8b1e41c524d07508ca88853c3dd6a8d184fe8bee1cd919e"
|
| 543 |
+
},
|
| 544 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/nyu.json": {
|
| 545 |
+
"export_sha256": "27764421867a97728a9fe03e543f78a27c372fce51487d72eadcc58ee73f6aa7",
|
| 546 |
+
"original_sha256": "27764421867a97728a9fe03e543f78a27c372fce51487d72eadcc58ee73f6aa7"
|
| 547 |
+
},
|
| 548 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/sintel.json": {
|
| 549 |
+
"export_sha256": "e1db76f5e45a46676371d8dc05f753c5450723b7f240c5e51894312121832881",
|
| 550 |
+
"original_sha256": "e1db76f5e45a46676371d8dc05f753c5450723b7f240c5e51894312121832881"
|
| 551 |
+
},
|
| 552 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/eval/benchmarks/spring.json": {
|
| 553 |
+
"export_sha256": "e8a474ab587994161ec7391f55c667c52d10e8f590bca782f13fabc857eef92a",
|
| 554 |
+
"original_sha256": "e8a474ab587994161ec7391f55c667c52d10e8f590bca782f13fabc857eef92a"
|
| 555 |
+
},
|
| 556 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/train/v1.json": {
|
| 557 |
+
"export_sha256": "87f8f091ac74b45cfc77137e768cbe52c7e13eb989492652b82ac529cf939375",
|
| 558 |
+
"original_sha256": "87f8f091ac74b45cfc77137e768cbe52c7e13eb989492652b82ac529cf939375"
|
| 559 |
+
},
|
| 560 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/configs/train/v2.json": {
|
| 561 |
+
"export_sha256": "dccee76a670f09ceafe47d79b6122799af3a35496d18b69539a841794aa8c5bb",
|
| 562 |
+
"original_sha256": "dccee76a670f09ceafe47d79b6122799af3a35496d18b69539a841794aa8c5bb"
|
| 563 |
+
},
|
| 564 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge.egg-info/SOURCES.txt": {
|
| 565 |
+
"export_sha256": "a763a0133f51cf48294d053cca20d8a937977109404644def6f9540285a343a9",
|
| 566 |
+
"original_sha256": "a763a0133f51cf48294d053cca20d8a937977109404644def6f9540285a343a9"
|
| 567 |
+
},
|
| 568 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge.egg-info/dependency_links.txt": {
|
| 569 |
+
"export_sha256": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b",
|
| 570 |
+
"original_sha256": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
|
| 571 |
+
},
|
| 572 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge.egg-info/entry_points.txt": {
|
| 573 |
+
"export_sha256": "ac7e9a507d39ea8d2caae3fa55dd7dfa8f2b24f497e9313034f96b5ea60816aa",
|
| 574 |
+
"original_sha256": "ac7e9a507d39ea8d2caae3fa55dd7dfa8f2b24f497e9313034f96b5ea60816aa"
|
| 575 |
+
},
|
| 576 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge.egg-info/requires.txt": {
|
| 577 |
+
"export_sha256": "40c80ddac88311c1dbc2228c9a641a413d26cdf91de5fa806f45225a7b3817ff",
|
| 578 |
+
"original_sha256": "40c80ddac88311c1dbc2228c9a641a413d26cdf91de5fa806f45225a7b3817ff"
|
| 579 |
+
},
|
| 580 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge.egg-info/top_level.txt": {
|
| 581 |
+
"export_sha256": "fb31d43ccefcd8515f36d3a74a97986acf0b1319b9d1eae644900c6b566da6e8",
|
| 582 |
+
"original_sha256": "fb31d43ccefcd8515f36d3a74a97986acf0b1319b9d1eae644900c6b566da6e8"
|
| 583 |
+
},
|
| 584 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/__init__.py": {
|
| 585 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 586 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 587 |
+
},
|
| 588 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/__init__.py": {
|
| 589 |
+
"export_sha256": "8cf7085951f070021c3e212f35570d924aaa85e98002c285bc7c1df917d36294",
|
| 590 |
+
"original_sha256": "8cf7085951f070021c3e212f35570d924aaa85e98002c285bc7c1df917d36294"
|
| 591 |
+
},
|
| 592 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/__init__.py": {
|
| 593 |
+
"export_sha256": "0d2b87b7e71c7f7279ccc4b4f8b541d26071425284a0ea01a5a435fac4511cfe",
|
| 594 |
+
"original_sha256": "0d2b87b7e71c7f7279ccc4b4f8b541d26071425284a0ea01a5a435fac4511cfe"
|
| 595 |
+
},
|
| 596 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/hub/__init__.py": {
|
| 597 |
+
"export_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f",
|
| 598 |
+
"original_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f"
|
| 599 |
+
},
|
| 600 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/hub/backbones.py": {
|
| 601 |
+
"export_sha256": "11c3b7e3da2a843ba5953191e8fc2027b37490313dfb315c0d4ad1a0ea31d27d",
|
| 602 |
+
"original_sha256": "11c3b7e3da2a843ba5953191e8fc2027b37490313dfb315c0d4ad1a0ea31d27d"
|
| 603 |
+
},
|
| 604 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/hub/utils.py": {
|
| 605 |
+
"export_sha256": "c0533919016531b320bf9aef7cd7001249bc8ef8957cdb29246c15b67d5abdf8",
|
| 606 |
+
"original_sha256": "c0533919016531b320bf9aef7cd7001249bc8ef8957cdb29246c15b67d5abdf8"
|
| 607 |
+
},
|
| 608 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/__init__.py": {
|
| 609 |
+
"export_sha256": "5b5f637b2371089e34e0bec9a49518e2250f915aa9e10cae83a32f8e671ad24f",
|
| 610 |
+
"original_sha256": "5b5f637b2371089e34e0bec9a49518e2250f915aa9e10cae83a32f8e671ad24f"
|
| 611 |
+
},
|
| 612 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/attention.py": {
|
| 613 |
+
"export_sha256": "cc3f20ec18a07061297bcbeacc842aec43534f8eb5fd62516273c2c3385a6b79",
|
| 614 |
+
"original_sha256": "cc3f20ec18a07061297bcbeacc842aec43534f8eb5fd62516273c2c3385a6b79"
|
| 615 |
+
},
|
| 616 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/block.py": {
|
| 617 |
+
"export_sha256": "13a024d6b45dd0c63300f0ef0b5135d8551dc563436c4d70fc4ec7c44980023b",
|
| 618 |
+
"original_sha256": "13a024d6b45dd0c63300f0ef0b5135d8551dc563436c4d70fc4ec7c44980023b"
|
| 619 |
+
},
|
| 620 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/dino_head.py": {
|
| 621 |
+
"export_sha256": "9fdb1fa61c0609dc0876f711f9d0d828c33bf9fd972aab3d9c968d44e16b98d1",
|
| 622 |
+
"original_sha256": "9fdb1fa61c0609dc0876f711f9d0d828c33bf9fd972aab3d9c968d44e16b98d1"
|
| 623 |
+
},
|
| 624 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/drop_path.py": {
|
| 625 |
+
"export_sha256": "b9f8236e86054b9d9a71275efcad2a9ecaa1f86b529d4b8d6109ddb5e806f67a",
|
| 626 |
+
"original_sha256": "b9f8236e86054b9d9a71275efcad2a9ecaa1f86b529d4b8d6109ddb5e806f67a"
|
| 627 |
+
},
|
| 628 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/layer_scale.py": {
|
| 629 |
+
"export_sha256": "abb7bbfae152a9de2e6d0961ab5e75c79428e849281bfe50dd07b66b54b485d1",
|
| 630 |
+
"original_sha256": "abb7bbfae152a9de2e6d0961ab5e75c79428e849281bfe50dd07b66b54b485d1"
|
| 631 |
+
},
|
| 632 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/mlp.py": {
|
| 633 |
+
"export_sha256": "255825c73b60a916dd00eb1e38aacbcdbf316e40d6a005efb46e245b7edb43aa",
|
| 634 |
+
"original_sha256": "255825c73b60a916dd00eb1e38aacbcdbf316e40d6a005efb46e245b7edb43aa"
|
| 635 |
+
},
|
| 636 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/patch_embed.py": {
|
| 637 |
+
"export_sha256": "40da6add3d811198ea3e17cb99cdd4e5cda59e369efbbe3d18d89308618cf142",
|
| 638 |
+
"original_sha256": "40da6add3d811198ea3e17cb99cdd4e5cda59e369efbbe3d18d89308618cf142"
|
| 639 |
+
},
|
| 640 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/layers/swiglu_ffn.py": {
|
| 641 |
+
"export_sha256": "4c75f68d902cf497cb51e770ab8720057fa9957dd4c93da83aaf4f8893d14538",
|
| 642 |
+
"original_sha256": "4c75f68d902cf497cb51e770ab8720057fa9957dd4c93da83aaf4f8893d14538"
|
| 643 |
+
},
|
| 644 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/models/__init__.py": {
|
| 645 |
+
"export_sha256": "87b360c71997314f41be1c497cc42326fc32617d3a2840f2f19d3795ca8b85ee",
|
| 646 |
+
"original_sha256": "87b360c71997314f41be1c497cc42326fc32617d3a2840f2f19d3795ca8b85ee"
|
| 647 |
+
},
|
| 648 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/models/vision_transformer.py": {
|
| 649 |
+
"export_sha256": "1df8a949cf9e7eb3e1e4721f3a82839a0685b9dc94c52a5f5a9ab6ee9ffb0cd0",
|
| 650 |
+
"original_sha256": "1df8a949cf9e7eb3e1e4721f3a82839a0685b9dc94c52a5f5a9ab6ee9ffb0cd0"
|
| 651 |
+
},
|
| 652 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/utils/__init__.py": {
|
| 653 |
+
"export_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f",
|
| 654 |
+
"original_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f"
|
| 655 |
+
},
|
| 656 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/utils/cluster.py": {
|
| 657 |
+
"export_sha256": "ea195476b1f5316520c07233eb73ff4b0e5fe3f7a2645aacec5b416e7bed157c",
|
| 658 |
+
"original_sha256": "ea195476b1f5316520c07233eb73ff4b0e5fe3f7a2645aacec5b416e7bed157c"
|
| 659 |
+
},
|
| 660 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/utils/config.py": {
|
| 661 |
+
"export_sha256": "588574a78951ccfe7ffaad9ef7cab53d37e837e3ae98cfc1b6a976189073d87c",
|
| 662 |
+
"original_sha256": "588574a78951ccfe7ffaad9ef7cab53d37e837e3ae98cfc1b6a976189073d87c"
|
| 663 |
+
},
|
| 664 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/utils/dtype.py": {
|
| 665 |
+
"export_sha256": "610251537bcf55de8961a17dd625560eae5cfa5082e9382bbd9ded86db92e1c6",
|
| 666 |
+
"original_sha256": "610251537bcf55de8961a17dd625560eae5cfa5082e9382bbd9ded86db92e1c6"
|
| 667 |
+
},
|
| 668 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/utils/param_groups.py": {
|
| 669 |
+
"export_sha256": "ec1daae9eb7c50492091504f97087e3179d46a080d7b7f131967c07cb15cf6d4",
|
| 670 |
+
"original_sha256": "ec1daae9eb7c50492091504f97087e3179d46a080d7b7f131967c07cb15cf6d4"
|
| 671 |
+
},
|
| 672 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/dinov2/utils/utils.py": {
|
| 673 |
+
"export_sha256": "10bfc824fdb00cf0c4afc0a875b5763ad4c5f33ec38c2515b12528307b789305",
|
| 674 |
+
"original_sha256": "10bfc824fdb00cf0c4afc0a875b5763ad4c5f33ec38c2515b12528307b789305"
|
| 675 |
+
},
|
| 676 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/modules.py": {
|
| 677 |
+
"export_sha256": "cb5d7ff75f410be2f8466fc5ca164e04f7b991385c141b3d896c02ead7858fc2",
|
| 678 |
+
"original_sha256": "cb5d7ff75f410be2f8466fc5ca164e04f7b991385c141b3d896c02ead7858fc2"
|
| 679 |
+
},
|
| 680 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/utils.py": {
|
| 681 |
+
"export_sha256": "cb7279c4295afae9278b13d70181128ab2e29027b08a012a1b0f33213c16de22",
|
| 682 |
+
"original_sha256": "cb7279c4295afae9278b13d70181128ab2e29027b08a012a1b0f33213c16de22"
|
| 683 |
+
},
|
| 684 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/v1.py": {
|
| 685 |
+
"export_sha256": "a6c030f2e93e3c02268dc6d523a33d74299b6d012c3c2bf34c7e7c4a44646241",
|
| 686 |
+
"original_sha256": "a6c030f2e93e3c02268dc6d523a33d74299b6d012c3c2bf34c7e7c4a44646241"
|
| 687 |
+
},
|
| 688 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/model/v2.py": {
|
| 689 |
+
"export_sha256": "e736ed59fdb8ad89ec0c29ddfeeccd6a4246c387b3f423b922708366b69758fd",
|
| 690 |
+
"original_sha256": "e736ed59fdb8ad89ec0c29ddfeeccd6a4246c387b3f423b922708366b69758fd"
|
| 691 |
+
},
|
| 692 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/__init__.py": {
|
| 693 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 694 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 695 |
+
},
|
| 696 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/app.py": {
|
| 697 |
+
"export_sha256": "8ea56be9dbcfaec9dd6a0f41f670e140a3a6f71f48f8e85a3e4eb7232be2e0ba",
|
| 698 |
+
"original_sha256": "8ea56be9dbcfaec9dd6a0f41f670e140a3a6f71f48f8e85a3e4eb7232be2e0ba"
|
| 699 |
+
},
|
| 700 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/cli.py": {
|
| 701 |
+
"export_sha256": "86419e34bbfd15d0646b1d3821fa68651cb21f316428be862ed1df0a126395d0",
|
| 702 |
+
"original_sha256": "86419e34bbfd15d0646b1d3821fa68651cb21f316428be862ed1df0a126395d0"
|
| 703 |
+
},
|
| 704 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/eval_baseline.py": {
|
| 705 |
+
"export_sha256": "17702081385cc1221e7ad04d57fbcabb687d1d9705a63011f20c0626b826f3fe",
|
| 706 |
+
"original_sha256": "17702081385cc1221e7ad04d57fbcabb687d1d9705a63011f20c0626b826f3fe"
|
| 707 |
+
},
|
| 708 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/infer.py": {
|
| 709 |
+
"export_sha256": "76b59a7edbb63748ee028f5479aa2ee8beecae4b0e8d240b2166e4207d4e1649",
|
| 710 |
+
"original_sha256": "76b59a7edbb63748ee028f5479aa2ee8beecae4b0e8d240b2166e4207d4e1649"
|
| 711 |
+
},
|
| 712 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/infer_baseline.py": {
|
| 713 |
+
"export_sha256": "dfc2ff6b161dceceeeecc31456e9e4ac534de3d0457954cea375ba061e27fbb2",
|
| 714 |
+
"original_sha256": "dfc2ff6b161dceceeeecc31456e9e4ac534de3d0457954cea375ba061e27fbb2"
|
| 715 |
+
},
|
| 716 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/infer_panorama.py": {
|
| 717 |
+
"export_sha256": "fddd6f0112dbcb91c10c2a3909a6e3c4367dd1b4466c1ed0f283b3a20171251f",
|
| 718 |
+
"original_sha256": "fddd6f0112dbcb91c10c2a3909a6e3c4367dd1b4466c1ed0f283b3a20171251f"
|
| 719 |
+
},
|
| 720 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/train.py": {
|
| 721 |
+
"export_sha256": "969c12ce3be0a70183da7f6015c3d80ee9cb5c6d92a944b4d662b3e3527f06cd",
|
| 722 |
+
"original_sha256": "969c12ce3be0a70183da7f6015c3d80ee9cb5c6d92a944b4d662b3e3527f06cd"
|
| 723 |
+
},
|
| 724 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/scripts/vis_data.py": {
|
| 725 |
+
"export_sha256": "5f19d6ea30bc4b76fe8ccb1a71423b65bd15b262fc9d3356150c98098464483c",
|
| 726 |
+
"original_sha256": "5f19d6ea30bc4b76fe8ccb1a71423b65bd15b262fc9d3356150c98098464483c"
|
| 727 |
+
},
|
| 728 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/test/__init__.py": {
|
| 729 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 730 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 731 |
+
},
|
| 732 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/test/baseline.py": {
|
| 733 |
+
"export_sha256": "8f62da7022ab16f3f00556ac38580f085c68477d9200722646c77a78720a0d75",
|
| 734 |
+
"original_sha256": "8f62da7022ab16f3f00556ac38580f085c68477d9200722646c77a78720a0d75"
|
| 735 |
+
},
|
| 736 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/test/dataloader.py": {
|
| 737 |
+
"export_sha256": "086974ff7f31378e202a187a73e4224db058fe834de34027850f04871672c60e",
|
| 738 |
+
"original_sha256": "086974ff7f31378e202a187a73e4224db058fe834de34027850f04871672c60e"
|
| 739 |
+
},
|
| 740 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/test/metrics.py": {
|
| 741 |
+
"export_sha256": "f581a2cf1d625127e644f4648d7e8d6414ba3ae0792dc18e3a076ba1e0a4acbf",
|
| 742 |
+
"original_sha256": "f581a2cf1d625127e644f4648d7e8d6414ba3ae0792dc18e3a076ba1e0a4acbf"
|
| 743 |
+
},
|
| 744 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/train/__init__.py": {
|
| 745 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 746 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 747 |
+
},
|
| 748 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/train/dataloader.py": {
|
| 749 |
+
"export_sha256": "0da45febd0e798de25828ee44ff38a5c9a4bad98c9db07796dce3eb10e45c210",
|
| 750 |
+
"original_sha256": "0da45febd0e798de25828ee44ff38a5c9a4bad98c9db07796dce3eb10e45c210"
|
| 751 |
+
},
|
| 752 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/train/losses.py": {
|
| 753 |
+
"export_sha256": "05c090c901e038be389df4cee04dea05444f5c6f2ff4dce9bfc76fe761c7c325",
|
| 754 |
+
"original_sha256": "05c090c901e038be389df4cee04dea05444f5c6f2ff4dce9bfc76fe761c7c325"
|
| 755 |
+
},
|
| 756 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/train/utils.py": {
|
| 757 |
+
"export_sha256": "97b645e3789cb4739ef87437313405b6b0b2dc04e745ae99f3bc987a3b22e723",
|
| 758 |
+
"original_sha256": "97b645e3789cb4739ef87437313405b6b0b2dc04e745ae99f3bc987a3b22e723"
|
| 759 |
+
},
|
| 760 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/__init__.py": {
|
| 761 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 762 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 763 |
+
},
|
| 764 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/alignment.py": {
|
| 765 |
+
"export_sha256": "85f65b3648a557fd39e76014503a892b2aceea7cd5e0471a1de1def68f0c31e1",
|
| 766 |
+
"original_sha256": "85f65b3648a557fd39e76014503a892b2aceea7cd5e0471a1de1def68f0c31e1"
|
| 767 |
+
},
|
| 768 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/data_augmentation.py": {
|
| 769 |
+
"export_sha256": "c86762cf72aa07d59a75da42d8d0f2dd45bfd9b1eed14bbed8d05da15f8e8bbd",
|
| 770 |
+
"original_sha256": "c86762cf72aa07d59a75da42d8d0f2dd45bfd9b1eed14bbed8d05da15f8e8bbd"
|
| 771 |
+
},
|
| 772 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/download.py": {
|
| 773 |
+
"export_sha256": "929fde9df713247927b93807809ffa9b5a49572d6bd5bd1ae57235d2c8f4fc91",
|
| 774 |
+
"original_sha256": "929fde9df713247927b93807809ffa9b5a49572d6bd5bd1ae57235d2c8f4fc91"
|
| 775 |
+
},
|
| 776 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/geometry_numpy.py": {
|
| 777 |
+
"export_sha256": "f540c5b8ef55bfffcc32b1a62b38be605683e29fbf399ca86dfcbfc458ce4c10",
|
| 778 |
+
"original_sha256": "f540c5b8ef55bfffcc32b1a62b38be605683e29fbf399ca86dfcbfc458ce4c10"
|
| 779 |
+
},
|
| 780 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/geometry_torch.py": {
|
| 781 |
+
"export_sha256": "2f8d5de7d671af16d25fe13c555fd73855d8447bc086bb23aa42e859b303fb05",
|
| 782 |
+
"original_sha256": "2f8d5de7d671af16d25fe13c555fd73855d8447bc086bb23aa42e859b303fb05"
|
| 783 |
+
},
|
| 784 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/io.py": {
|
| 785 |
+
"export_sha256": "36dcbc1fc933dcd19d2c97d3a7a3d556ce3f3a191055bb4cc6f93168c4ef32ba",
|
| 786 |
+
"original_sha256": "36dcbc1fc933dcd19d2c97d3a7a3d556ce3f3a191055bb4cc6f93168c4ef32ba"
|
| 787 |
+
},
|
| 788 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/panorama.py": {
|
| 789 |
+
"export_sha256": "861e747f6fa5d9c855cd4e9d7964165a6d3e3e73f81ad78d6dfe98f6b6d70d8d",
|
| 790 |
+
"original_sha256": "861e747f6fa5d9c855cd4e9d7964165a6d3e3e73f81ad78d6dfe98f6b6d70d8d"
|
| 791 |
+
},
|
| 792 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/tools.py": {
|
| 793 |
+
"export_sha256": "ee4893ddbc49da5b24ab43277e9693e86a842dace69452803bab85b531121f60",
|
| 794 |
+
"original_sha256": "ee4893ddbc49da5b24ab43277e9693e86a842dace69452803bab85b531121f60"
|
| 795 |
+
},
|
| 796 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/vis.py": {
|
| 797 |
+
"export_sha256": "eb4d3d9a77caf923628312ab56e5fc241f39a2d3f2c066a763e76ce49842c1a9",
|
| 798 |
+
"original_sha256": "eb4d3d9a77caf923628312ab56e5fc241f39a2d3f2c066a763e76ce49842c1a9"
|
| 799 |
+
},
|
| 800 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/webfile.py": {
|
| 801 |
+
"export_sha256": "3ffcd69e343b9c867cf52c80ec1923f76478a6e8bda712cc677bfefb077b0777",
|
| 802 |
+
"original_sha256": "3ffcd69e343b9c867cf52c80ec1923f76478a6e8bda712cc677bfefb077b0777"
|
| 803 |
+
},
|
| 804 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/moge/utils/webzipfile.py": {
|
| 805 |
+
"export_sha256": "5e68057dad8f05ecbd08883f2b960211512c28bdb0243d32700ec5102b735668",
|
| 806 |
+
"original_sha256": "5e68057dad8f05ecbd08883f2b960211512c28bdb0243d32700ec5102b735668"
|
| 807 |
+
},
|
| 808 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/pyproject.toml": {
|
| 809 |
+
"export_sha256": "1c1c41fc449cee5e30cb02c36d4c7b208812f48739e7bcfdffc5a22207f1a3c2",
|
| 810 |
+
"original_sha256": "1c1c41fc449cee5e30cb02c36d4c7b208812f48739e7bcfdffc5a22207f1a3c2"
|
| 811 |
+
},
|
| 812 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/pyrightconfig.json": {
|
| 813 |
+
"export_sha256": "b2b2dc093467b72670b2df73dd4e3263c59d6b8aa131cd327438790a57ec4e45",
|
| 814 |
+
"original_sha256": "b2b2dc093467b72670b2df73dd4e3263c59d6b8aa131cd327438790a57ec4e45"
|
| 815 |
+
},
|
| 816 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/MoGe/requirements.txt": {
|
| 817 |
+
"export_sha256": "aff0d7e9df26146afdcd0e7a4a30d967fd07a8da25c30be0737607b414a81a17",
|
| 818 |
+
"original_sha256": "aff0d7e9df26146afdcd0e7a4a30d967fd07a8da25c30be0737607b414a81a17"
|
| 819 |
+
},
|
| 820 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/align_heads/__init_.py": {
|
| 821 |
+
"export_sha256": "3ee313b0fea665d122e54af056dfa3f8ef21528ffa08f23735aa91296c56b007",
|
| 822 |
+
"original_sha256": "3ee313b0fea665d122e54af056dfa3f8ef21528ffa08f23735aa91296c56b007"
|
| 823 |
+
},
|
| 824 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/align_heads/depth_head.py": {
|
| 825 |
+
"export_sha256": "78d3a617b8b84647ee3811c606f6554d40efadd5ff330d5efc91a64af919fd79",
|
| 826 |
+
"original_sha256": "78d3a617b8b84647ee3811c606f6554d40efadd5ff330d5efc91a64af919fd79"
|
| 827 |
+
},
|
| 828 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/align_heads/resampler.py": {
|
| 829 |
+
"export_sha256": "21e8444e7af259746c7786ec0064e8325b446305677fffebcc9569d749549ab8",
|
| 830 |
+
"original_sha256": "21e8444e7af259746c7786ec0064e8325b446305677fffebcc9569d749549ab8"
|
| 831 |
+
},
|
| 832 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/__init__.py": {
|
| 833 |
+
"export_sha256": "83824d4d91b800227e03562bf303d1e3758582efa6af9d9fb3898a971a21e807",
|
| 834 |
+
"original_sha256": "83824d4d91b800227e03562bf303d1e3758582efa6af9d9fb3898a971a21e807"
|
| 835 |
+
},
|
| 836 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/__init__.py": {
|
| 837 |
+
"export_sha256": "94df78b000730b9534e7f575731bf4d1668eba5fa6ef693f57dd25dafc3572ce",
|
| 838 |
+
"original_sha256": "94df78b000730b9534e7f575731bf4d1668eba5fa6ef693f57dd25dafc3572ce"
|
| 839 |
+
},
|
| 840 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/__init__.py": {
|
| 841 |
+
"export_sha256": "b745baf826d0df619d7eaaf1d6fdd9c04e2cf87a2e74abad1ca37e435757a894",
|
| 842 |
+
"original_sha256": "b745baf826d0df619d7eaaf1d6fdd9c04e2cf87a2e74abad1ca37e435757a894"
|
| 843 |
+
},
|
| 844 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/attention.py": {
|
| 845 |
+
"export_sha256": "26d9ca3a0a9848dfe0da1221d4d0b902b0f63aa18c6e3bb75cf7bf9b6928d67e",
|
| 846 |
+
"original_sha256": "26d9ca3a0a9848dfe0da1221d4d0b902b0f63aa18c6e3bb75cf7bf9b6928d67e"
|
| 847 |
+
},
|
| 848 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/block.py": {
|
| 849 |
+
"export_sha256": "9ad2173e78d4037aebe7e6ef3a8c64e7f3b08fc8f888eda9e6e62ee92805b0d6",
|
| 850 |
+
"original_sha256": "9ad2173e78d4037aebe7e6ef3a8c64e7f3b08fc8f888eda9e6e62ee92805b0d6"
|
| 851 |
+
},
|
| 852 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/dino_head.py": {
|
| 853 |
+
"export_sha256": "cd7a83f00ac449f962484bad0f2959be477781e57943508428d32ff88f41fe33",
|
| 854 |
+
"original_sha256": "cd7a83f00ac449f962484bad0f2959be477781e57943508428d32ff88f41fe33"
|
| 855 |
+
},
|
| 856 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/ffn_layers.py": {
|
| 857 |
+
"export_sha256": "29d3f20800e9bcf5fa4e056f6b0e81c1375c291c1dbffd5b103ac555fe2cb9ff",
|
| 858 |
+
"original_sha256": "29d3f20800e9bcf5fa4e056f6b0e81c1375c291c1dbffd5b103ac555fe2cb9ff"
|
| 859 |
+
},
|
| 860 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/flash_attention.py": {
|
| 861 |
+
"export_sha256": "6f664bc7bc9f9e38e955c7fac07eea5cb236e869b00584ca9b263d11c8f890ad",
|
| 862 |
+
"original_sha256": "6f664bc7bc9f9e38e955c7fac07eea5cb236e869b00584ca9b263d11c8f890ad"
|
| 863 |
+
},
|
| 864 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/flash_attention_packed.py": {
|
| 865 |
+
"export_sha256": "2a8776749e7c0d6dd780a67764f8e51cc90b0f417cd53aec7422cf07f8712a6d",
|
| 866 |
+
"original_sha256": "2a8776749e7c0d6dd780a67764f8e51cc90b0f417cd53aec7422cf07f8712a6d"
|
| 867 |
+
},
|
| 868 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/flex_attention_packed.py": {
|
| 869 |
+
"export_sha256": "177f4ffdb522e861677e1178abc2cc114d3bf41d62b690c9baa2fd37dd8d2820",
|
| 870 |
+
"original_sha256": "177f4ffdb522e861677e1178abc2cc114d3bf41d62b690c9baa2fd37dd8d2820"
|
| 871 |
+
},
|
| 872 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/layer_scale.py": {
|
| 873 |
+
"export_sha256": "f9a10ee763a62136f9e814bfe2f2209c2cb501dfdc5573f858ab01ba9a69c23f",
|
| 874 |
+
"original_sha256": "f9a10ee763a62136f9e814bfe2f2209c2cb501dfdc5573f858ab01ba9a69c23f"
|
| 875 |
+
},
|
| 876 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/patch_embed.py": {
|
| 877 |
+
"export_sha256": "88ceaac1439a54a6553a5ca8e7d97c40f92747e9edc64f5680afd21af7299475",
|
| 878 |
+
"original_sha256": "88ceaac1439a54a6553a5ca8e7d97c40f92747e9edc64f5680afd21af7299475"
|
| 879 |
+
},
|
| 880 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/rms_norm.py": {
|
| 881 |
+
"export_sha256": "8509ffc53f0bbe9e353a8b9e57ca2396795640b4ecc85140c27b17127c971869",
|
| 882 |
+
"original_sha256": "8509ffc53f0bbe9e353a8b9e57ca2396795640b4ecc85140c27b17127c971869"
|
| 883 |
+
},
|
| 884 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/rope_position_encoding.py": {
|
| 885 |
+
"export_sha256": "5236c6fb9d84252655b1a60a7177db5e6cf4a3c15227e49f4959d32947b4ba2e",
|
| 886 |
+
"original_sha256": "5236c6fb9d84252655b1a60a7177db5e6cf4a3c15227e49f4959d32947b4ba2e"
|
| 887 |
+
},
|
| 888 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/layers/sdpa_attention_packed.py": {
|
| 889 |
+
"export_sha256": "e062fe9c9df49330a54bd9922206a8b66fbd8753c61ce2d0ed3d5b3df4580bce",
|
| 890 |
+
"original_sha256": "e062fe9c9df49330a54bd9922206a8b66fbd8753c61ce2d0ed3d5b3df4580bce"
|
| 891 |
+
},
|
| 892 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/__init__.py": {
|
| 893 |
+
"export_sha256": "1faa23c982cbfcd019e3bbc92021a79123e6ff802c70c618470681068652af5c",
|
| 894 |
+
"original_sha256": "1faa23c982cbfcd019e3bbc92021a79123e6ff802c70c618470681068652af5c"
|
| 895 |
+
},
|
| 896 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/inference/__init__.py": {
|
| 897 |
+
"export_sha256": "75940a6a6035f3fc4cebcd5a0cb8800e1f5bd82547e0ec7cc9463d9774c149b2",
|
| 898 |
+
"original_sha256": "75940a6a6035f3fc4cebcd5a0cb8800e1f5bd82547e0ec7cc9463d9774c149b2"
|
| 899 |
+
},
|
| 900 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/inference/causal_eval.py": {
|
| 901 |
+
"export_sha256": "c754df45a6113d4ddd6aa6d1527ab4587d4efb35b1906eeb6ef7480bd7da04bc",
|
| 902 |
+
"original_sha256": "c754df45a6113d4ddd6aa6d1527ab4587d4efb35b1906eeb6ef7480bd7da04bc"
|
| 903 |
+
},
|
| 904 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/inference/kv_cache.py": {
|
| 905 |
+
"export_sha256": "3d186623252f18d240bf71622127622da5b2ccea15040c92b6109b03ab54e965",
|
| 906 |
+
"original_sha256": "3d186623252f18d240bf71622127622da5b2ccea15040c92b6109b03ab54e965"
|
| 907 |
+
},
|
| 908 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/navit_eval.py": {
|
| 909 |
+
"export_sha256": "1fafad9450f0e5a53328cddc066cc37d71db9bbc2e3222dfabed05b4fb6a774e",
|
| 910 |
+
"original_sha256": "1fafad9450f0e5a53328cddc066cc37d71db9bbc2e3222dfabed05b4fb6a774e"
|
| 911 |
+
},
|
| 912 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/navit_video_vision_transformer.py": {
|
| 913 |
+
"export_sha256": "4a3a1bd606c2f639edf418a4ead0864882b152f4c815956baa245c890a5fc503",
|
| 914 |
+
"original_sha256": "4a3a1bd606c2f639edf418a4ead0864882b152f4c815956baa245c890a5fc503"
|
| 915 |
+
},
|
| 916 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/unified_video_vision_transformer.py": {
|
| 917 |
+
"export_sha256": "d50e23815d713e77eadf796cb1051a3051a5e38be20689b26e9e4927c3c64a2f",
|
| 918 |
+
"original_sha256": "d50e23815d713e77eadf796cb1051a3051a5e38be20689b26e9e4927c3c64a2f"
|
| 919 |
+
},
|
| 920 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/models/vision_transformer.py": {
|
| 921 |
+
"export_sha256": "a04ac7f1393e8992bbfc8e8460c59d24e26c65c410baccbdbe90f605d98c3ba9",
|
| 922 |
+
"original_sha256": "a04ac7f1393e8992bbfc8e8460c59d24e26c65c410baccbdbe90f605d98c3ba9"
|
| 923 |
+
},
|
| 924 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/lumos_dinov3/utils.py": {
|
| 925 |
+
"export_sha256": "0e9422435fc9fc6a885800527b76476c22709852fb492b4b0f9705a93a4ebe2f",
|
| 926 |
+
"original_sha256": "0e9422435fc9fc6a885800527b76476c22709852fb492b4b0f9705a93a4ebe2f"
|
| 927 |
+
},
|
| 928 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/dino_video/teacher.py": {
|
| 929 |
+
"export_sha256": "1aa25aca20347d7dca2d265ab377e6b2f8f3b36485422cfc6d6c4a9d503f63b5",
|
| 930 |
+
"original_sha256": "1aa25aca20347d7dca2d265ab377e6b2f8f3b36485422cfc6d6c4a9d503f63b5"
|
| 931 |
+
},
|
| 932 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/LICENSE": {
|
| 933 |
+
"export_sha256": "56ae0eb5ff848e312f8ecc450c806f710821db153b0e8db18a0d69d5a6f60f8b",
|
| 934 |
+
"original_sha256": "56ae0eb5ff848e312f8ecc450c806f710821db153b0e8db18a0d69d5a6f60f8b"
|
| 935 |
+
},
|
| 936 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/example.py": {
|
| 937 |
+
"export_sha256": "ed5bc3807bba81be71f3b7d978e0e38100acc3c0d94fe254b2dfcabd45210795",
|
| 938 |
+
"original_sha256": "ed5bc3807bba81be71f3b7d978e0e38100acc3c0d94fe254b2dfcabd45210795"
|
| 939 |
+
},
|
| 940 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/0/intrinsics.txt": {
|
| 941 |
+
"export_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5",
|
| 942 |
+
"original_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5"
|
| 943 |
+
},
|
| 944 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/1/intrinsics.txt": {
|
| 945 |
+
"export_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f",
|
| 946 |
+
"original_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f"
|
| 947 |
+
},
|
| 948 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/2/intrinsics.txt": {
|
| 949 |
+
"export_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5",
|
| 950 |
+
"original_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5"
|
| 951 |
+
},
|
| 952 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/3/intrinsics.txt": {
|
| 953 |
+
"export_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f",
|
| 954 |
+
"original_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f"
|
| 955 |
+
},
|
| 956 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/4/intrinsics.txt": {
|
| 957 |
+
"export_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5",
|
| 958 |
+
"original_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5"
|
| 959 |
+
},
|
| 960 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/5/intrinsics.txt": {
|
| 961 |
+
"export_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5",
|
| 962 |
+
"original_sha256": "599fd7617e1225e289fdbc4dec835d55ccb6577b83953b02ce89a53f3bf237d5"
|
| 963 |
+
},
|
| 964 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/6/intrinsics.txt": {
|
| 965 |
+
"export_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f",
|
| 966 |
+
"original_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f"
|
| 967 |
+
},
|
| 968 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/examples/7/intrinsics.txt": {
|
| 969 |
+
"export_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f",
|
| 970 |
+
"original_sha256": "76b62be8b9969ed3787630ce12e6667e0e13811b8484e2b9b69936928d31bd0f"
|
| 971 |
+
},
|
| 972 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm.egg-info/SOURCES.txt": {
|
| 973 |
+
"export_sha256": "f0e6e7658cb18cc2097a72be3f8d2acb30ce954ce1d50f696112ec88bd3ba986",
|
| 974 |
+
"original_sha256": "f0e6e7658cb18cc2097a72be3f8d2acb30ce954ce1d50f696112ec88bd3ba986"
|
| 975 |
+
},
|
| 976 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm.egg-info/dependency_links.txt": {
|
| 977 |
+
"export_sha256": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b",
|
| 978 |
+
"original_sha256": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
|
| 979 |
+
},
|
| 980 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm.egg-info/requires.txt": {
|
| 981 |
+
"export_sha256": "3cf871b4192759af491804ebbae100ec2bea0643eacf998bc4463e5461246826",
|
| 982 |
+
"original_sha256": "3cf871b4192759af491804ebbae100ec2bea0643eacf998bc4463e5461246826"
|
| 983 |
+
},
|
| 984 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm.egg-info/top_level.txt": {
|
| 985 |
+
"export_sha256": "e1c251886aa07f8ff3f8ca2a519fd01dc811ccadade001a038fd18f73c4bec16",
|
| 986 |
+
"original_sha256": "e1c251886aa07f8ff3f8ca2a519fd01dc811ccadade001a038fd18f73c4bec16"
|
| 987 |
+
},
|
| 988 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/__init__.py": {
|
| 989 |
+
"export_sha256": "20466a32b5c18e07a2afc9c1793ca48123039ee7e1a46de37461fb153a8d3193",
|
| 990 |
+
"original_sha256": "20466a32b5c18e07a2afc9c1793ca48123039ee7e1a46de37461fb153a8d3193"
|
| 991 |
+
},
|
| 992 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/__init__.py": {
|
| 993 |
+
"export_sha256": "0d2b87b7e71c7f7279ccc4b4f8b541d26071425284a0ea01a5a435fac4511cfe",
|
| 994 |
+
"original_sha256": "0d2b87b7e71c7f7279ccc4b4f8b541d26071425284a0ea01a5a435fac4511cfe"
|
| 995 |
+
},
|
| 996 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/hub/__init__.py": {
|
| 997 |
+
"export_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f",
|
| 998 |
+
"original_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f"
|
| 999 |
+
},
|
| 1000 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/hub/backbones.py": {
|
| 1001 |
+
"export_sha256": "74b7f24365cfd454326c91f438c77a4d7f0c3fb2a424eb6a5d48d53573bbf54d",
|
| 1002 |
+
"original_sha256": "74b7f24365cfd454326c91f438c77a4d7f0c3fb2a424eb6a5d48d53573bbf54d"
|
| 1003 |
+
},
|
| 1004 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/hub/utils.py": {
|
| 1005 |
+
"export_sha256": "c0533919016531b320bf9aef7cd7001249bc8ef8957cdb29246c15b67d5abdf8",
|
| 1006 |
+
"original_sha256": "c0533919016531b320bf9aef7cd7001249bc8ef8957cdb29246c15b67d5abdf8"
|
| 1007 |
+
},
|
| 1008 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/__init__.py": {
|
| 1009 |
+
"export_sha256": "29d808e091d40cfdb4d5a4355c3c0fc325353686e6b0b0b3f6a24676ca4afd78",
|
| 1010 |
+
"original_sha256": "29d808e091d40cfdb4d5a4355c3c0fc325353686e6b0b0b3f6a24676ca4afd78"
|
| 1011 |
+
},
|
| 1012 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/attention.py": {
|
| 1013 |
+
"export_sha256": "cc3f20ec18a07061297bcbeacc842aec43534f8eb5fd62516273c2c3385a6b79",
|
| 1014 |
+
"original_sha256": "cc3f20ec18a07061297bcbeacc842aec43534f8eb5fd62516273c2c3385a6b79"
|
| 1015 |
+
},
|
| 1016 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/block.py": {
|
| 1017 |
+
"export_sha256": "fe8ae374b8b08d634320ca4083cdc5f671926bcf7eb012e8988b83920b99ef58",
|
| 1018 |
+
"original_sha256": "fe8ae374b8b08d634320ca4083cdc5f671926bcf7eb012e8988b83920b99ef58"
|
| 1019 |
+
},
|
| 1020 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/dino_head.py": {
|
| 1021 |
+
"export_sha256": "9fdb1fa61c0609dc0876f711f9d0d828c33bf9fd972aab3d9c968d44e16b98d1",
|
| 1022 |
+
"original_sha256": "9fdb1fa61c0609dc0876f711f9d0d828c33bf9fd972aab3d9c968d44e16b98d1"
|
| 1023 |
+
},
|
| 1024 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/drop_path.py": {
|
| 1025 |
+
"export_sha256": "b9f8236e86054b9d9a71275efcad2a9ecaa1f86b529d4b8d6109ddb5e806f67a",
|
| 1026 |
+
"original_sha256": "b9f8236e86054b9d9a71275efcad2a9ecaa1f86b529d4b8d6109ddb5e806f67a"
|
| 1027 |
+
},
|
| 1028 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/layer_scale.py": {
|
| 1029 |
+
"export_sha256": "abb7bbfae152a9de2e6d0961ab5e75c79428e849281bfe50dd07b66b54b485d1",
|
| 1030 |
+
"original_sha256": "abb7bbfae152a9de2e6d0961ab5e75c79428e849281bfe50dd07b66b54b485d1"
|
| 1031 |
+
},
|
| 1032 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/mlp.py": {
|
| 1033 |
+
"export_sha256": "255825c73b60a916dd00eb1e38aacbcdbf316e40d6a005efb46e245b7edb43aa",
|
| 1034 |
+
"original_sha256": "255825c73b60a916dd00eb1e38aacbcdbf316e40d6a005efb46e245b7edb43aa"
|
| 1035 |
+
},
|
| 1036 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/patch_embed.py": {
|
| 1037 |
+
"export_sha256": "40da6add3d811198ea3e17cb99cdd4e5cda59e369efbbe3d18d89308618cf142",
|
| 1038 |
+
"original_sha256": "40da6add3d811198ea3e17cb99cdd4e5cda59e369efbbe3d18d89308618cf142"
|
| 1039 |
+
},
|
| 1040 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/patch_embed_mlp.py": {
|
| 1041 |
+
"export_sha256": "0c18967ba6195c7864c5a963b3c128f125daea7198a0a9e0fc2528eb3246f221",
|
| 1042 |
+
"original_sha256": "0c18967ba6195c7864c5a963b3c128f125daea7198a0a9e0fc2528eb3246f221"
|
| 1043 |
+
},
|
| 1044 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/layers/swiglu_ffn.py": {
|
| 1045 |
+
"export_sha256": "4c75f68d902cf497cb51e770ab8720057fa9957dd4c93da83aaf4f8893d14538",
|
| 1046 |
+
"original_sha256": "4c75f68d902cf497cb51e770ab8720057fa9957dd4c93da83aaf4f8893d14538"
|
| 1047 |
+
},
|
| 1048 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/models/__init__.py": {
|
| 1049 |
+
"export_sha256": "ed3430c69b7845b741ac3badc189e901a52a7d45a97d6aaa441b79be29734f8a",
|
| 1050 |
+
"original_sha256": "ed3430c69b7845b741ac3badc189e901a52a7d45a97d6aaa441b79be29734f8a"
|
| 1051 |
+
},
|
| 1052 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/models/mask_utils.py": {
|
| 1053 |
+
"export_sha256": "f7a7db258f0a29cae1077056c95010b14004952ba455ba7915c0f2bbbffe75f3",
|
| 1054 |
+
"original_sha256": "f7a7db258f0a29cae1077056c95010b14004952ba455ba7915c0f2bbbffe75f3"
|
| 1055 |
+
},
|
| 1056 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/models/vision_transformer.py": {
|
| 1057 |
+
"export_sha256": "84e9883def1b61c62e438c4ee152c4425c9e7f8bba30cf655e6361eb684ba137",
|
| 1058 |
+
"original_sha256": "84e9883def1b61c62e438c4ee152c4425c9e7f8bba30cf655e6361eb684ba137"
|
| 1059 |
+
},
|
| 1060 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/utils/__init__.py": {
|
| 1061 |
+
"export_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f",
|
| 1062 |
+
"original_sha256": "2932e94a2d67be87b717c49468214c1127be7864aedf37f5891d26be7bc1437f"
|
| 1063 |
+
},
|
| 1064 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/utils/cluster.py": {
|
| 1065 |
+
"export_sha256": "ea195476b1f5316520c07233eb73ff4b0e5fe3f7a2645aacec5b416e7bed157c",
|
| 1066 |
+
"original_sha256": "ea195476b1f5316520c07233eb73ff4b0e5fe3f7a2645aacec5b416e7bed157c"
|
| 1067 |
+
},
|
| 1068 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/utils/config.py": {
|
| 1069 |
+
"export_sha256": "588574a78951ccfe7ffaad9ef7cab53d37e837e3ae98cfc1b6a976189073d87c",
|
| 1070 |
+
"original_sha256": "588574a78951ccfe7ffaad9ef7cab53d37e837e3ae98cfc1b6a976189073d87c"
|
| 1071 |
+
},
|
| 1072 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/utils/dtype.py": {
|
| 1073 |
+
"export_sha256": "610251537bcf55de8961a17dd625560eae5cfa5082e9382bbd9ded86db92e1c6",
|
| 1074 |
+
"original_sha256": "610251537bcf55de8961a17dd625560eae5cfa5082e9382bbd9ded86db92e1c6"
|
| 1075 |
+
},
|
| 1076 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/utils/param_groups.py": {
|
| 1077 |
+
"export_sha256": "ec1daae9eb7c50492091504f97087e3179d46a080d7b7f131967c07cb15cf6d4",
|
| 1078 |
+
"original_sha256": "ec1daae9eb7c50492091504f97087e3179d46a080d7b7f131967c07cb15cf6d4"
|
| 1079 |
+
},
|
| 1080 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/dinov2_rgbd/utils/utils.py": {
|
| 1081 |
+
"export_sha256": "10bfc824fdb00cf0c4afc0a875b5763ad4c5f33ec38c2515b12528307b789305",
|
| 1082 |
+
"original_sha256": "10bfc824fdb00cf0c4afc0a875b5763ad4c5f33ec38c2515b12528307b789305"
|
| 1083 |
+
},
|
| 1084 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/modules_decoder.py": {
|
| 1085 |
+
"export_sha256": "e809c6f5abb57061b58e43e50a04e20ac2179503abed02cafda3f82dfac7387e",
|
| 1086 |
+
"original_sha256": "e809c6f5abb57061b58e43e50a04e20ac2179503abed02cafda3f82dfac7387e"
|
| 1087 |
+
},
|
| 1088 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/modules_rgbd_encoder.py": {
|
| 1089 |
+
"export_sha256": "72f06b74ba10c39ae20b01154c8b0b108a17e47e0bb978563c80fc51fe5c46cd",
|
| 1090 |
+
"original_sha256": "72f06b74ba10c39ae20b01154c8b0b108a17e47e0bb978563c80fc51fe5c46cd"
|
| 1091 |
+
},
|
| 1092 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/utils.py": {
|
| 1093 |
+
"export_sha256": "a7108de9525839a7277c6ce0db6d8108156739cb02571ad6a87eb822814204e6",
|
| 1094 |
+
"original_sha256": "a7108de9525839a7277c6ce0db6d8108156739cb02571ad6a87eb822814204e6"
|
| 1095 |
+
},
|
| 1096 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/model/v2.py": {
|
| 1097 |
+
"export_sha256": "45f69b4e2c5fab73f883a2790a3c7839d7fd4c11c4d11343ef1d98b31be0351e",
|
| 1098 |
+
"original_sha256": "45f69b4e2c5fab73f883a2790a3c7839d7fd4c11c4d11343ef1d98b31be0351e"
|
| 1099 |
+
},
|
| 1100 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/utils/__init__.py": {
|
| 1101 |
+
"export_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 1102 |
+
"original_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 1103 |
+
},
|
| 1104 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/utils/geo.py": {
|
| 1105 |
+
"export_sha256": "b235df79d279a8ba0c1d62004df0a8af9a0c2a0faa4ebb52a0e7140f0541c8eb",
|
| 1106 |
+
"original_sha256": "b235df79d279a8ba0c1d62004df0a8af9a0c2a0faa4ebb52a0e7140f0541c8eb"
|
| 1107 |
+
},
|
| 1108 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/utils/io.py": {
|
| 1109 |
+
"export_sha256": "b6907a108db83f8e40862c96ad089bc4d05dd88a630430b5c0f8c67ef5e1d20c",
|
| 1110 |
+
"original_sha256": "b6907a108db83f8e40862c96ad089bc4d05dd88a630430b5c0f8c67ef5e1d20c"
|
| 1111 |
+
},
|
| 1112 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/utils/tools.py": {
|
| 1113 |
+
"export_sha256": "ee4893ddbc49da5b24ab43277e9693e86a842dace69452803bab85b531121f60",
|
| 1114 |
+
"original_sha256": "ee4893ddbc49da5b24ab43277e9693e86a842dace69452803bab85b531121f60"
|
| 1115 |
+
},
|
| 1116 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/mdm/utils/vis.py": {
|
| 1117 |
+
"export_sha256": "564fbb5898b6981c70fb3ce845b4ad1a1594360bd10787773ed194efa497c88a",
|
| 1118 |
+
"original_sha256": "564fbb5898b6981c70fb3ce845b4ad1a1594360bd10787773ed194efa497c88a"
|
| 1119 |
+
},
|
| 1120 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/pyproject.toml": {
|
| 1121 |
+
"export_sha256": "ead97cc2acc436b7f8dc538c634a1937a85ea89fb2202fa9c1ec8a812a807bfa",
|
| 1122 |
+
"original_sha256": "ead97cc2acc436b7f8dc538c634a1937a85ea89fb2202fa9c1ec8a812a807bfa"
|
| 1123 |
+
},
|
| 1124 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/pyrightconfig.json": {
|
| 1125 |
+
"export_sha256": "57b08f87f3296e2675929e0202ba868921ab289cb264d417faf1f93ebf88f57b",
|
| 1126 |
+
"original_sha256": "57b08f87f3296e2675929e0202ba868921ab289cb264d417faf1f93ebf88f57b"
|
| 1127 |
+
},
|
| 1128 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/lingbot-depth/requirements.txt": {
|
| 1129 |
+
"export_sha256": "08e5c1253755a68475afc63e692510c1bbbcbaaa5d758eef1584bc40a455ccb4",
|
| 1130 |
+
"original_sha256": "08e5c1253755a68475afc63e692510c1bbbcbaaa5d758eef1584bc40a455ccb4"
|
| 1131 |
+
},
|
| 1132 |
+
"third_party/lingbot-vla-v2/lingbotvla/models/vla/vision_models/module_utils.py": {
|
| 1133 |
+
"export_sha256": "3d7cc8834d949c193f80add5ce2f031ec08e32312c895de07c68144c4bdc77aa",
|
| 1134 |
+
"original_sha256": "3d7cc8834d949c193f80add5ce2f031ec08e32312c895de07c68144c4bdc77aa"
|
| 1135 |
+
},
|
| 1136 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/__init__.py": {
|
| 1137 |
+
"export_sha256": "3935848ce37fb4598a1d091bc7162d17ff81df1bfb445bed4e8fc25bef705cc1",
|
| 1138 |
+
"original_sha256": "3935848ce37fb4598a1d091bc7162d17ff81df1bfb445bed4e8fc25bef705cc1"
|
| 1139 |
+
},
|
| 1140 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/attention.py": {
|
| 1141 |
+
"export_sha256": "1e89c4bd5112687e76f2e7a45971672b428fa2d5ff70c4979142feea1bc177c1",
|
| 1142 |
+
"original_sha256": "1e89c4bd5112687e76f2e7a45971672b428fa2d5ff70c4979142feea1bc177c1"
|
| 1143 |
+
},
|
| 1144 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/dit/rope_wan/rotary.py": {
|
| 1145 |
+
"export_sha256": "b8231dbea9fdbe268375bd0b18cc2b5ba932c27d0bba089fa31f88d5eb1f1aab",
|
| 1146 |
+
"original_sha256": "b8231dbea9fdbe268375bd0b18cc2b5ba932c27d0bba089fa31f88d5eb1f1aab"
|
| 1147 |
+
},
|
| 1148 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/fused_moe.py": {
|
| 1149 |
+
"export_sha256": "241f57de1f0745f86ba8620925b1bf6df9ac2753d867441b4b6da653404711ac",
|
| 1150 |
+
"original_sha256": "241f57de1f0745f86ba8620925b1bf6df9ac2753d867441b4b6da653404711ac"
|
| 1151 |
+
},
|
| 1152 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/__init__.py": {
|
| 1153 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 1154 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 1155 |
+
},
|
| 1156 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/__init__.py": {
|
| 1157 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 1158 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 1159 |
+
},
|
| 1160 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/group_gemm.py": {
|
| 1161 |
+
"export_sha256": "06d45d9be527a9def13e385297b8444b19ea2d75da58ae769ed838f6539a3d4b",
|
| 1162 |
+
"original_sha256": "06d45d9be527a9def13e385297b8444b19ea2d75da58ae769ed838f6539a3d4b"
|
| 1163 |
+
},
|
| 1164 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/moe.py": {
|
| 1165 |
+
"export_sha256": "e2392e269128d440b79f98415ff1ebd6045e015fd17513c68462787653b442a7",
|
| 1166 |
+
"original_sha256": "e2392e269128d440b79f98415ff1ebd6045e015fd17513c68462787653b442a7"
|
| 1167 |
+
},
|
| 1168 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/triton_utils/__init__.py": {
|
| 1169 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 1170 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 1171 |
+
},
|
| 1172 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/triton_utils/activation.py": {
|
| 1173 |
+
"export_sha256": "19c183fe5bd29444586a54a129414d5f4b79ebba0e58c0b5e4cafee75cf84137",
|
| 1174 |
+
"original_sha256": "19c183fe5bd29444586a54a129414d5f4b79ebba0e58c0b5e4cafee75cf84137"
|
| 1175 |
+
},
|
| 1176 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/triton_utils/memory.py": {
|
| 1177 |
+
"export_sha256": "070d0de9c420c44daf4b423cccb2b5bd144b1fb5137142b7b84e7db32d7d5b56",
|
| 1178 |
+
"original_sha256": "070d0de9c420c44daf4b423cccb2b5bd144b1fb5137142b7b84e7db32d7d5b56"
|
| 1179 |
+
},
|
| 1180 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/kernel/triton_utils/utils.py": {
|
| 1181 |
+
"export_sha256": "09e7d34dd88216694d07692df80e6db8611aa24df9563c3c024b50af61ec2d12",
|
| 1182 |
+
"original_sha256": "09e7d34dd88216694d07692df80e6db8611aa24df9563c3c024b50af61ec2d12"
|
| 1183 |
+
},
|
| 1184 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/__init__.py": {
|
| 1185 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 1186 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 1187 |
+
},
|
| 1188 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/benchmark_utils.py": {
|
| 1189 |
+
"export_sha256": "97d9558b56c3ee0e1990fb24d8fe31e56dfa0aa50cc8d05569ae8b905a57d975",
|
| 1190 |
+
"original_sha256": "97d9558b56c3ee0e1990fb24d8fe31e56dfa0aa50cc8d05569ae8b905a57d975"
|
| 1191 |
+
},
|
| 1192 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/config.py": {
|
| 1193 |
+
"export_sha256": "d6a79bb8b43c87b68cf6dafebeed30382e2935c3771a4a7c930245ce860abe9a",
|
| 1194 |
+
"original_sha256": "d6a79bb8b43c87b68cf6dafebeed30382e2935c3771a4a7c930245ce860abe9a"
|
| 1195 |
+
},
|
| 1196 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/device.py": {
|
| 1197 |
+
"export_sha256": "b6c0b0815f251d6d45ef85c546372cea75ae836d6070e3117641afaab1e55eb2",
|
| 1198 |
+
"original_sha256": "b6c0b0815f251d6d45ef85c546372cea75ae836d6070e3117641afaab1e55eb2"
|
| 1199 |
+
},
|
| 1200 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/envvars.py": {
|
| 1201 |
+
"export_sha256": "2c0e816a20c5d0cfccf1497c50a78203c7aecc51fb4a08eefafaa33b2f22e8d7",
|
| 1202 |
+
"original_sha256": "2c0e816a20c5d0cfccf1497c50a78203c7aecc51fb4a08eefafaa33b2f22e8d7"
|
| 1203 |
+
},
|
| 1204 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/kernel.py": {
|
| 1205 |
+
"export_sha256": "261363ce167e5dfc4e66a5a86bc7c24d6d36ff94c83f421050b98a7455a9b20d",
|
| 1206 |
+
"original_sha256": "261363ce167e5dfc4e66a5a86bc7c24d6d36ff94c83f421050b98a7455a9b20d"
|
| 1207 |
+
},
|
| 1208 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/path.py": {
|
| 1209 |
+
"export_sha256": "82100f20fdf6aa4455dde917606e2f2b36fc062ff23db59f0f4aad01e7751d2d",
|
| 1210 |
+
"original_sha256": "82100f20fdf6aa4455dde917606e2f2b36fc062ff23db59f0f4aad01e7751d2d"
|
| 1211 |
+
},
|
| 1212 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/group_gemm/utils/pretuned.py": {
|
| 1213 |
+
"export_sha256": "7b09a5353a92c54d49911b96d042545a0143f83e02448f964755d30d0dbe0ba5",
|
| 1214 |
+
"original_sha256": "7b09a5353a92c54d49911b96d042545a0143f83e02448f964755d30d0dbe0ba5"
|
| 1215 |
+
},
|
| 1216 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/loss.py": {
|
| 1217 |
+
"export_sha256": "c8ed3b1cd2d7eb6246fa126a2ba2cd03a1c15eb4ff038083e0ee32e0759b7b89",
|
| 1218 |
+
"original_sha256": "c8ed3b1cd2d7eb6246fa126a2ba2cd03a1c15eb4ff038083e0ee32e0759b7b89"
|
| 1219 |
+
},
|
| 1220 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/moe_loss.py": {
|
| 1221 |
+
"export_sha256": "9d3908b76a0becb7164890beb4ed409ea16b27cdafb7503b70debb3d42f1629b",
|
| 1222 |
+
"original_sha256": "9d3908b76a0becb7164890beb4ed409ea16b27cdafb7503b70debb3d42f1629b"
|
| 1223 |
+
},
|
| 1224 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/robby_moe.py": {
|
| 1225 |
+
"export_sha256": "56eb2c94987389517431e39cb4b4470967e96ff995713d9031b00b8607db1512",
|
| 1226 |
+
"original_sha256": "56eb2c94987389517431e39cb4b4470967e96ff995713d9031b00b8607db1512"
|
| 1227 |
+
},
|
| 1228 |
+
"third_party/lingbot-vla-v2/lingbotvla/ops/triton_moe_loss.py": {
|
| 1229 |
+
"export_sha256": "614a405e42722d7f77ba5f2183f254a0d2e15a0949ed974ffba70ef41a9faf8c",
|
| 1230 |
+
"original_sha256": "614a405e42722d7f77ba5f2183f254a0d2e15a0949ed974ffba70ef41a9faf8c"
|
| 1231 |
+
},
|
| 1232 |
+
"third_party/lingbot-vla-v2/lingbotvla/optim/__init__.py": {
|
| 1233 |
+
"export_sha256": "0b627de37b350c267f2efe5074b1659fa4c305fe2f1329b7e7b219b1d7636dba",
|
| 1234 |
+
"original_sha256": "0b627de37b350c267f2efe5074b1659fa4c305fe2f1329b7e7b219b1d7636dba"
|
| 1235 |
+
},
|
| 1236 |
+
"third_party/lingbot-vla-v2/lingbotvla/optim/lr_scheduler.py": {
|
| 1237 |
+
"export_sha256": "fd1ace611797fb7ee9b33e6b293b0c2154fb18e4744fb77cde0c2e8381c283d2",
|
| 1238 |
+
"original_sha256": "fd1ace611797fb7ee9b33e6b293b0c2154fb18e4744fb77cde0c2e8381c283d2"
|
| 1239 |
+
},
|
| 1240 |
+
"third_party/lingbot-vla-v2/lingbotvla/optim/muon.py": {
|
| 1241 |
+
"export_sha256": "2ca3fcce6c158ed0dbf726313cb623520b13ff249d4ff83a98d6c3a4a6b47881",
|
| 1242 |
+
"original_sha256": "2ca3fcce6c158ed0dbf726313cb623520b13ff249d4ff83a98d6c3a4a6b47881"
|
| 1243 |
+
},
|
| 1244 |
+
"third_party/lingbot-vla-v2/lingbotvla/optim/optimizer.py": {
|
| 1245 |
+
"export_sha256": "88886197cc7aa2c3470ac4ba139c5ad5cc40f483c7dc61e3333611b0f577f733",
|
| 1246 |
+
"original_sha256": "88886197cc7aa2c3470ac4ba139c5ad5cc40f483c7dc61e3333611b0f577f733"
|
| 1247 |
+
},
|
| 1248 |
+
"third_party/lingbot-vla-v2/lingbotvla/schedulers/flow_match.py": {
|
| 1249 |
+
"export_sha256": "5a1d3ac920ea1b3b7fe1ee4027c46833c03d5a48f099d2f9bce0a054f9448d6d",
|
| 1250 |
+
"original_sha256": "5a1d3ac920ea1b3b7fe1ee4027c46833c03d5a48f099d2f9bce0a054f9448d6d"
|
| 1251 |
+
},
|
| 1252 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/__init__.py": {
|
| 1253 |
+
"export_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921",
|
| 1254 |
+
"original_sha256": "ced14be479d27e864cf3557c37d8abe00d2204ba6c030620bf48ea85e25a5921"
|
| 1255 |
+
},
|
| 1256 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/arguments.py": {
|
| 1257 |
+
"export_sha256": "c4626c50c8287e31629b05479087e3653edec2fa05eb6cf5eca483e9506d7b22",
|
| 1258 |
+
"original_sha256": "c4626c50c8287e31629b05479087e3653edec2fa05eb6cf5eca483e9506d7b22"
|
| 1259 |
+
},
|
| 1260 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/async_hf_checkpoint.py": {
|
| 1261 |
+
"export_sha256": "bb442489f8bdbc8f916bbe3694dc9eea8570abf48668e8eb30cc98fdaabc679b",
|
| 1262 |
+
"original_sha256": "bb442489f8bdbc8f916bbe3694dc9eea8570abf48668e8eb30cc98fdaabc679b"
|
| 1263 |
+
},
|
| 1264 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/async_tb_writer.py": {
|
| 1265 |
+
"export_sha256": "f920b4532bc7d37523c266fe4dd82ca1a8ca1d166b393c04830c43092d75b8ac",
|
| 1266 |
+
"original_sha256": "f920b4532bc7d37523c266fe4dd82ca1a8ca1d166b393c04830c43092d75b8ac"
|
| 1267 |
+
},
|
| 1268 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/count_flops.py": {
|
| 1269 |
+
"export_sha256": "fc5c198a1705d30eb93067ac8302acda981bc8c5c3b1cb8c0c6a9797b8b5780c",
|
| 1270 |
+
"original_sha256": "fc5c198a1705d30eb93067ac8302acda981bc8c5c3b1cb8c0c6a9797b8b5780c"
|
| 1271 |
+
},
|
| 1272 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/depth_teacher_batch.py": {
|
| 1273 |
+
"export_sha256": "b81d1f3acb3036ce7c6b7fd3137ac601bfe37a0733f4994c254094fe0d1bba5f",
|
| 1274 |
+
"original_sha256": "b81d1f3acb3036ce7c6b7fd3137ac601bfe37a0733f4994c254094fe0d1bba5f"
|
| 1275 |
+
},
|
| 1276 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/dist_utils.py": {
|
| 1277 |
+
"export_sha256": "2fe84232343bc18e6cee980aa2d0531bb58805c3a05493707ea691c6b90cc3aa",
|
| 1278 |
+
"original_sha256": "2fe84232343bc18e6cee980aa2d0531bb58805c3a05493707ea691c6b90cc3aa"
|
| 1279 |
+
},
|
| 1280 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/dit_utils.py": {
|
| 1281 |
+
"export_sha256": "4302bda642387ec2025823999ef1fffc8cdf2aeaa053c9f9dc7085000406880f",
|
| 1282 |
+
"original_sha256": "4302bda642387ec2025823999ef1fffc8cdf2aeaa053c9f9dc7085000406880f"
|
| 1283 |
+
},
|
| 1284 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/ema.py": {
|
| 1285 |
+
"export_sha256": "e5491ff90a50f8170c0cc0cd5856a21fe1d084544de691652b5295cb758c8f82",
|
| 1286 |
+
"original_sha256": "e5491ff90a50f8170c0cc0cd5856a21fe1d084544de691652b5295cb758c8f82"
|
| 1287 |
+
},
|
| 1288 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/full_finetune_runtime.py": {
|
| 1289 |
+
"export_sha256": "8916dda6cfc814bdca6f330e3cf1e97c15b5050466c2844aa78a5dd358949919",
|
| 1290 |
+
"original_sha256": "8916dda6cfc814bdca6f330e3cf1e97c15b5050466c2844aa78a5dd358949919"
|
| 1291 |
+
},
|
| 1292 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/helper.py": {
|
| 1293 |
+
"export_sha256": "c35007430238271bcf394cd7d870ae66ac0c92413babbddca64732db6ee7d356",
|
| 1294 |
+
"original_sha256": "c35007430238271bcf394cd7d870ae66ac0c92413babbddca64732db6ee7d356"
|
| 1295 |
+
},
|
| 1296 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/import_utils.py": {
|
| 1297 |
+
"export_sha256": "1cfa2f06905d3fa0a32d08dc8973e32b6bcbf071a80f014d6371515b6b32a66f",
|
| 1298 |
+
"original_sha256": "1cfa2f06905d3fa0a32d08dc8973e32b6bcbf071a80f014d6371515b6b32a66f"
|
| 1299 |
+
},
|
| 1300 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/logging.py": {
|
| 1301 |
+
"export_sha256": "0311934e4d0382950bf2f1c77435117f3f8ce673d1bfec62d46e8cd83d6b0610",
|
| 1302 |
+
"original_sha256": "0311934e4d0382950bf2f1c77435117f3f8ce673d1bfec62d46e8cd83d6b0610"
|
| 1303 |
+
},
|
| 1304 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/lora_utils.py": {
|
| 1305 |
+
"export_sha256": "cc43360c66ec7062ee4302cd3bdd83771754b7cf2fc05af4694b8f820718b85d",
|
| 1306 |
+
"original_sha256": "cc43360c66ec7062ee4302cd3bdd83771754b7cf2fc05af4694b8f820718b85d"
|
| 1307 |
+
},
|
| 1308 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/model_utils.py": {
|
| 1309 |
+
"export_sha256": "fc4874db144ac2d21c5ead866c7b79151dbbf6e2d1b3998011f56bab23465d7c",
|
| 1310 |
+
"original_sha256": "fc4874db144ac2d21c5ead866c7b79151dbbf6e2d1b3998011f56bab23465d7c"
|
| 1311 |
+
},
|
| 1312 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/moe_utils.py": {
|
| 1313 |
+
"export_sha256": "378054f52b2aac9c59459278dadfceb4acf78f4b21a6e7934cd518031ae2a66d",
|
| 1314 |
+
"original_sha256": "378054f52b2aac9c59459278dadfceb4acf78f4b21a6e7934cd518031ae2a66d"
|
| 1315 |
+
},
|
| 1316 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/normalize.py": {
|
| 1317 |
+
"export_sha256": "64020713950bcb27b3589c12219292ed1859a090c986c69fdc5b62e053fd5737",
|
| 1318 |
+
"original_sha256": "64020713950bcb27b3589c12219292ed1859a090c986c69fdc5b62e053fd5737"
|
| 1319 |
+
},
|
| 1320 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/phase4_measurement.py": {
|
| 1321 |
+
"export_sha256": "cd2ce7e2eae105cc01a665bd7863945c319c86cce7e586d2d522ed99a1d3d9bd",
|
| 1322 |
+
"original_sha256": "cd2ce7e2eae105cc01a665bd7863945c319c86cce7e586d2d522ed99a1d3d9bd"
|
| 1323 |
+
},
|
| 1324 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/process.py": {
|
| 1325 |
+
"export_sha256": "a50241f6408cb09fa6c6d633c21e32504826a16b275fe995f39d46a0f78fe1f3",
|
| 1326 |
+
"original_sha256": "a50241f6408cb09fa6c6d633c21e32504826a16b275fe995f39d46a0f78fe1f3"
|
| 1327 |
+
},
|
| 1328 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/recompute_utils.py": {
|
| 1329 |
+
"export_sha256": "efee9e750d0788f699e9de82da0a06caa7f961d26e748075457be2bc35430158",
|
| 1330 |
+
"original_sha256": "efee9e750d0788f699e9de82da0a06caa7f961d26e748075457be2bc35430158"
|
| 1331 |
+
},
|
| 1332 |
+
"third_party/lingbot-vla-v2/lingbotvla/utils/seqlen_pos_transform_utils.py": {
|
| 1333 |
+
"export_sha256": "9db5f54ff91bcb8384ae8e88f8b430bfe018c2a7e07382f885cc2646894056d3",
|
| 1334 |
+
"original_sha256": "9db5f54ff91bcb8384ae8e88f8b430bfe018c2a7e07382f885cc2646894056d3"
|
| 1335 |
+
},
|
| 1336 |
+
"third_party/lingbot-vla-v2/pyproject.toml": {
|
| 1337 |
+
"export_sha256": "89af0b07014aa2a0d4c5eb387181cda56cd3d21a98d360abf691dea4dc200549",
|
| 1338 |
+
"original_sha256": "89af0b07014aa2a0d4c5eb387181cda56cd3d21a98d360abf691dea4dc200549"
|
| 1339 |
+
},
|
| 1340 |
+
"third_party/lingbot-vla-v2/requirements-depth.txt": {
|
| 1341 |
+
"export_sha256": "95333d7165ab18c2d31c62a0d07c93e8b20f024fa0c8488fe7f386038592400d",
|
| 1342 |
+
"original_sha256": "95333d7165ab18c2d31c62a0d07c93e8b20f024fa0c8488fe7f386038592400d"
|
| 1343 |
+
},
|
| 1344 |
+
"third_party/lingbot-vla-v2/requirements.txt": {
|
| 1345 |
+
"export_sha256": "4bea8eca2e5e81107332947fe38d9a2787bc6a8fe4d3f875fa7e3d028f48993d",
|
| 1346 |
+
"original_sha256": "4bea8eca2e5e81107332947fe38d9a2787bc6a8fe4d3f875fa7e3d028f48993d"
|
| 1347 |
+
},
|
| 1348 |
+
"third_party/lingbot-vla-v2/setup.py": {
|
| 1349 |
+
"export_sha256": "11fdc0d257f4fe68cabf161355843632628807549db6df751a38f0ca2f949ba5",
|
| 1350 |
+
"original_sha256": "11fdc0d257f4fe68cabf161355843632628807549db6df751a38f0ca2f949ba5"
|
| 1351 |
+
},
|
| 1352 |
+
"third_party/lingbot-vla-v2/tasks/vla/train_lingbotvla.py": {
|
| 1353 |
+
"export_sha256": "7f12af769d8c75dc5fcc19b1de63cba02672ba5caf187609aaa2199183746352",
|
| 1354 |
+
"original_sha256": "7f12af769d8c75dc5fcc19b1de63cba02672ba5caf187609aaa2199183746352"
|
| 1355 |
+
},
|
| 1356 |
+
"third_party/lingbot-vla-v2/tasks/vla/train_pi0.py": {
|
| 1357 |
+
"export_sha256": "437b3fb2b802beccd208b60086be1bbb2a00f396e11796d18803f913ec63f0f2",
|
| 1358 |
+
"original_sha256": "437b3fb2b802beccd208b60086be1bbb2a00f396e11796d18803f913ec63f0f2"
|
| 1359 |
+
},
|
| 1360 |
+
"third_party/lingbot-vla-v2/train.sh": {
|
| 1361 |
+
"export_sha256": "a84bcd8043446435f02dbbeab0b1b2d3dca4cadb86e484b2a048c019edc72cef",
|
| 1362 |
+
"original_sha256": "a84bcd8043446435f02dbbeab0b1b2d3dca4cadb86e484b2a048c019edc72cef"
|
| 1363 |
+
},
|
| 1364 |
+
"training_reference/scripts/e5_rollout_history.py": {
|
| 1365 |
+
"export_sha256": "284fde2bb25421671132b0dbceedee9d14963117638eb7fc1693e5cacc8f0e7a",
|
| 1366 |
+
"original_sha256": "284fde2bb25421671132b0dbceedee9d14963117638eb7fc1693e5cacc8f0e7a"
|
| 1367 |
+
}
|
| 1368 |
+
},
|
| 1369 |
+
"portable_changes": [
|
| 1370 |
+
{
|
| 1371 |
+
"change": "Load the public sanitized training_config.yaml beside checkpoint shards instead of requiring the original training output directory topology. Numerical inference code unchanged.",
|
| 1372 |
+
"file": "third_party/lingbot-vla-v2/deploy/lingbot_vla_v2_policy.py"
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"change": "dataset root made relative to upstream training working directory",
|
| 1376 |
+
"file": "manifests/e5_allclean_train.txt",
|
| 1377 |
+
"new_value": "../../data/lerobot/",
|
| 1378 |
+
"old_value_omitted": true
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"field": "train.output_dir",
|
| 1382 |
+
"file": "configs/ep2_training.yaml",
|
| 1383 |
+
"new_value": "outputs/train",
|
| 1384 |
+
"old_value_omitted": true
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"field": "train.output_dir",
|
| 1388 |
+
"file": "configs/ep6_training.yaml",
|
| 1389 |
+
"new_value": "outputs/train",
|
| 1390 |
+
"old_value_omitted": true
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"change": "Use exact source from both actual evaluations; retain earlier training-archive version under training_reference/scripts/e5_rollout_history.py.",
|
| 1394 |
+
"file": "scripts/e5_rollout_history.py"
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"change": "Replace machine/run-record identity checks with portable public checkpoint hash checks; support epoch2 and epoch6 via E5_EPOCH. Loading and rollout computation unchanged.",
|
| 1398 |
+
"file": "scripts/eval_model_registry.py",
|
| 1399 |
+
"old_value_omitted": true
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"change": "New portable planner/execution entry for the original server and per-episode worker; default plans only.",
|
| 1403 |
+
"file": "scripts/release_eval.py"
|
| 1404 |
+
}
|
| 1405 |
+
],
|
| 1406 |
+
"source_archives": {
|
| 1407 |
+
"ep2": "830d1e28a0dbff4d8d7a127ac236fe8e6da88e3b1096e581914ad5288967e10c",
|
| 1408 |
+
"ep6": "77c95a4d09b5dc44358b46c3598203f09d1f1de26540e2883c15039212816c0a"
|
| 1409 |
+
}
|
| 1410 |
+
}
|
TRAINING.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training method and reproduction
|
| 2 |
+
|
| 3 |
+
E5 adds public state history as two tokens (stride 50) and an executed-action summary
|
| 4 |
+
of the last eight commands; visual history is disabled. Action/state history masks remain
|
| 5 |
+
independent. Public state history means prior drive-target observations at policy decisions,
|
| 6 |
+
not measured qpos. See `scripts/e5_rollout_history.py` and the history implementations under
|
| 7 |
+
`third_party/lingbot-vla-v2/lingbotvla/`.
|
| 8 |
+
|
| 9 |
+
C3 augmentation is enabled at probability 0.8; camera keys receive independent draws,
|
| 10 |
+
while temporal frames share parameters, maps and noise per camera. Photometric perturbations
|
| 11 |
+
and probability-0.5 Fourier amplitude jitter are enabled; background/style are disabled.
|
| 12 |
+
Current and future depth/video teacher pixels share the augmented images, with no cached teacher
|
| 13 |
+
features. The exact parameters are in `configs/augmentation/c3_v1.json` and actual configs.
|
| 14 |
+
|
| 15 |
+
Both runs use 2500 clean trajectories, 549787 frames, no holdout or validation selection,
|
| 16 |
+
fresh official baseline initialization, seed 7, Muon, mixed BF16 computation and FP32 master
|
| 17 |
+
and exported checkpoint parameters. Configs retain the actual LR schedule, FSDP2, action/state
|
| 18 |
+
sizes, teacher loss weights, history settings, normalization and dependency layout.
|
| 19 |
+
|
| 20 |
+
| Run | Epochs | Steps | GPUs | Microbatch | Accumulation | Global batch | LR | Minimum LR |
|
| 21 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 22 |
+
| ep2 | 2 | 17180 | 4 | 8 | 2 | 64 | 0.0001 | 5e-05 |
|
| 23 |
+
| ep6 | 6 | 17178 | 8 | 12 | 2 | 192 | 0.00015 | 7.5e-05 |
|
| 24 |
+
|
| 25 |
+
Install the original runtime requirements from `third_party/lingbot-vla-v2/` into a compatible
|
| 26 |
+
CUDA environment. Place the official base in `checkpoints/base/lingbot-vla-v2-6b`, Qwen3-VL
|
| 27 |
+
and MoGe dependencies in the paths specified by the configs, and the original RoboTwin LeRobot
|
| 28 |
+
trajectory directories under `data/lerobot`. Training manifests include both original train/val
|
| 29 |
+
directories intentionally: the actual all-clean runs have no held-out validation split.
|
| 30 |
+
These assets are dependencies and are not included in this Git repository.
|
| 31 |
+
|
| 32 |
+
Run from `third_party/lingbot-vla-v2` so `../../` config references resolve to repository root.
|
| 33 |
+
Set `MASTER_ADDR`, `MASTER_PORT`, `NODE_RANK` and `PHASE4_NODE_LOCAL_ROOT` from the allocated
|
| 34 |
+
training environment. For epoch2 use NNODES=1, NPROC_PER_NODE=4 and NODE_RANK=0; epoch6 uses
|
| 35 |
+
NNODES=2 and NPROC_PER_NODE=4 on each node. `TRAIN_CONFIG` is `../../configs/ep2_training.yaml`
|
| 36 |
+
or `../../configs/ep6_training.yaml`; `RANK_ENTRY` is `../../deployment/finetune/e5_rank_entry.py`
|
| 37 |
+
or `../../deployment/finetune/e5_8gpu_rank_entry.py` respectively.
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
export PHASE4_HF_EXPORT_DTYPE=fp32
|
| 41 |
+
export PHASE4_STATE_HISTORY_REQUIRED=1
|
| 42 |
+
export PHASE4_ACTION_HISTORY_REQUIRED=1
|
| 43 |
+
export PHASE4_VALIDATION_CACHE=0
|
| 44 |
+
export PHASE4_HF_DEDUP=0
|
| 45 |
+
export PHASE4_PERF_MODE=0
|
| 46 |
+
export PHASE4_DEPTH_TEACHER_BATCH=0
|
| 47 |
+
python -m torch.distributed.run --nnodes="$NNODES" --nproc-per-node="$NPROC_PER_NODE" --node-rank="$NODE_RANK" --master-addr="$MASTER_ADDR" --master-port="$MASTER_PORT" --max-restarts=0 "$RANK_ENTRY" tasks/vla/train_lingbotvla.py "$TRAIN_CONFIG"
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
This portable invocation exposes the original training entry and recipe. It has not been
|
| 51 |
+
rerun for this release and does not recreate the original scheduler, data staging or recovery
|
| 52 |
+
orchestration. The actual run completion records report zero automatic restarts. Use the
|
| 53 |
+
actual sanitized configs, not similarly named generic upstream examples.
|
| 54 |
+
|
| 55 |
+
Final training losses and elapsed training seconds are reported in `RESULTS.json`.
|
| 56 |
+

|
| 57 |
+
|
| 58 |
+
The plots show each actual optimizer-step loss and a labeled trailing 100-step mean (shorter
|
| 59 |
+
prefix window at the beginning). The rank0 metric records contain total loss all-reduced
|
| 60 |
+
over the FSDP group. Scalar-only CSVs are in `loss/ep2.csv` and `loss/ep6.csv`; coverage and
|
| 61 |
+
original record SHA256 values are in `loss/summary.json`. Both series cover every optimizer
|
| 62 |
+
step without gaps. Raw logs and all non-scalar metadata remain local: 原始记录保存在本地。
|
configs/augmentation/c3_v1.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"enabled": true,
|
| 4 |
+
"p": 0.8,
|
| 5 |
+
"photometric": {
|
| 6 |
+
"brightness": [
|
| 7 |
+
0.9,
|
| 8 |
+
1.1
|
| 9 |
+
],
|
| 10 |
+
"contrast": [
|
| 11 |
+
0.9,
|
| 12 |
+
1.1
|
| 13 |
+
],
|
| 14 |
+
"saturation": [
|
| 15 |
+
0.95,
|
| 16 |
+
1.05
|
| 17 |
+
],
|
| 18 |
+
"gamma": [
|
| 19 |
+
0.9,
|
| 20 |
+
1.1
|
| 21 |
+
],
|
| 22 |
+
"exposure_ev": [
|
| 23 |
+
-0.1,
|
| 24 |
+
0.1
|
| 25 |
+
],
|
| 26 |
+
"color_temperature": 0.025,
|
| 27 |
+
"gaussian_noise_std": [
|
| 28 |
+
0.0,
|
| 29 |
+
0.005
|
| 30 |
+
],
|
| 31 |
+
"blur_p": 0.15,
|
| 32 |
+
"blur_sigma": [
|
| 33 |
+
0.1,
|
| 34 |
+
0.5
|
| 35 |
+
],
|
| 36 |
+
"hue": 0.0
|
| 37 |
+
},
|
| 38 |
+
"fourier": {
|
| 39 |
+
"enabled": true,
|
| 40 |
+
"p": 0.5,
|
| 41 |
+
"amp_jitter": [
|
| 42 |
+
0.9,
|
| 43 |
+
1.1
|
| 44 |
+
],
|
| 45 |
+
"envelope_strength": [
|
| 46 |
+
0.0,
|
| 47 |
+
0.1
|
| 48 |
+
],
|
| 49 |
+
"envelope_grid": 8,
|
| 50 |
+
"preserve_dc": true,
|
| 51 |
+
"conjugate_symmetric": true
|
| 52 |
+
},
|
| 53 |
+
"style": {
|
| 54 |
+
"enabled": false
|
| 55 |
+
},
|
| 56 |
+
"background": {
|
| 57 |
+
"enabled": false
|
| 58 |
+
},
|
| 59 |
+
"camera_rule": "independent_by_camera_key",
|
| 60 |
+
"temporal_rule": "same_parameters_map_and_noise_per_camera",
|
| 61 |
+
"teacher_rule": "same_augmented_current_and_future_pixels_no_feature_cache"
|
| 62 |
+
}
|
configs/ep2_training.yaml
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data:
|
| 2 |
+
c3_allow_state_action_history: true
|
| 3 |
+
c3_augmentation_config: '{"background":{"enabled":false},"camera_rule":"independent_by_camera_key","enabled":true,"fourier":{"amp_jitter":[0.9,1.1],"conjugate_symmetric":true,"enabled":true,"envelope_grid":8,"envelope_strength":[0.0,0.1],"p":0.5,"preserve_dc":true},"p":0.8,"photometric":{"blur_p":0.15,"blur_sigma":[0.1,0.5],"brightness":[0.9,1.1],"color_temperature":0.025,"contrast":[0.9,1.1],"exposure_ev":[-0.1,0.1],"gamma":[0.9,1.1],"gaussian_noise_std":[0.0,0.005],"hue":0.0,"saturation":[0.95,1.05]},"schema_version":1,"style":{"enabled":false},"teacher_rule":"same_augmented_current_and_future_pixels_no_feature_cache","temporal_rule":"same_parameters_map_and_noise_per_camera"}'
|
| 4 |
+
cameras:
|
| 5 |
+
- camera_top
|
| 6 |
+
- camera_wrist_left
|
| 7 |
+
- camera_wrist_right
|
| 8 |
+
chat_template: default
|
| 9 |
+
data_name: multi
|
| 10 |
+
data_root: null
|
| 11 |
+
data_tag: default
|
| 12 |
+
data_type: conversation
|
| 13 |
+
dataloader_type: native
|
| 14 |
+
datasets_type: vla
|
| 15 |
+
drop_last: true
|
| 16 |
+
image_augment: false
|
| 17 |
+
image_keys: images
|
| 18 |
+
img_size: 256
|
| 19 |
+
joints:
|
| 20 |
+
- '{''arm.position'': 14}'
|
| 21 |
+
- '{''end.position'': 14}'
|
| 22 |
+
- '{''effector.position'': 2}'
|
| 23 |
+
max_seq_len: 2048
|
| 24 |
+
norm_stats_file: ../../manifests/norm_stats/robotwin_clean_train_s7.json
|
| 25 |
+
norm_type:
|
| 26 |
+
- '{''arm.position'': ''bounds_99_woclip''}'
|
| 27 |
+
- '{''end.position'': ''bounds_99_woclip''}'
|
| 28 |
+
- '{''effector.position'': ''bounds_99_woclip''}'
|
| 29 |
+
num_workers: 4
|
| 30 |
+
pin_memory: true
|
| 31 |
+
prefetch_factor: 4
|
| 32 |
+
prompt_type: global
|
| 33 |
+
robot_config_root: ../../configs/phase4_robot_configs
|
| 34 |
+
source_name: null
|
| 35 |
+
state_norm_type: none
|
| 36 |
+
text_keys: messages
|
| 37 |
+
train_path: ../../manifests/e5_allclean_train.txt
|
| 38 |
+
train_size: 10000000
|
| 39 |
+
use_future_image: true
|
| 40 |
+
model:
|
| 41 |
+
adanorm_time: true
|
| 42 |
+
attn_implementation: flash_attention_2
|
| 43 |
+
basic_modules: []
|
| 44 |
+
config_key: LingbotVLAV2Config
|
| 45 |
+
config_path: ../../checkpoints/base/lingbot-vla-v2-6b
|
| 46 |
+
decoders: {}
|
| 47 |
+
encode_target: false
|
| 48 |
+
encoders: {}
|
| 49 |
+
final_norm_adanorm: false
|
| 50 |
+
force_use_huggingface: false
|
| 51 |
+
incremental_training: false
|
| 52 |
+
input_encoder: encoder
|
| 53 |
+
model_path: ../../checkpoints/base/lingbot-vla-v2-6b
|
| 54 |
+
moe_implementation: fused
|
| 55 |
+
output_encoder: decoder
|
| 56 |
+
post_training: true
|
| 57 |
+
tokenizer_path: ../../checkpoints/dependencies/Qwen3-VL-4B-Instruct
|
| 58 |
+
use_lm_head: false
|
| 59 |
+
vit_attn_implementation: flash_attention_2
|
| 60 |
+
vlm_repo_id: null
|
| 61 |
+
vocab_size: 0
|
| 62 |
+
train:
|
| 63 |
+
action_dim: 55
|
| 64 |
+
action_fp32: false
|
| 65 |
+
action_history_length: 8
|
| 66 |
+
action_history_mlp_hidden_size: 1024
|
| 67 |
+
action_history_mode: summary
|
| 68 |
+
activation_gpu_limit: 0.0
|
| 69 |
+
align_params:
|
| 70 |
+
depth:
|
| 71 |
+
block_future_depth_to_action: false
|
| 72 |
+
detach_future_image_feats: true
|
| 73 |
+
dim_head: 32
|
| 74 |
+
dim_out: 1024
|
| 75 |
+
ff_mult: 1
|
| 76 |
+
input_size: 224
|
| 77 |
+
model_type: MoRGBD
|
| 78 |
+
moge_path: ../../checkpoints/dependencies/moge-2-vitb-normal/model.pt
|
| 79 |
+
morgbd_path: ../../checkpoints/base/lingbot-vla-v2-6b/depth/model.pt
|
| 80 |
+
num_backbone_tokens: 256
|
| 81 |
+
num_heads: 4
|
| 82 |
+
num_layers: 1
|
| 83 |
+
token_size: 16
|
| 84 |
+
use_future_depth: true
|
| 85 |
+
depth_loss_weight: 0.004
|
| 86 |
+
future_depth_loss_weight: 0.004
|
| 87 |
+
llm:
|
| 88 |
+
dim_out: 2560
|
| 89 |
+
image_input_size: 224
|
| 90 |
+
image_token_size: 8
|
| 91 |
+
mode: query
|
| 92 |
+
num_task_tokens: 8
|
| 93 |
+
use_future_video: true
|
| 94 |
+
video:
|
| 95 |
+
attention_mode: flex_block_causal
|
| 96 |
+
block_suffix_to_future_video: false
|
| 97 |
+
ckpt_path: ../../checkpoints/base/lingbot-vla-v2-6b/dino_video/teacher_step_10000.pth
|
| 98 |
+
cls_loss_type: mse
|
| 99 |
+
cls_loss_weight: 0.2
|
| 100 |
+
cls_pool: last
|
| 101 |
+
config_path: ../../checkpoints/base/lingbot-vla-v2-6b/dino_video/config.yaml
|
| 102 |
+
cosine_loss_weight: 0.2
|
| 103 |
+
detach_image_feats: true
|
| 104 |
+
dim_head: 32
|
| 105 |
+
dim_out: 1024
|
| 106 |
+
effective_fps: 1.0
|
| 107 |
+
ff_mult: 1
|
| 108 |
+
future_video_loss_weight: 0.004
|
| 109 |
+
input_size: 256
|
| 110 |
+
log_max_samples: 32
|
| 111 |
+
log_scale: 16
|
| 112 |
+
mse_loss_weight: 1.0
|
| 113 |
+
n_blocks: 1
|
| 114 |
+
num_backbone_tokens: 256
|
| 115 |
+
num_future_frames: 1
|
| 116 |
+
num_heads: 4
|
| 117 |
+
num_layers: 1
|
| 118 |
+
share_future_depth_query: true
|
| 119 |
+
use_cls_loss: false
|
| 120 |
+
use_cosine_loss: true
|
| 121 |
+
use_current_patch_loss: true
|
| 122 |
+
use_current_shared_task_proj: true
|
| 123 |
+
use_mse_loss: true
|
| 124 |
+
use_patch_loss: true
|
| 125 |
+
use_shared_future_task_proj: true
|
| 126 |
+
use_smooth_l1_loss: false
|
| 127 |
+
use_warmup_frame: true
|
| 128 |
+
visual_steps: 5000
|
| 129 |
+
allow_partial_checkpoint: false
|
| 130 |
+
async_hf_max_pending: 1
|
| 131 |
+
async_save_hf_weights: false
|
| 132 |
+
attention_implementation: flex_cached
|
| 133 |
+
bias_centering: false
|
| 134 |
+
bias_update_interval: 1
|
| 135 |
+
bias_update_speed: 0.0
|
| 136 |
+
bsz_warmup_init_mbtoken: 200
|
| 137 |
+
bsz_warmup_ratio: 0
|
| 138 |
+
chunk_size: 50
|
| 139 |
+
ckpt_manager: dcp
|
| 140 |
+
context_parallel_size: 1
|
| 141 |
+
data_parallel_mode: fsdp2
|
| 142 |
+
data_parallel_replicate_size: 1
|
| 143 |
+
data_parallel_shard_size: 4
|
| 144 |
+
decayed_max_grad_norm: 1.0
|
| 145 |
+
dyn_bsz: true
|
| 146 |
+
dyn_bsz_buffer_size: 200
|
| 147 |
+
dyn_bsz_margin: 0
|
| 148 |
+
empty_cache_steps: 500
|
| 149 |
+
enable_activation_offload: false
|
| 150 |
+
enable_forward_prefetch: true
|
| 151 |
+
enable_fp32: false
|
| 152 |
+
enable_fsdp_offload: false
|
| 153 |
+
enable_full_determinism: false
|
| 154 |
+
enable_full_shard: true
|
| 155 |
+
enable_gradient_checkpointing: true
|
| 156 |
+
enable_manual_eager: false
|
| 157 |
+
enable_mixed_precision: true
|
| 158 |
+
enable_profiling: false
|
| 159 |
+
enable_reentrant: false
|
| 160 |
+
enable_resume: false
|
| 161 |
+
expert_hidden_size: 768
|
| 162 |
+
expert_intermediate_size: 2752
|
| 163 |
+
expert_parallel_size: 1
|
| 164 |
+
freeze_vision_encoder: false
|
| 165 |
+
freeze_vit: false
|
| 166 |
+
global_batch_size: 64
|
| 167 |
+
gradient_accumulation_steps: 2
|
| 168 |
+
init_device: cuda
|
| 169 |
+
load_checkpoint_path: null
|
| 170 |
+
loss_type: L1_fm
|
| 171 |
+
lr: 0.0001
|
| 172 |
+
lr_decay_ratio: 1.0
|
| 173 |
+
lr_decay_style: cosine
|
| 174 |
+
lr_min: 5.0e-05
|
| 175 |
+
lr_start: 0.0
|
| 176 |
+
lr_warmup_ratio: 0.0
|
| 177 |
+
max_action_dim: 55
|
| 178 |
+
max_grad_norm: 1.0
|
| 179 |
+
max_state_dim: 55
|
| 180 |
+
max_steps: 17180
|
| 181 |
+
micro_batch_size: 8
|
| 182 |
+
module_fsdp_enable: true
|
| 183 |
+
moe_monitor_interval: 1000
|
| 184 |
+
muon_adjust_lr_fn: match_rms_adamw
|
| 185 |
+
muon_exclude_name_patterns: []
|
| 186 |
+
muon_momentum: 0.95
|
| 187 |
+
muon_nesterov: true
|
| 188 |
+
muon_ns_steps: 5
|
| 189 |
+
my_tokenizer_max_length: 72
|
| 190 |
+
num_train_epochs: 2
|
| 191 |
+
optimizer: muon
|
| 192 |
+
output_dir: outputs/train
|
| 193 |
+
pipeline_parallel_size: 1
|
| 194 |
+
precompute_grid_thw: true
|
| 195 |
+
profile_end_step: 2
|
| 196 |
+
profile_profile_memory: true
|
| 197 |
+
profile_record_shapes: true
|
| 198 |
+
profile_start_step: 1
|
| 199 |
+
profile_trace_dir: ./trace
|
| 200 |
+
profile_with_stack: true
|
| 201 |
+
resume_dataloader_state: true
|
| 202 |
+
rmpad: false
|
| 203 |
+
rmpad_with_pos_ids: false
|
| 204 |
+
routed_scaling_factor: 4.0
|
| 205 |
+
router_activation: sigmoid
|
| 206 |
+
router_z_loss_coeff: 0.0001
|
| 207 |
+
save_epochs: 0
|
| 208 |
+
save_hf_weights: true
|
| 209 |
+
save_steps: 1000
|
| 210 |
+
seed: 7
|
| 211 |
+
sequence_wise_loss_coeff: 0.001
|
| 212 |
+
sequence_wise_mode: per_sequence
|
| 213 |
+
split_fused_experts_from_decoder_fsdp: false
|
| 214 |
+
stable_train_steps: 100000
|
| 215 |
+
state_history_length: 2
|
| 216 |
+
state_history_mode: tokens
|
| 217 |
+
state_history_stride: 50
|
| 218 |
+
tensor_parallel_size: 1
|
| 219 |
+
token_moe_intermediate_size: 512
|
| 220 |
+
token_moe_layers:
|
| 221 |
+
- 0
|
| 222 |
+
- 1
|
| 223 |
+
- 2
|
| 224 |
+
- 3
|
| 225 |
+
- 4
|
| 226 |
+
- 5
|
| 227 |
+
- 6
|
| 228 |
+
- 7
|
| 229 |
+
- 8
|
| 230 |
+
- 9
|
| 231 |
+
- 10
|
| 232 |
+
- 11
|
| 233 |
+
- 12
|
| 234 |
+
- 13
|
| 235 |
+
- 14
|
| 236 |
+
- 15
|
| 237 |
+
- 16
|
| 238 |
+
- 17
|
| 239 |
+
- 18
|
| 240 |
+
- 19
|
| 241 |
+
- 20
|
| 242 |
+
- 21
|
| 243 |
+
- 22
|
| 244 |
+
- 23
|
| 245 |
+
- 24
|
| 246 |
+
- 25
|
| 247 |
+
- 26
|
| 248 |
+
- 27
|
| 249 |
+
- 28
|
| 250 |
+
- 29
|
| 251 |
+
- 30
|
| 252 |
+
- 31
|
| 253 |
+
- 32
|
| 254 |
+
- 33
|
| 255 |
+
- 34
|
| 256 |
+
- 35
|
| 257 |
+
token_num_experts: 32
|
| 258 |
+
token_shared_intermediate_size: 704
|
| 259 |
+
token_top_k: 4
|
| 260 |
+
tokenizer_max_length: 72
|
| 261 |
+
train_expert_only: false
|
| 262 |
+
train_state_proj: true
|
| 263 |
+
ulysses_parallel_size: 1
|
| 264 |
+
use_compile: true
|
| 265 |
+
use_doptim: false
|
| 266 |
+
use_moe: true
|
| 267 |
+
use_moe_expert_lr: true
|
| 268 |
+
use_shared_expert_gate: false
|
| 269 |
+
use_wandb: false
|
| 270 |
+
visual_history_gradient_checkpointing: true
|
| 271 |
+
visual_history_length: 2
|
| 272 |
+
visual_history_mode: none
|
| 273 |
+
visual_history_num_cameras: 3
|
| 274 |
+
visual_history_stride: 50
|
| 275 |
+
vit_lr: 1.0e-06
|
| 276 |
+
vlm_causal: true
|
| 277 |
+
vlm_fsdp: true
|
| 278 |
+
wandb_name: null
|
| 279 |
+
wandb_project: lingbotvla
|
| 280 |
+
weight_decay: 0.0
|
configs/ep6_training.yaml
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data:
|
| 2 |
+
c3_allow_state_action_history: true
|
| 3 |
+
c3_augmentation_config: '{"background":{"enabled":false},"camera_rule":"independent_by_camera_key","enabled":true,"fourier":{"amp_jitter":[0.9,1.1],"conjugate_symmetric":true,"enabled":true,"envelope_grid":8,"envelope_strength":[0.0,0.1],"p":0.5,"preserve_dc":true},"p":0.8,"photometric":{"blur_p":0.15,"blur_sigma":[0.1,0.5],"brightness":[0.9,1.1],"color_temperature":0.025,"contrast":[0.9,1.1],"exposure_ev":[-0.1,0.1],"gamma":[0.9,1.1],"gaussian_noise_std":[0.0,0.005],"hue":0.0,"saturation":[0.95,1.05]},"schema_version":1,"style":{"enabled":false},"teacher_rule":"same_augmented_current_and_future_pixels_no_feature_cache","temporal_rule":"same_parameters_map_and_noise_per_camera"}'
|
| 4 |
+
cameras:
|
| 5 |
+
- camera_top
|
| 6 |
+
- camera_wrist_left
|
| 7 |
+
- camera_wrist_right
|
| 8 |
+
chat_template: default
|
| 9 |
+
data_name: multi
|
| 10 |
+
data_root: null
|
| 11 |
+
data_tag: default
|
| 12 |
+
data_type: conversation
|
| 13 |
+
dataloader_type: native
|
| 14 |
+
datasets_type: vla
|
| 15 |
+
drop_last: true
|
| 16 |
+
image_augment: false
|
| 17 |
+
image_keys: images
|
| 18 |
+
img_size: 256
|
| 19 |
+
joints:
|
| 20 |
+
- '{''arm.position'': 14}'
|
| 21 |
+
- '{''end.position'': 14}'
|
| 22 |
+
- '{''effector.position'': 2}'
|
| 23 |
+
max_seq_len: 2048
|
| 24 |
+
norm_stats_file: ../../manifests/norm_stats/robotwin_clean_train_s7.json
|
| 25 |
+
norm_type:
|
| 26 |
+
- '{''arm.position'': ''bounds_99_woclip''}'
|
| 27 |
+
- '{''end.position'': ''bounds_99_woclip''}'
|
| 28 |
+
- '{''effector.position'': ''bounds_99_woclip''}'
|
| 29 |
+
num_workers: 4
|
| 30 |
+
pin_memory: true
|
| 31 |
+
prefetch_factor: 4
|
| 32 |
+
prompt_type: global
|
| 33 |
+
robot_config_root: ../../configs/phase4_robot_configs
|
| 34 |
+
source_name: null
|
| 35 |
+
state_norm_type: none
|
| 36 |
+
text_keys: messages
|
| 37 |
+
train_path: ../../manifests/e5_allclean_train.txt
|
| 38 |
+
train_size: 10000000
|
| 39 |
+
use_future_image: true
|
| 40 |
+
model:
|
| 41 |
+
adanorm_time: true
|
| 42 |
+
attn_implementation: flash_attention_2
|
| 43 |
+
basic_modules: []
|
| 44 |
+
config_key: LingbotVLAV2Config
|
| 45 |
+
config_path: ../../checkpoints/base/lingbot-vla-v2-6b
|
| 46 |
+
decoders: {}
|
| 47 |
+
encode_target: false
|
| 48 |
+
encoders: {}
|
| 49 |
+
final_norm_adanorm: false
|
| 50 |
+
force_use_huggingface: false
|
| 51 |
+
incremental_training: false
|
| 52 |
+
input_encoder: encoder
|
| 53 |
+
model_path: ../../checkpoints/base/lingbot-vla-v2-6b
|
| 54 |
+
moe_implementation: fused
|
| 55 |
+
output_encoder: decoder
|
| 56 |
+
post_training: true
|
| 57 |
+
tokenizer_path: ../../checkpoints/dependencies/Qwen3-VL-4B-Instruct
|
| 58 |
+
use_lm_head: false
|
| 59 |
+
vit_attn_implementation: flash_attention_2
|
| 60 |
+
vlm_repo_id: null
|
| 61 |
+
vocab_size: 0
|
| 62 |
+
train:
|
| 63 |
+
action_dim: 55
|
| 64 |
+
action_fp32: false
|
| 65 |
+
action_history_length: 8
|
| 66 |
+
action_history_mlp_hidden_size: 1024
|
| 67 |
+
action_history_mode: summary
|
| 68 |
+
activation_gpu_limit: 0.0
|
| 69 |
+
align_params:
|
| 70 |
+
depth:
|
| 71 |
+
block_future_depth_to_action: false
|
| 72 |
+
detach_future_image_feats: true
|
| 73 |
+
dim_head: 32
|
| 74 |
+
dim_out: 1024
|
| 75 |
+
ff_mult: 1
|
| 76 |
+
input_size: 224
|
| 77 |
+
model_type: MoRGBD
|
| 78 |
+
moge_path: ../../checkpoints/dependencies/moge-2-vitb-normal/model.pt
|
| 79 |
+
morgbd_path: ../../checkpoints/base/lingbot-vla-v2-6b/depth/model.pt
|
| 80 |
+
num_backbone_tokens: 256
|
| 81 |
+
num_heads: 4
|
| 82 |
+
num_layers: 1
|
| 83 |
+
token_size: 16
|
| 84 |
+
use_future_depth: true
|
| 85 |
+
depth_loss_weight: 0.004
|
| 86 |
+
future_depth_loss_weight: 0.004
|
| 87 |
+
llm:
|
| 88 |
+
dim_out: 2560
|
| 89 |
+
image_input_size: 224
|
| 90 |
+
image_token_size: 8
|
| 91 |
+
mode: query
|
| 92 |
+
num_task_tokens: 8
|
| 93 |
+
use_future_video: true
|
| 94 |
+
video:
|
| 95 |
+
attention_mode: flex_block_causal
|
| 96 |
+
block_suffix_to_future_video: false
|
| 97 |
+
ckpt_path: ../../checkpoints/base/lingbot-vla-v2-6b/dino_video/teacher_step_10000.pth
|
| 98 |
+
cls_loss_type: mse
|
| 99 |
+
cls_loss_weight: 0.2
|
| 100 |
+
cls_pool: last
|
| 101 |
+
config_path: ../../checkpoints/base/lingbot-vla-v2-6b/dino_video/config.yaml
|
| 102 |
+
cosine_loss_weight: 0.2
|
| 103 |
+
detach_image_feats: true
|
| 104 |
+
dim_head: 32
|
| 105 |
+
dim_out: 1024
|
| 106 |
+
effective_fps: 1.0
|
| 107 |
+
ff_mult: 1
|
| 108 |
+
future_video_loss_weight: 0.004
|
| 109 |
+
input_size: 256
|
| 110 |
+
log_max_samples: 32
|
| 111 |
+
log_scale: 16
|
| 112 |
+
mse_loss_weight: 1.0
|
| 113 |
+
n_blocks: 1
|
| 114 |
+
num_backbone_tokens: 256
|
| 115 |
+
num_future_frames: 1
|
| 116 |
+
num_heads: 4
|
| 117 |
+
num_layers: 1
|
| 118 |
+
share_future_depth_query: true
|
| 119 |
+
use_cls_loss: false
|
| 120 |
+
use_cosine_loss: true
|
| 121 |
+
use_current_patch_loss: true
|
| 122 |
+
use_current_shared_task_proj: true
|
| 123 |
+
use_mse_loss: true
|
| 124 |
+
use_patch_loss: true
|
| 125 |
+
use_shared_future_task_proj: true
|
| 126 |
+
use_smooth_l1_loss: false
|
| 127 |
+
use_warmup_frame: true
|
| 128 |
+
visual_steps: 5000
|
| 129 |
+
allow_partial_checkpoint: false
|
| 130 |
+
async_hf_max_pending: 1
|
| 131 |
+
async_save_hf_weights: false
|
| 132 |
+
attention_implementation: flex_cached
|
| 133 |
+
bias_centering: false
|
| 134 |
+
bias_update_interval: 1
|
| 135 |
+
bias_update_speed: 0.0
|
| 136 |
+
bsz_warmup_init_mbtoken: 200
|
| 137 |
+
bsz_warmup_ratio: 0
|
| 138 |
+
chunk_size: 50
|
| 139 |
+
ckpt_manager: dcp
|
| 140 |
+
context_parallel_size: 1
|
| 141 |
+
data_parallel_mode: fsdp2
|
| 142 |
+
data_parallel_replicate_size: 1
|
| 143 |
+
data_parallel_shard_size: 8
|
| 144 |
+
decayed_max_grad_norm: 1.0
|
| 145 |
+
dyn_bsz: true
|
| 146 |
+
dyn_bsz_buffer_size: 200
|
| 147 |
+
dyn_bsz_margin: 0
|
| 148 |
+
empty_cache_steps: 500
|
| 149 |
+
enable_activation_offload: false
|
| 150 |
+
enable_forward_prefetch: true
|
| 151 |
+
enable_fp32: false
|
| 152 |
+
enable_fsdp_offload: false
|
| 153 |
+
enable_full_determinism: false
|
| 154 |
+
enable_full_shard: true
|
| 155 |
+
enable_gradient_checkpointing: true
|
| 156 |
+
enable_manual_eager: false
|
| 157 |
+
enable_mixed_precision: true
|
| 158 |
+
enable_profiling: false
|
| 159 |
+
enable_reentrant: false
|
| 160 |
+
enable_resume: false
|
| 161 |
+
expert_hidden_size: 768
|
| 162 |
+
expert_intermediate_size: 2752
|
| 163 |
+
expert_parallel_size: 1
|
| 164 |
+
freeze_vision_encoder: false
|
| 165 |
+
freeze_vit: false
|
| 166 |
+
global_batch_size: 192
|
| 167 |
+
gradient_accumulation_steps: 2
|
| 168 |
+
init_device: cuda
|
| 169 |
+
load_checkpoint_path: null
|
| 170 |
+
loss_type: L1_fm
|
| 171 |
+
lr: 0.00015
|
| 172 |
+
lr_decay_ratio: 1.0
|
| 173 |
+
lr_decay_style: cosine
|
| 174 |
+
lr_min: 7.5e-05
|
| 175 |
+
lr_start: 0.0
|
| 176 |
+
lr_warmup_ratio: 0.0
|
| 177 |
+
max_action_dim: 55
|
| 178 |
+
max_grad_norm: 1.0
|
| 179 |
+
max_state_dim: 55
|
| 180 |
+
max_steps: 17178
|
| 181 |
+
micro_batch_size: 12
|
| 182 |
+
module_fsdp_enable: true
|
| 183 |
+
moe_monitor_interval: 1000
|
| 184 |
+
muon_adjust_lr_fn: match_rms_adamw
|
| 185 |
+
muon_exclude_name_patterns: []
|
| 186 |
+
muon_momentum: 0.95
|
| 187 |
+
muon_nesterov: true
|
| 188 |
+
muon_ns_steps: 5
|
| 189 |
+
my_tokenizer_max_length: 72
|
| 190 |
+
num_train_epochs: 6
|
| 191 |
+
optimizer: muon
|
| 192 |
+
output_dir: outputs/train
|
| 193 |
+
pipeline_parallel_size: 1
|
| 194 |
+
precompute_grid_thw: true
|
| 195 |
+
profile_end_step: 2
|
| 196 |
+
profile_profile_memory: true
|
| 197 |
+
profile_record_shapes: true
|
| 198 |
+
profile_start_step: 1
|
| 199 |
+
profile_trace_dir: ./trace
|
| 200 |
+
profile_with_stack: true
|
| 201 |
+
resume_dataloader_state: true
|
| 202 |
+
rmpad: false
|
| 203 |
+
rmpad_with_pos_ids: false
|
| 204 |
+
routed_scaling_factor: 4.0
|
| 205 |
+
router_activation: sigmoid
|
| 206 |
+
router_z_loss_coeff: 0.0001
|
| 207 |
+
save_epochs: 0
|
| 208 |
+
save_hf_weights: true
|
| 209 |
+
save_steps: 1000
|
| 210 |
+
seed: 7
|
| 211 |
+
sequence_wise_loss_coeff: 0.001
|
| 212 |
+
sequence_wise_mode: per_sequence
|
| 213 |
+
split_fused_experts_from_decoder_fsdp: false
|
| 214 |
+
stable_train_steps: 100000
|
| 215 |
+
state_history_length: 2
|
| 216 |
+
state_history_mode: tokens
|
| 217 |
+
state_history_stride: 50
|
| 218 |
+
tensor_parallel_size: 1
|
| 219 |
+
token_moe_intermediate_size: 512
|
| 220 |
+
token_moe_layers:
|
| 221 |
+
- 0
|
| 222 |
+
- 1
|
| 223 |
+
- 2
|
| 224 |
+
- 3
|
| 225 |
+
- 4
|
| 226 |
+
- 5
|
| 227 |
+
- 6
|
| 228 |
+
- 7
|
| 229 |
+
- 8
|
| 230 |
+
- 9
|
| 231 |
+
- 10
|
| 232 |
+
- 11
|
| 233 |
+
- 12
|
| 234 |
+
- 13
|
| 235 |
+
- 14
|
| 236 |
+
- 15
|
| 237 |
+
- 16
|
| 238 |
+
- 17
|
| 239 |
+
- 18
|
| 240 |
+
- 19
|
| 241 |
+
- 20
|
| 242 |
+
- 21
|
| 243 |
+
- 22
|
| 244 |
+
- 23
|
| 245 |
+
- 24
|
| 246 |
+
- 25
|
| 247 |
+
- 26
|
| 248 |
+
- 27
|
| 249 |
+
- 28
|
| 250 |
+
- 29
|
| 251 |
+
- 30
|
| 252 |
+
- 31
|
| 253 |
+
- 32
|
| 254 |
+
- 33
|
| 255 |
+
- 34
|
| 256 |
+
- 35
|
| 257 |
+
token_num_experts: 32
|
| 258 |
+
token_shared_intermediate_size: 704
|
| 259 |
+
token_top_k: 4
|
| 260 |
+
tokenizer_max_length: 72
|
| 261 |
+
train_expert_only: false
|
| 262 |
+
train_state_proj: true
|
| 263 |
+
ulysses_parallel_size: 1
|
| 264 |
+
use_compile: true
|
| 265 |
+
use_doptim: false
|
| 266 |
+
use_moe: true
|
| 267 |
+
use_moe_expert_lr: true
|
| 268 |
+
use_shared_expert_gate: false
|
| 269 |
+
use_wandb: false
|
| 270 |
+
visual_history_gradient_checkpointing: true
|
| 271 |
+
visual_history_length: 2
|
| 272 |
+
visual_history_mode: none
|
| 273 |
+
visual_history_num_cameras: 3
|
| 274 |
+
visual_history_stride: 50
|
| 275 |
+
vit_lr: 1.0e-06
|
| 276 |
+
vlm_causal: true
|
| 277 |
+
vlm_fsdp: true
|
| 278 |
+
wandb_name: null
|
| 279 |
+
wandb_project: lingbotvla
|
| 280 |
+
weight_decay: 0.0
|
configs/evaluation/ep2.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2,
|
| 3 |
+
"files": {
|
| 4 |
+
"config.json": {
|
| 5 |
+
"bytes": 4776,
|
| 6 |
+
"sha256": "cee2cacb112d867b02f762b9b0bf6800c86020654deae6944d947613315c7748"
|
| 7 |
+
},
|
| 8 |
+
"model-00001-of-00006.safetensors": {
|
| 9 |
+
"bytes": 4947507248,
|
| 10 |
+
"sha256": "019db3a1cf8c8daf429e5e13360675a6047499a23400f609600b9bb5d54477f3"
|
| 11 |
+
},
|
| 12 |
+
"model-00002-of-00006.safetensors": {
|
| 13 |
+
"bytes": 4944315304,
|
| 14 |
+
"sha256": "51bafb87d5df23ed6ca7f211435154beac93003d911c279675814be893d8f3ce"
|
| 15 |
+
},
|
| 16 |
+
"model-00003-of-00006.safetensors": {
|
| 17 |
+
"bytes": 4944315360,
|
| 18 |
+
"sha256": "97ecf74efc7cef237bcf513078b3940d714e26965b34deedea5274103f6d8fa3"
|
| 19 |
+
},
|
| 20 |
+
"model-00004-of-00006.safetensors": {
|
| 21 |
+
"bytes": 4992858968,
|
| 22 |
+
"sha256": "4eef0f6f39f9c091cc89b102a04e6d4b2ab7609717e21d3c93c3501fa6e6d58f"
|
| 23 |
+
},
|
| 24 |
+
"model-00005-of-00006.safetensors": {
|
| 25 |
+
"bytes": 4963062048,
|
| 26 |
+
"sha256": "9bff6d6e87cac8d662487a77517bb88d9d22d18a73c26d87fd98036a4e05e87c"
|
| 27 |
+
},
|
| 28 |
+
"model-00006-of-00006.safetensors": {
|
| 29 |
+
"bytes": 717000908,
|
| 30 |
+
"sha256": "2716881bbbcfb87b5ad26484c8ae459e5ebca57545f7f8bd52e6facdc0219dcd"
|
| 31 |
+
},
|
| 32 |
+
"model.safetensors.index.json": {
|
| 33 |
+
"bytes": 208079,
|
| 34 |
+
"sha256": "7177b91ebc4be824b667a27ff11e1c2786c919c9d5ec3df4026143250219c331"
|
| 35 |
+
},
|
| 36 |
+
"training_config.yaml": {
|
| 37 |
+
"bytes": 7533,
|
| 38 |
+
"sha256": "e268943fc0f87701a40f58fcd095e0452eae2d51f1b836c301e52ad0d318d92b"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"normalization_sha256": "51f709ad7b1c9f5b0d94711b96ed4eb56a711791b5720f8291ac1cb727990205",
|
| 42 |
+
"repo_id": "ar-mine/lingbot-vla-v2-6b-e5-c3-epoch2-step17180",
|
| 43 |
+
"step": 17180
|
| 44 |
+
}
|
configs/evaluation/ep6.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 6,
|
| 3 |
+
"files": {
|
| 4 |
+
"config.json": {
|
| 5 |
+
"bytes": 4776,
|
| 6 |
+
"sha256": "cee2cacb112d867b02f762b9b0bf6800c86020654deae6944d947613315c7748"
|
| 7 |
+
},
|
| 8 |
+
"model-00001-of-00006.safetensors": {
|
| 9 |
+
"bytes": 4947507248,
|
| 10 |
+
"sha256": "9e6d91452578e4f29c76d1265b4630350ed34f7b1585283a215cbafe8ed3a3d1"
|
| 11 |
+
},
|
| 12 |
+
"model-00002-of-00006.safetensors": {
|
| 13 |
+
"bytes": 4944315304,
|
| 14 |
+
"sha256": "3e5b2928cba366c983f11d66d535009addc18b6481b0acf8bc204acc5e938d42"
|
| 15 |
+
},
|
| 16 |
+
"model-00003-of-00006.safetensors": {
|
| 17 |
+
"bytes": 4944315360,
|
| 18 |
+
"sha256": "e8fbc25d6109049db6905244069cde7a420b476e5800dd40ea15290eedcb9604"
|
| 19 |
+
},
|
| 20 |
+
"model-00004-of-00006.safetensors": {
|
| 21 |
+
"bytes": 4992858968,
|
| 22 |
+
"sha256": "1b3d24a9981b7d1ebeb98f1c9417acfaa2ed0e81fa0968df0d5698e32b6acc4c"
|
| 23 |
+
},
|
| 24 |
+
"model-00005-of-00006.safetensors": {
|
| 25 |
+
"bytes": 4963062048,
|
| 26 |
+
"sha256": "5b79ccb6c236a6dcba4b77f36714b7b1fec8db9dfb76657ad71ce056b2f12780"
|
| 27 |
+
},
|
| 28 |
+
"model-00006-of-00006.safetensors": {
|
| 29 |
+
"bytes": 717000908,
|
| 30 |
+
"sha256": "b5dbcd73372a344e0f8c9eb5cba54d7f5d19d0df7dbaa9c78a37de5aebcc7d95"
|
| 31 |
+
},
|
| 32 |
+
"model.safetensors.index.json": {
|
| 33 |
+
"bytes": 208079,
|
| 34 |
+
"sha256": "7177b91ebc4be824b667a27ff11e1c2786c919c9d5ec3df4026143250219c331"
|
| 35 |
+
},
|
| 36 |
+
"training_config.yaml": {
|
| 37 |
+
"bytes": 7536,
|
| 38 |
+
"sha256": "f39cd9bbadfaea705e0b6647e9a869cdc40140907dba8bd369db1edd8ee17701"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"normalization_sha256": "51f709ad7b1c9f5b0d94711b96ed4eb56a711791b5720f8291ac1cb727990205",
|
| 42 |
+
"repo_id": "ar-mine/lingbot-vla-v2-6b-e5-c3-epoch6-step17178",
|
| 43 |
+
"step": 17178
|
| 44 |
+
}
|
configs/evaluation/subset_binding.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"files": {
|
| 3 |
+
"benchmarks/robotwin_eval_subset_v2_seen_unseen/SHA256SUMS": {
|
| 4 |
+
"bytes": 55099,
|
| 5 |
+
"sha256": "a8a41f7c5162732cce287e77628840bf754f631825d3a6a343d51c648f932eb9"
|
| 6 |
+
},
|
| 7 |
+
"benchmarks/robotwin_eval_subset_v2_seen_unseen/protocol.json": {
|
| 8 |
+
"bytes": 4520,
|
| 9 |
+
"sha256": "30a5a691f001c3845b5ca41ca3f4ea111610b52efb82509311c24e4066f96efb"
|
| 10 |
+
},
|
| 11 |
+
"release.json": {
|
| 12 |
+
"bytes": 2499,
|
| 13 |
+
"sha256": "3cf0b0bf6c81562407b6e660557f128d2eee620b92f8917fb5ae5a17bb470eb1"
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
"hf_revision": "73277c2022be224d3afb195b503a3cff56ded46d",
|
| 17 |
+
"original_checksum_file_byte_identical": true,
|
| 18 |
+
"original_github_data_commit": "b5abe512dafd400736c6dca5905f2fd262dd9029",
|
| 19 |
+
"repo_id": "ar-mine/robotwin-eval-subset-v2-seen-unseen"
|
| 20 |
+
}
|
configs/phase4_robot_configs/robotwin.yaml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Same joint/camera mapping as the pinned official robotwin.yaml.
|
| 2 |
+
# Relative paths are resolved from third_party/lingbot-vla-v2 (training cwd).
|
| 3 |
+
states:
|
| 4 |
+
- observation.state.arm.position:
|
| 5 |
+
origin_keys:
|
| 6 |
+
- observation.state:
|
| 7 |
+
start: 0
|
| 8 |
+
end: 6
|
| 9 |
+
- observation.state:
|
| 10 |
+
start: 7
|
| 11 |
+
end: 13
|
| 12 |
+
- observation.state.effector.position:
|
| 13 |
+
origin_keys:
|
| 14 |
+
- observation.state:
|
| 15 |
+
start: 6
|
| 16 |
+
end: 7
|
| 17 |
+
- observation.state:
|
| 18 |
+
start: 13
|
| 19 |
+
end: 14
|
| 20 |
+
actions:
|
| 21 |
+
- action.arm.position:
|
| 22 |
+
origin_keys:
|
| 23 |
+
- action:
|
| 24 |
+
start: 0
|
| 25 |
+
end: 6
|
| 26 |
+
- action:
|
| 27 |
+
start: 7
|
| 28 |
+
end: 13
|
| 29 |
+
subtract_state: false
|
| 30 |
+
- action.effector.position:
|
| 31 |
+
origin_keys:
|
| 32 |
+
- action:
|
| 33 |
+
start: 6
|
| 34 |
+
end: 7
|
| 35 |
+
- action:
|
| 36 |
+
start: 13
|
| 37 |
+
end: 14
|
| 38 |
+
subtract_state: false
|
| 39 |
+
images:
|
| 40 |
+
- observation.images.camera_top:
|
| 41 |
+
origin_keys: observation.images.cam_high
|
| 42 |
+
- observation.images.camera_wrist_left:
|
| 43 |
+
origin_keys: observation.images.cam_left_wrist
|
| 44 |
+
- observation.images.camera_wrist_right:
|
| 45 |
+
origin_keys: observation.images.cam_right_wrist
|
| 46 |
+
norm_stats: ../../manifests/norm_stats/robotwin_clean_train_s7.json
|
deployment/finetune/e5_8gpu_rank_entry.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Give each training rank its own node-local compiler caches before imports."""
|
| 2 |
+
import json
|
| 3 |
+
import os
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import sys
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def configure_rank_cache(environment):
|
| 9 |
+
base = Path(environment['PHASE4_NODE_LOCAL_ROOT'])
|
| 10 |
+
rank = int(environment['RANK'])
|
| 11 |
+
if not 0 <= rank < 8:
|
| 12 |
+
raise ValueError('Expected one of eight training ranks')
|
| 13 |
+
cache = base / 'rank_cache' / ('rank_%d' % rank)
|
| 14 |
+
variables = {
|
| 15 |
+
'TORCHINDUCTOR_CACHE_DIR': 'inductor',
|
| 16 |
+
'TRITON_CACHE_DIR': 'triton',
|
| 17 |
+
'TORCH_EXTENSIONS_DIR': 'extensions',
|
| 18 |
+
'CUDA_CACHE_PATH': 'cuda',
|
| 19 |
+
'TORCH_HOME': 'torch',
|
| 20 |
+
'XDG_CACHE_HOME': 'xdg',
|
| 21 |
+
}
|
| 22 |
+
for variable, name in variables.items():
|
| 23 |
+
path = cache / name
|
| 24 |
+
path.mkdir(parents=True, exist_ok=True)
|
| 25 |
+
environment[variable] = str(path)
|
| 26 |
+
receipt = dict(rank=rank, paths={k: environment[k] for k in variables})
|
| 27 |
+
(cache / 'environment.json').write_text(json.dumps(receipt, indent=2) + '\n')
|
| 28 |
+
return receipt
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
if __name__ == '__main__':
|
| 32 |
+
configure_rank_cache(os.environ)
|
| 33 |
+
os.execv(sys.executable, [sys.executable] + sys.argv[1:])
|
deployment/finetune/e5_rank_entry.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Give each training rank its own node-local compiler caches before imports."""
|
| 2 |
+
import json
|
| 3 |
+
import os
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import sys
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def configure_rank_cache(environment):
|
| 9 |
+
base = Path(environment['PHASE4_NODE_LOCAL_ROOT'])
|
| 10 |
+
rank = int(environment['RANK'])
|
| 11 |
+
if not 0 <= rank < 4:
|
| 12 |
+
raise ValueError('Expected one of four training ranks')
|
| 13 |
+
cache = base / 'rank_cache' / ('rank_%d' % rank)
|
| 14 |
+
variables = {
|
| 15 |
+
'TORCHINDUCTOR_CACHE_DIR': 'inductor',
|
| 16 |
+
'TRITON_CACHE_DIR': 'triton',
|
| 17 |
+
'TORCH_EXTENSIONS_DIR': 'extensions',
|
| 18 |
+
'CUDA_CACHE_PATH': 'cuda',
|
| 19 |
+
'TORCH_HOME': 'torch',
|
| 20 |
+
'XDG_CACHE_HOME': 'xdg',
|
| 21 |
+
}
|
| 22 |
+
for variable, name in variables.items():
|
| 23 |
+
path = cache / name
|
| 24 |
+
path.mkdir(parents=True, exist_ok=True)
|
| 25 |
+
environment[variable] = str(path)
|
| 26 |
+
receipt = dict(rank=rank, paths={k: environment[k] for k in variables})
|
| 27 |
+
(cache / 'environment.json').write_text(json.dumps(receipt, indent=2) + '\n')
|
| 28 |
+
return receipt
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
if __name__ == '__main__':
|
| 32 |
+
configure_rank_cache(os.environ)
|
| 33 |
+
os.execv(sys.executable, [sys.executable] + sys.argv[1:])
|
loss/ep2.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
loss/ep6.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
loss/original_training.svg
ADDED
|
|
loss/summary.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ep2": {
|
| 3 |
+
"first_loss": 0.392822265625,
|
| 4 |
+
"last_100_mean_loss": 0.022859344482421873,
|
| 5 |
+
"last_loss": 0.019561767578125,
|
| 6 |
+
"optimizer_steps": 17180,
|
| 7 |
+
"plot_smoothing": "trailing 100 optimizer steps; shorter prefix window at start",
|
| 8 |
+
"raw_record_sha256": "0541f0f7e561b17fc17e535b73b1c6bec752519ce1dc94d8fa6bf903694c20a1",
|
| 9 |
+
"series_semantics": "rank0 phase4_optimizer_step loss, total loss all-reduced over FSDP group"
|
| 10 |
+
},
|
| 11 |
+
"ep6": {
|
| 12 |
+
"first_loss": 0.3944091796875,
|
| 13 |
+
"last_100_mean_loss": 0.016754798889160157,
|
| 14 |
+
"last_loss": 0.018779754638671875,
|
| 15 |
+
"optimizer_steps": 17178,
|
| 16 |
+
"plot_smoothing": "trailing 100 optimizer steps; shorter prefix window at start",
|
| 17 |
+
"raw_record_sha256": "1a12338e544b5acf0def73fb4a852219ae81c96831ee0df0a7fbc7e09874f4dd",
|
| 18 |
+
"series_semantics": "rank0 phase4_optimizer_step loss, total loss all-reduced over FSDP group"
|
| 19 |
+
}
|
| 20 |
+
}
|
manifests/e5_allclean_train.txt
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
robotwin ../../data/lerobot/adjust_bottle/train
|
| 2 |
+
robotwin ../../data/lerobot/adjust_bottle/val
|
| 3 |
+
robotwin ../../data/lerobot/beat_block_hammer/train
|
| 4 |
+
robotwin ../../data/lerobot/beat_block_hammer/val
|
| 5 |
+
robotwin ../../data/lerobot/blocks_ranking_rgb/train
|
| 6 |
+
robotwin ../../data/lerobot/blocks_ranking_rgb/val
|
| 7 |
+
robotwin ../../data/lerobot/blocks_ranking_size/train
|
| 8 |
+
robotwin ../../data/lerobot/blocks_ranking_size/val
|
| 9 |
+
robotwin ../../data/lerobot/click_alarmclock/train
|
| 10 |
+
robotwin ../../data/lerobot/click_alarmclock/val
|
| 11 |
+
robotwin ../../data/lerobot/click_bell/train
|
| 12 |
+
robotwin ../../data/lerobot/click_bell/val
|
| 13 |
+
robotwin ../../data/lerobot/dump_bin_bigbin/train
|
| 14 |
+
robotwin ../../data/lerobot/dump_bin_bigbin/val
|
| 15 |
+
robotwin ../../data/lerobot/grab_roller/train
|
| 16 |
+
robotwin ../../data/lerobot/grab_roller/val
|
| 17 |
+
robotwin ../../data/lerobot/handover_block/train
|
| 18 |
+
robotwin ../../data/lerobot/handover_block/val
|
| 19 |
+
robotwin ../../data/lerobot/handover_mic/train
|
| 20 |
+
robotwin ../../data/lerobot/handover_mic/val
|
| 21 |
+
robotwin ../../data/lerobot/hanging_mug/train
|
| 22 |
+
robotwin ../../data/lerobot/hanging_mug/val
|
| 23 |
+
robotwin ../../data/lerobot/lift_pot/train
|
| 24 |
+
robotwin ../../data/lerobot/lift_pot/val
|
| 25 |
+
robotwin ../../data/lerobot/move_can_pot/train
|
| 26 |
+
robotwin ../../data/lerobot/move_can_pot/val
|
| 27 |
+
robotwin ../../data/lerobot/move_pillbottle_pad/train
|
| 28 |
+
robotwin ../../data/lerobot/move_pillbottle_pad/val
|
| 29 |
+
robotwin ../../data/lerobot/move_playingcard_away/train
|
| 30 |
+
robotwin ../../data/lerobot/move_playingcard_away/val
|
| 31 |
+
robotwin ../../data/lerobot/move_stapler_pad/train
|
| 32 |
+
robotwin ../../data/lerobot/move_stapler_pad/val
|
| 33 |
+
robotwin ../../data/lerobot/open_laptop/train
|
| 34 |
+
robotwin ../../data/lerobot/open_laptop/val
|
| 35 |
+
robotwin ../../data/lerobot/open_microwave/train
|
| 36 |
+
robotwin ../../data/lerobot/open_microwave/val
|
| 37 |
+
robotwin ../../data/lerobot/pick_diverse_bottles/train
|
| 38 |
+
robotwin ../../data/lerobot/pick_diverse_bottles/val
|
| 39 |
+
robotwin ../../data/lerobot/pick_dual_bottles/train
|
| 40 |
+
robotwin ../../data/lerobot/pick_dual_bottles/val
|
| 41 |
+
robotwin ../../data/lerobot/place_a2b_left/train
|
| 42 |
+
robotwin ../../data/lerobot/place_a2b_left/val
|
| 43 |
+
robotwin ../../data/lerobot/place_a2b_right/train
|
| 44 |
+
robotwin ../../data/lerobot/place_a2b_right/val
|
| 45 |
+
robotwin ../../data/lerobot/place_bread_basket/train
|
| 46 |
+
robotwin ../../data/lerobot/place_bread_basket/val
|
| 47 |
+
robotwin ../../data/lerobot/place_bread_skillet/train
|
| 48 |
+
robotwin ../../data/lerobot/place_bread_skillet/val
|
| 49 |
+
robotwin ../../data/lerobot/place_burger_fries/train
|
| 50 |
+
robotwin ../../data/lerobot/place_burger_fries/val
|
| 51 |
+
robotwin ../../data/lerobot/place_can_basket/train
|
| 52 |
+
robotwin ../../data/lerobot/place_can_basket/val
|
| 53 |
+
robotwin ../../data/lerobot/place_cans_plasticbox/train
|
| 54 |
+
robotwin ../../data/lerobot/place_cans_plasticbox/val
|
| 55 |
+
robotwin ../../data/lerobot/place_container_plate/train
|
| 56 |
+
robotwin ../../data/lerobot/place_container_plate/val
|
| 57 |
+
robotwin ../../data/lerobot/place_dual_shoes/train
|
| 58 |
+
robotwin ../../data/lerobot/place_dual_shoes/val
|
| 59 |
+
robotwin ../../data/lerobot/place_empty_cup/train
|
| 60 |
+
robotwin ../../data/lerobot/place_empty_cup/val
|
| 61 |
+
robotwin ../../data/lerobot/place_fan/train
|
| 62 |
+
robotwin ../../data/lerobot/place_fan/val
|
| 63 |
+
robotwin ../../data/lerobot/place_mouse_pad/train
|
| 64 |
+
robotwin ../../data/lerobot/place_mouse_pad/val
|
| 65 |
+
robotwin ../../data/lerobot/place_object_basket/train
|
| 66 |
+
robotwin ../../data/lerobot/place_object_basket/val
|
| 67 |
+
robotwin ../../data/lerobot/place_object_scale/train
|
| 68 |
+
robotwin ../../data/lerobot/place_object_scale/val
|
| 69 |
+
robotwin ../../data/lerobot/place_object_stand/train
|
| 70 |
+
robotwin ../../data/lerobot/place_object_stand/val
|
| 71 |
+
robotwin ../../data/lerobot/place_phone_stand/train
|
| 72 |
+
robotwin ../../data/lerobot/place_phone_stand/val
|
| 73 |
+
robotwin ../../data/lerobot/place_shoe/train
|
| 74 |
+
robotwin ../../data/lerobot/place_shoe/val
|
| 75 |
+
robotwin ../../data/lerobot/press_stapler/train
|
| 76 |
+
robotwin ../../data/lerobot/press_stapler/val
|
| 77 |
+
robotwin ../../data/lerobot/put_bottles_dustbin/train
|
| 78 |
+
robotwin ../../data/lerobot/put_bottles_dustbin/val
|
| 79 |
+
robotwin ../../data/lerobot/put_object_cabinet/train
|
| 80 |
+
robotwin ../../data/lerobot/put_object_cabinet/val
|
| 81 |
+
robotwin ../../data/lerobot/rotate_qrcode/train
|
| 82 |
+
robotwin ../../data/lerobot/rotate_qrcode/val
|
| 83 |
+
robotwin ../../data/lerobot/scan_object/train
|
| 84 |
+
robotwin ../../data/lerobot/scan_object/val
|
| 85 |
+
robotwin ../../data/lerobot/shake_bottle/train
|
| 86 |
+
robotwin ../../data/lerobot/shake_bottle/val
|
| 87 |
+
robotwin ../../data/lerobot/shake_bottle_horizontally/train
|
| 88 |
+
robotwin ../../data/lerobot/shake_bottle_horizontally/val
|
| 89 |
+
robotwin ../../data/lerobot/stack_blocks_three/train
|
| 90 |
+
robotwin ../../data/lerobot/stack_blocks_three/val
|
| 91 |
+
robotwin ../../data/lerobot/stack_blocks_two/train
|
| 92 |
+
robotwin ../../data/lerobot/stack_blocks_two/val
|
| 93 |
+
robotwin ../../data/lerobot/stack_bowls_three/train
|
| 94 |
+
robotwin ../../data/lerobot/stack_bowls_three/val
|
| 95 |
+
robotwin ../../data/lerobot/stack_bowls_two/train
|
| 96 |
+
robotwin ../../data/lerobot/stack_bowls_two/val
|
| 97 |
+
robotwin ../../data/lerobot/stamp_seal/train
|
| 98 |
+
robotwin ../../data/lerobot/stamp_seal/val
|
| 99 |
+
robotwin ../../data/lerobot/turn_switch/train
|
| 100 |
+
robotwin ../../data/lerobot/turn_switch/val
|
manifests/norm_stats/robotwin_clean_train_s7.json
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"norm_stats": {
|
| 3 |
+
"observation.state.arm.position": {
|
| 4 |
+
"mean": [
|
| 5 |
+
-0.2218015342950821,
|
| 6 |
+
1.0852952003479004,
|
| 7 |
+
0.7928197383880615,
|
| 8 |
+
-0.3323887884616852,
|
| 9 |
+
0.06101858988404274,
|
| 10 |
+
-0.0450562946498394,
|
| 11 |
+
0.23319873213768005,
|
| 12 |
+
1.1116381883621216,
|
| 13 |
+
0.8262677192687988,
|
| 14 |
+
-0.3407284915447235,
|
| 15 |
+
-0.015824314206838608,
|
| 16 |
+
0.009350035339593887
|
| 17 |
+
],
|
| 18 |
+
"std": [
|
| 19 |
+
0.37363430857658386,
|
| 20 |
+
0.9939348697662354,
|
| 21 |
+
0.7864470481872559,
|
| 22 |
+
0.6720119714736938,
|
| 23 |
+
0.2499745935201645,
|
| 24 |
+
0.5507621765136719,
|
| 25 |
+
0.3234720826148987,
|
| 26 |
+
1.0183826684951782,
|
| 27 |
+
0.8076410889625549,
|
| 28 |
+
0.7207559943199158,
|
| 29 |
+
0.2623799443244934,
|
| 30 |
+
0.6163324117660522
|
| 31 |
+
],
|
| 32 |
+
"q01": [
|
| 33 |
+
-0.9650917053222656,
|
| 34 |
+
-0.0003164021181873977,
|
| 35 |
+
-0.0017427727580070496,
|
| 36 |
+
-1.593807578086853,
|
| 37 |
+
-0.4257628321647644,
|
| 38 |
+
-2.1449642181396484,
|
| 39 |
+
-0.15960359573364258,
|
| 40 |
+
-0.0017502307891845703,
|
| 41 |
+
-0.0009148390963673592,
|
| 42 |
+
-1.7007898092269897,
|
| 43 |
+
-1.0327709913253784,
|
| 44 |
+
-1.6702170372009277
|
| 45 |
+
],
|
| 46 |
+
"q99": [
|
| 47 |
+
0.1704568862915039,
|
| 48 |
+
2.5753180980682373,
|
| 49 |
+
2.469022035598755,
|
| 50 |
+
1.3214776515960693,
|
| 51 |
+
1.217225432395935,
|
| 52 |
+
1.4091839790344238,
|
| 53 |
+
1.0671677589416504,
|
| 54 |
+
2.6006040573120117,
|
| 55 |
+
2.49291729927063,
|
| 56 |
+
1.3017959594726562,
|
| 57 |
+
1.0509021282196045,
|
| 58 |
+
2.082728385925293
|
| 59 |
+
],
|
| 60 |
+
"q02": [
|
| 61 |
+
-0.9208159446716309,
|
| 62 |
+
-0.0003164021181873977,
|
| 63 |
+
-0.0017427727580070496,
|
| 64 |
+
-1.509069561958313,
|
| 65 |
+
-0.3211984634399414,
|
| 66 |
+
-1.6351041793823242,
|
| 67 |
+
-0.07792139053344727,
|
| 68 |
+
-0.0017502307891845703,
|
| 69 |
+
-0.0009148390963673592,
|
| 70 |
+
-1.6116900444030762,
|
| 71 |
+
-0.9051415920257568,
|
| 72 |
+
-1.545118808746338
|
| 73 |
+
],
|
| 74 |
+
"q98": [
|
| 75 |
+
0.14962148666381836,
|
| 76 |
+
2.49210786819458,
|
| 77 |
+
2.313790798187256,
|
| 78 |
+
1.1557180881500244,
|
| 79 |
+
1.0115631818771362,
|
| 80 |
+
1.1627516746520996,
|
| 81 |
+
0.9438738822937012,
|
| 82 |
+
2.52731990814209,
|
| 83 |
+
2.3536789417266846,
|
| 84 |
+
1.1985032558441162,
|
| 85 |
+
0.6835269927978516,
|
| 86 |
+
1.7406625747680664
|
| 87 |
+
],
|
| 88 |
+
"min": [
|
| 89 |
+
-7.340834140777588,
|
| 90 |
+
-0.0003164021181873977,
|
| 91 |
+
-0.1190902441740036,
|
| 92 |
+
-1.9268131256103516,
|
| 93 |
+
-1.3252469301223755,
|
| 94 |
+
-6.232340335845947,
|
| 95 |
+
-6.316576957702637,
|
| 96 |
+
-0.5742834806442261,
|
| 97 |
+
-0.005311839282512665,
|
| 98 |
+
-1.9893786907196045,
|
| 99 |
+
-2.1285502910614014,
|
| 100 |
+
-6.269529342651367
|
| 101 |
+
],
|
| 102 |
+
"max": [
|
| 103 |
+
5.681515216827393,
|
| 104 |
+
3.8880207538604736,
|
| 105 |
+
4.500889301300049,
|
| 106 |
+
1.789766788482666,
|
| 107 |
+
1.5632697343826294,
|
| 108 |
+
4.389739513397217,
|
| 109 |
+
1.3892723321914673,
|
| 110 |
+
3.242604970932007,
|
| 111 |
+
3.6588551998138428,
|
| 112 |
+
1.9530924558639526,
|
| 113 |
+
1.397123098373413,
|
| 114 |
+
3.503765106201172
|
| 115 |
+
]
|
| 116 |
+
},
|
| 117 |
+
"observation.state.effector.position": {
|
| 118 |
+
"mean": [
|
| 119 |
+
0.6741562485694885,
|
| 120 |
+
0.6716748476028442
|
| 121 |
+
],
|
| 122 |
+
"std": [
|
| 123 |
+
0.4518698453903198,
|
| 124 |
+
0.45221003890037537
|
| 125 |
+
],
|
| 126 |
+
"q01": [
|
| 127 |
+
0.0,
|
| 128 |
+
0.0
|
| 129 |
+
],
|
| 130 |
+
"q99": [
|
| 131 |
+
0.9997999668121338,
|
| 132 |
+
0.9997999668121338
|
| 133 |
+
],
|
| 134 |
+
"q02": [
|
| 135 |
+
0.0,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
"q98": [
|
| 139 |
+
0.9997999668121338,
|
| 140 |
+
0.9997999668121338
|
| 141 |
+
],
|
| 142 |
+
"min": [
|
| 143 |
+
0.0,
|
| 144 |
+
0.0
|
| 145 |
+
],
|
| 146 |
+
"max": [
|
| 147 |
+
1.0,
|
| 148 |
+
1.0
|
| 149 |
+
]
|
| 150 |
+
},
|
| 151 |
+
"action.arm.position": {
|
| 152 |
+
"mean": [
|
| 153 |
+
-0.2371421456336975,
|
| 154 |
+
1.1405216455459595,
|
| 155 |
+
0.8333077430725098,
|
| 156 |
+
-0.3407650291919708,
|
| 157 |
+
0.06622735410928726,
|
| 158 |
+
-0.06108175963163376,
|
| 159 |
+
0.26070570945739746,
|
| 160 |
+
1.2006030082702637,
|
| 161 |
+
0.8885032534599304,
|
| 162 |
+
-0.35232099890708923,
|
| 163 |
+
-0.01776392012834549,
|
| 164 |
+
0.0217923391610384
|
| 165 |
+
],
|
| 166 |
+
"std": [
|
| 167 |
+
0.39080801606178284,
|
| 168 |
+
0.9996752142906189,
|
| 169 |
+
0.7989227771759033,
|
| 170 |
+
0.6973467469215393,
|
| 171 |
+
0.25976479053497314,
|
| 172 |
+
0.5871496796607971,
|
| 173 |
+
0.33891990780830383,
|
| 174 |
+
1.0239731073379517,
|
| 175 |
+
0.8191500306129456,
|
| 176 |
+
0.761202335357666,
|
| 177 |
+
0.2840091288089752,
|
| 178 |
+
0.6741793155670166
|
| 179 |
+
],
|
| 180 |
+
"q01": [
|
| 181 |
+
-0.9676961898803711,
|
| 182 |
+
-0.0003164021181873977,
|
| 183 |
+
-0.0017427727580070496,
|
| 184 |
+
-1.6242835521697998,
|
| 185 |
+
-0.4315398335456848,
|
| 186 |
+
-2.308544158935547,
|
| 187 |
+
-0.16885042190551758,
|
| 188 |
+
-0.0017502307891845703,
|
| 189 |
+
-0.0009148390963673592,
|
| 190 |
+
-1.7149827480316162,
|
| 191 |
+
-1.1004638671875,
|
| 192 |
+
-1.7444939613342285
|
| 193 |
+
],
|
| 194 |
+
"q99": [
|
| 195 |
+
0.2121286392211914,
|
| 196 |
+
2.5792064666748047,
|
| 197 |
+
2.4838061332702637,
|
| 198 |
+
1.340803861618042,
|
| 199 |
+
1.2559317350387573,
|
| 200 |
+
1.4261789321899414,
|
| 201 |
+
1.198167324066162,
|
| 202 |
+
2.6441168785095215,
|
| 203 |
+
2.5420172214508057,
|
| 204 |
+
1.3372783660888672,
|
| 205 |
+
1.1552619934082031,
|
| 206 |
+
2.2742843627929688
|
| 207 |
+
],
|
| 208 |
+
"q02": [
|
| 209 |
+
-0.9286293983459473,
|
| 210 |
+
-0.0003164021181873977,
|
| 211 |
+
-0.0017427727580070496,
|
| 212 |
+
-1.5402888059616089,
|
| 213 |
+
-0.3321748971939087,
|
| 214 |
+
-1.8284258842468262,
|
| 215 |
+
-0.08562755584716797,
|
| 216 |
+
-0.0017502307891845703,
|
| 217 |
+
-0.0009148390963673592,
|
| 218 |
+
-1.6550571918487549,
|
| 219 |
+
-0.9650779962539673,
|
| 220 |
+
-1.5529375076293945
|
| 221 |
+
],
|
| 222 |
+
"q98": [
|
| 223 |
+
0.1704568862915039,
|
| 224 |
+
2.4959962368011475,
|
| 225 |
+
2.3452067375183105,
|
| 226 |
+
1.210723638534546,
|
| 227 |
+
1.0468031167984009,
|
| 228 |
+
1.196742057800293,
|
| 229 |
+
0.9700741767883301,
|
| 230 |
+
2.5502209663391113,
|
| 231 |
+
2.393251895904541,
|
| 232 |
+
1.2678906917572021,
|
| 233 |
+
0.8041050434112549,
|
| 234 |
+
1.8462142944335938
|
| 235 |
+
],
|
| 236 |
+
"min": [
|
| 237 |
+
-7.340834140777588,
|
| 238 |
+
-0.0003164021181873977,
|
| 239 |
+
-0.1190902441740036,
|
| 240 |
+
-1.9268131256103516,
|
| 241 |
+
-1.3252469301223755,
|
| 242 |
+
-6.232340335845947,
|
| 243 |
+
-6.316576957702637,
|
| 244 |
+
-0.5742834806442261,
|
| 245 |
+
-0.005311839282512665,
|
| 246 |
+
-1.9893786907196045,
|
| 247 |
+
-2.1285502910614014,
|
| 248 |
+
-6.269529342651367
|
| 249 |
+
],
|
| 250 |
+
"max": [
|
| 251 |
+
5.681515216827393,
|
| 252 |
+
3.8880207538604736,
|
| 253 |
+
4.500889301300049,
|
| 254 |
+
1.789766788482666,
|
| 255 |
+
1.5632697343826294,
|
| 256 |
+
4.389739513397217,
|
| 257 |
+
1.3892723321914673,
|
| 258 |
+
3.242604970932007,
|
| 259 |
+
3.6588551998138428,
|
| 260 |
+
1.9530924558639526,
|
| 261 |
+
1.397123098373413,
|
| 262 |
+
3.503765106201172
|
| 263 |
+
]
|
| 264 |
+
},
|
| 265 |
+
"action.effector.position": {
|
| 266 |
+
"mean": [
|
| 267 |
+
0.645467221736908,
|
| 268 |
+
0.6442767977714539
|
| 269 |
+
],
|
| 270 |
+
"std": [
|
| 271 |
+
0.462748259305954,
|
| 272 |
+
0.4625539779663086
|
| 273 |
+
],
|
| 274 |
+
"q01": [
|
| 275 |
+
0.0,
|
| 276 |
+
0.0
|
| 277 |
+
],
|
| 278 |
+
"q99": [
|
| 279 |
+
0.9997999668121338,
|
| 280 |
+
0.9997999668121338
|
| 281 |
+
],
|
| 282 |
+
"q02": [
|
| 283 |
+
0.0,
|
| 284 |
+
0.0
|
| 285 |
+
],
|
| 286 |
+
"q98": [
|
| 287 |
+
0.9997999668121338,
|
| 288 |
+
0.9997999668121338
|
| 289 |
+
],
|
| 290 |
+
"min": [
|
| 291 |
+
0.0,
|
| 292 |
+
0.0
|
| 293 |
+
],
|
| 294 |
+
"max": [
|
| 295 |
+
1.0,
|
| 296 |
+
1.0
|
| 297 |
+
]
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
"count": 495287
|
| 301 |
+
}
|
scripts/e5_rollout_history.py
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""E5 dual causal buffers: confirmed command prefix and prior public decisions.
|
| 2 |
+
|
| 3 |
+
The caller invokes record_completed only after take_action returns and the public
|
| 4 |
+
command counter advances. The cache never infers physical state from commands.
|
| 5 |
+
Observe is called at the original 50-command decision boundaries. A reconnect
|
| 6 |
+
invalidates both buffers until an explicit episode/session reset.
|
| 7 |
+
"""
|
| 8 |
+
from collections import deque
|
| 9 |
+
import hashlib
|
| 10 |
+
import json
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
import numpy as np
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class RolloutCombinedHistory:
|
| 16 |
+
def __init__(self, episode_id, output=None, stride=50, session_id=None):
|
| 17 |
+
if stride != 50:
|
| 18 |
+
raise ValueError('E5 retains the 50-command execution protocol')
|
| 19 |
+
self.stride = stride
|
| 20 |
+
self.output = Path(output) if output else None
|
| 21 |
+
if self.output:
|
| 22 |
+
self.output.mkdir(parents=True, exist_ok=True)
|
| 23 |
+
self.reset(episode_id, session_id)
|
| 24 |
+
|
| 25 |
+
def reset(self, episode_id, session_id=None):
|
| 26 |
+
if episode_id is None:
|
| 27 |
+
raise ValueError('Explicit episode identity required')
|
| 28 |
+
self.episode_id = str(episode_id)
|
| 29 |
+
self.session_id = None if session_id is None else str(session_id)
|
| 30 |
+
self.commands = deque(maxlen=8)
|
| 31 |
+
self.completed_commands = 0
|
| 32 |
+
self.decisions = []
|
| 33 |
+
self.last_fields = None
|
| 34 |
+
self.invalidated = False
|
| 35 |
+
self.episode_output = None
|
| 36 |
+
if self.output:
|
| 37 |
+
identity = json.dumps([self.session_id, self.episode_id])
|
| 38 |
+
self.episode_output = self.output / hashlib.sha256(identity.encode()).hexdigest()
|
| 39 |
+
self.episode_output.mkdir(exist_ok=False)
|
| 40 |
+
|
| 41 |
+
def invalidate_on_reconnect(self):
|
| 42 |
+
self.commands.clear()
|
| 43 |
+
self.decisions.clear()
|
| 44 |
+
self.last_fields = None
|
| 45 |
+
self.invalidated = True
|
| 46 |
+
|
| 47 |
+
def _check_session(self, session_id):
|
| 48 |
+
if self.invalidated:
|
| 49 |
+
raise ValueError('Explicit episode reset required after reconnect')
|
| 50 |
+
session_id = None if session_id is None else str(session_id)
|
| 51 |
+
if session_id != self.session_id:
|
| 52 |
+
self.invalidate_on_reconnect()
|
| 53 |
+
raise ValueError('Session changed without explicit episode reset')
|
| 54 |
+
|
| 55 |
+
@staticmethod
|
| 56 |
+
def _counter(value):
|
| 57 |
+
if isinstance(value, (bool, np.bool_)) or not isinstance(value, (int, np.integer)) or value < 0:
|
| 58 |
+
raise ValueError('Expected nonnegative executed command counter')
|
| 59 |
+
return int(value)
|
| 60 |
+
|
| 61 |
+
def record_completed(self, commands, *, before_counter, after_counter, episode_id, session_id=None):
|
| 62 |
+
"""Append only commands confirmed by the returned execution interval."""
|
| 63 |
+
self._check_session(session_id)
|
| 64 |
+
if str(episode_id) != self.episode_id:
|
| 65 |
+
raise ValueError('Episode changed without explicit reset')
|
| 66 |
+
before, after = self._counter(before_counter), self._counter(after_counter)
|
| 67 |
+
values = np.asarray(commands, dtype=np.float32)
|
| 68 |
+
if values.ndim != 2 or values.shape[1] != 14 or len(values) == 0 or not np.isfinite(values).all():
|
| 69 |
+
raise ValueError('Expected a nonempty finite executed command prefix of shape [N,14]')
|
| 70 |
+
if before != self.completed_commands or after-before != len(values):
|
| 71 |
+
raise ValueError('Execution confirmation must be contiguous and match the executed prefix')
|
| 72 |
+
if not self.decisions or after > self.decisions[-1][0]+self.stride:
|
| 73 |
+
raise ValueError('No current decision or command prefix exceeds frozen execution length')
|
| 74 |
+
for value in values:
|
| 75 |
+
self.commands.append(value.copy())
|
| 76 |
+
self.completed_commands = after
|
| 77 |
+
|
| 78 |
+
def _attach(self, observation):
|
| 79 |
+
actions, action_mask, states, state_mask = self.last_fields
|
| 80 |
+
return {**observation, 'action_history_raw': {'action': actions.copy()},
|
| 81 |
+
'action_history_mask': action_mask.copy(),
|
| 82 |
+
'state_history_raw': {'observation.state': states.copy()},
|
| 83 |
+
'state_history_mask': state_mask.copy()}
|
| 84 |
+
|
| 85 |
+
def observe(self, observation, action_counter, call=None, session_id=None):
|
| 86 |
+
self._check_session(session_id)
|
| 87 |
+
counter = self._counter(action_counter)
|
| 88 |
+
state = np.asarray(observation['observation.state'], dtype=np.float32).copy()
|
| 89 |
+
if state.shape != (14,) or not np.isfinite(state).all():
|
| 90 |
+
raise ValueError('Expected finite 14-dimensional public state; no command proxy substitution')
|
| 91 |
+
if counter != self.completed_commands:
|
| 92 |
+
raise ValueError('Observation counter differs from confirmed executed prefix')
|
| 93 |
+
if self.decisions and counter == self.decisions[-1][0]:
|
| 94 |
+
if not np.array_equal(state, self.decisions[-1][1]):
|
| 95 |
+
raise ValueError('Public state changed without executed command advance')
|
| 96 |
+
return self._attach(observation)
|
| 97 |
+
expected = self.decisions[-1][0]+self.stride if self.decisions else 0
|
| 98 |
+
if counter != expected:
|
| 99 |
+
raise ValueError('Decision interval/reset differs from frozen E5 protocol')
|
| 100 |
+
actions = np.zeros((8,14), dtype=np.float32)
|
| 101 |
+
action_mask = np.zeros(8, dtype=np.bool_)
|
| 102 |
+
if self.commands:
|
| 103 |
+
actions[-len(self.commands):] = np.stack(self.commands)
|
| 104 |
+
action_mask[-len(self.commands):] = True
|
| 105 |
+
states = np.zeros((2,14), dtype=np.float32)
|
| 106 |
+
state_mask = np.zeros(2, dtype=np.bool_)
|
| 107 |
+
recent = self.decisions[-2:]
|
| 108 |
+
for slot, (_, old_state) in enumerate(recent, start=2-len(recent)):
|
| 109 |
+
states[slot] = old_state
|
| 110 |
+
state_mask[slot] = True
|
| 111 |
+
self.last_fields = (actions.copy(), action_mask.copy(), states.copy(), state_mask.copy())
|
| 112 |
+
if self.output:
|
| 113 |
+
artifact = self.episode_output/('combined_history_%05d.npz' % counter)
|
| 114 |
+
np.savez_compressed(artifact, action_history_raw=actions, action_history_mask=action_mask,
|
| 115 |
+
state_history_raw=states, state_history_mask=state_mask, current_public_state=state)
|
| 116 |
+
with (self.episode_output/'combined_history_audit.jsonl').open('a') as handle:
|
| 117 |
+
handle.write(json.dumps(dict(episode_id=self.episode_id, session_id=self.session_id, call=call,
|
| 118 |
+
completed_commands=counter, past_decision_counters=[x[0] for x in recent],
|
| 119 |
+
valid_action_rows=int(action_mask.sum()), valid_state_rows=int(state_mask.sum()),
|
| 120 |
+
action_history_sha256=hashlib.sha256(actions.tobytes()).hexdigest(),
|
| 121 |
+
state_history_sha256=hashlib.sha256(states.tobytes()).hexdigest(),
|
| 122 |
+
action_source='confirmed executed command prefix; action offset0 normalization',
|
| 123 |
+
state_source='prior public observation.state; state normalization; not measured qpos',
|
| 124 |
+
history_masks_independent=True))+'\n')
|
| 125 |
+
self.decisions.append((counter,state))
|
| 126 |
+
self.decisions = self.decisions[-2:]
|
| 127 |
+
return self._attach(observation)
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
def empty_history():
|
| 131 |
+
return {'action_history_raw': {'action': np.zeros((8,14),dtype=np.float32)},
|
| 132 |
+
'action_history_mask': np.zeros(8,dtype=np.bool_),
|
| 133 |
+
'state_history_raw': {'observation.state': np.zeros((2,14),dtype=np.float32)},
|
| 134 |
+
'state_history_mask': np.zeros(2,dtype=np.bool_)}
|
scripts/eval_common.py
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Small, dependency-free persistence and whole-device NVML telemetry helpers."""
|
| 2 |
+
import ctypes
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import threading
|
| 7 |
+
import time
|
| 8 |
+
import subprocess
|
| 9 |
+
import sys
|
| 10 |
+
|
| 11 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def save_json(path, value):
|
| 15 |
+
path = Path(path)
|
| 16 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 17 |
+
temporary = path.with_suffix(path.suffix + '.tmp')
|
| 18 |
+
durable = os.environ.get('EVAL_DURABLE_WRITES') == '1'
|
| 19 |
+
with temporary.open('w') as stream:
|
| 20 |
+
stream.write(json.dumps(value, indent=2, ensure_ascii=False, default=str) + '\n')
|
| 21 |
+
if durable:
|
| 22 |
+
stream.flush()
|
| 23 |
+
os.fsync(stream.fileno())
|
| 24 |
+
os.replace(temporary, path)
|
| 25 |
+
if durable:
|
| 26 |
+
directory = os.open(str(path.parent), os.O_RDONLY | os.O_DIRECTORY)
|
| 27 |
+
try:
|
| 28 |
+
os.fsync(directory)
|
| 29 |
+
finally:
|
| 30 |
+
os.close(directory)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def append_json(path, value):
|
| 34 |
+
with Path(path).open('a') as f:
|
| 35 |
+
f.write(json.dumps(value, ensure_ascii=False, default=str) + '\n')
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
class MemoryInfo(ctypes.Structure):
|
| 39 |
+
_fields_ = [(name, ctypes.c_ulonglong) for name in ('total', 'free', 'used')]
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def nvml_device(nvml):
|
| 43 |
+
"""Select the allocation UUID explicitly; CUDA masks do not remap NVML."""
|
| 44 |
+
handle = ctypes.c_void_p()
|
| 45 |
+
uuid = os.environ.get('EVAL_GPU_UUID')
|
| 46 |
+
if uuid:
|
| 47 |
+
if not uuid.startswith('GPU-') or ',' in uuid:
|
| 48 |
+
raise ValueError('EVAL_GPU_UUID must identify exactly one physical GPU')
|
| 49 |
+
code = nvml.nvmlDeviceGetHandleByUUID(uuid.encode(), ctypes.byref(handle))
|
| 50 |
+
else:
|
| 51 |
+
code = nvml.nvmlDeviceGetHandleByIndex_v2(0, ctypes.byref(handle))
|
| 52 |
+
if code:
|
| 53 |
+
raise RuntimeError(f'NVML device selection error {code}')
|
| 54 |
+
return handle
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
class Telemetry:
|
| 58 |
+
def __init__(self, path):
|
| 59 |
+
self.path = Path(path)
|
| 60 |
+
self.nvml = ctypes.CDLL('libnvidia-ml.so.1')
|
| 61 |
+
self.check(self.nvml.nvmlInit_v2())
|
| 62 |
+
self.handle = nvml_device(self.nvml)
|
| 63 |
+
self.rows = []
|
| 64 |
+
self.lock = threading.Lock()
|
| 65 |
+
self.sample()
|
| 66 |
+
# A Python thread misses samples while simulator extensions hold the
|
| 67 |
+
# GIL during setup. A separate sampler process keeps a true 1 s cadence.
|
| 68 |
+
self.process = subprocess.Popen([sys.executable, str(Path(__file__).resolve()),
|
| 69 |
+
'--sample', str(self.path.resolve())],
|
| 70 |
+
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
| 71 |
+
|
| 72 |
+
@staticmethod
|
| 73 |
+
def check(code):
|
| 74 |
+
if code:
|
| 75 |
+
raise RuntimeError(f'NVML error {code}')
|
| 76 |
+
|
| 77 |
+
def sample(self):
|
| 78 |
+
with self.lock:
|
| 79 |
+
info = MemoryInfo()
|
| 80 |
+
code = self.nvml.nvmlDeviceGetMemoryInfo(self.handle, ctypes.byref(info))
|
| 81 |
+
row = {'monotonic': time.monotonic(), 'timestamp': time.time(), 'error': code}
|
| 82 |
+
if os.environ.get('EVAL_GPU_UUID'):
|
| 83 |
+
row['gpu_uuid'] = os.environ['EVAL_GPU_UUID']
|
| 84 |
+
if code == 0:
|
| 85 |
+
row['used_mib'] = info.used / 1024**2
|
| 86 |
+
row['total_mib'] = info.total / 1024**2
|
| 87 |
+
self.rows.append(row)
|
| 88 |
+
append_json(self.path, row)
|
| 89 |
+
return row
|
| 90 |
+
|
| 91 |
+
def summary(self, start, end):
|
| 92 |
+
if hasattr(self, 'path'):
|
| 93 |
+
sampled = []
|
| 94 |
+
for line in self.path.read_text().splitlines():
|
| 95 |
+
try:
|
| 96 |
+
sampled.append(json.loads(line))
|
| 97 |
+
except json.JSONDecodeError:
|
| 98 |
+
pass # The only allowable partial line is the newest write.
|
| 99 |
+
else:
|
| 100 |
+
sampled = self.rows
|
| 101 |
+
rows = sorted([r for r in sampled if start <= r['monotonic'] <= end], key=lambda r:r['monotonic'])
|
| 102 |
+
integral = covered = 0.0
|
| 103 |
+
for a, b in zip(rows, rows[1:]):
|
| 104 |
+
dt = b['monotonic'] - a['monotonic']
|
| 105 |
+
if a['error'] or b['error'] or dt > 2.5:
|
| 106 |
+
continue
|
| 107 |
+
integral += (a['used_mib'] + b['used_mib']) * 0.5 * dt
|
| 108 |
+
covered += dt
|
| 109 |
+
good = [r['used_mib'] for r in rows if not r['error']]
|
| 110 |
+
return {'memory_integral_mib_seconds': integral,
|
| 111 |
+
'memory_covered_seconds': covered,
|
| 112 |
+
'memory_coverage': covered / (end-start) if end > start else 0,
|
| 113 |
+
'mean_memory_mib': integral / covered if covered else None,
|
| 114 |
+
'peak_memory_mib': max(good) if good else None,
|
| 115 |
+
'memory_samples': len(good)}
|
| 116 |
+
|
| 117 |
+
def close(self):
|
| 118 |
+
self.process.terminate()
|
| 119 |
+
self.process.wait(timeout=5)
|
| 120 |
+
self.sample()
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
if __name__ == '__main__' and len(sys.argv) == 3 and sys.argv[1] == '--sample':
|
| 124 |
+
# Construct only the NVML reader, without recursively spawning a sampler.
|
| 125 |
+
reader = Telemetry.__new__(Telemetry)
|
| 126 |
+
reader.path = Path(sys.argv[2])
|
| 127 |
+
reader.nvml = ctypes.CDLL('libnvidia-ml.so.1')
|
| 128 |
+
reader.check(reader.nvml.nvmlInit_v2())
|
| 129 |
+
reader.handle = nvml_device(reader.nvml)
|
| 130 |
+
reader.rows = []
|
| 131 |
+
reader.lock = threading.Lock()
|
| 132 |
+
while True:
|
| 133 |
+
reader.sample()
|
| 134 |
+
reader.rows.clear()
|
| 135 |
+
time.sleep(1)
|
scripts/eval_device.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Opt-in explicit device binding for SAPIEN 3's legacy RoboTwin API."""
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def bind_sapien():
|
| 6 |
+
shader = os.environ.get('EVAL_RENDER_SHADER', 'rt')
|
| 7 |
+
if shader not in ('rt', 'default'):
|
| 8 |
+
raise ValueError('Supported evaluation shaders: rt or default')
|
| 9 |
+
if shader != 'rt':
|
| 10 |
+
import sapien
|
| 11 |
+
original_shader = sapien.render.set_camera_shader_dir
|
| 12 |
+
# Override only the official rt request. All physics/camera geometry and
|
| 13 |
+
# RNG remain unchanged; the new rendering protocol is recorded by the
|
| 14 |
+
# scheduler and must never be merged with local rt measurements.
|
| 15 |
+
def selected_shader(path):
|
| 16 |
+
return original_shader(shader if path == 'rt' else path)
|
| 17 |
+
sapien.render.set_camera_shader_dir = selected_shader
|
| 18 |
+
if not os.environ.get('EVAL_GPU_UUID'):
|
| 19 |
+
return
|
| 20 |
+
if os.environ.get('CUDA_VISIBLE_DEVICES') != os.environ['EVAL_GPU_UUID']:
|
| 21 |
+
raise RuntimeError('Simulator CUDA mask does not match the allocated GPU')
|
| 22 |
+
import sapien
|
| 23 |
+
device = sapien.Device('cuda:0')
|
| 24 |
+
if not device.is_cuda() or not device.can_render():
|
| 25 |
+
raise RuntimeError(f'Allocated GPU cannot render: {device}')
|
| 26 |
+
native_init = sapien.pysapien.render.SapienRenderer.__init__
|
| 27 |
+
sapien.SapienRenderer.__init__ = lambda self, **kw: native_init(self, device)
|
| 28 |
+
from sapien.wrapper.scene import Scene
|
| 29 |
+
original_init = Scene.__init__
|
| 30 |
+
def bound_scene(self, systems=None):
|
| 31 |
+
if systems is None:
|
| 32 |
+
systems = [sapien.physx.PhysxCpuSystem(), sapien.render.RenderSystem(device)]
|
| 33 |
+
original_init(self, systems)
|
| 34 |
+
if self.render_system.device.pci_string != device.pci_string:
|
| 35 |
+
raise RuntimeError('SAPIEN render device differs from allocation')
|
| 36 |
+
Scene.__init__ = bound_scene
|
scripts/eval_diagnostics.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Opt-in durable startup breadcrumbs, outside evaluated episode timings."""
|
| 2 |
+
import faulthandler
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import signal
|
| 7 |
+
import tempfile
|
| 8 |
+
import time
|
| 9 |
+
import traceback
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
_states = {}
|
| 13 |
+
_fault_handler_installed = False
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def _enable_fault_handler():
|
| 17 |
+
"""Let the parent request all Python stacks before terminating a hang."""
|
| 18 |
+
global _fault_handler_installed
|
| 19 |
+
if not _fault_handler_installed:
|
| 20 |
+
faulthandler.enable(all_threads=True)
|
| 21 |
+
faulthandler.register(signal.SIGUSR1, all_threads=True)
|
| 22 |
+
_fault_handler_installed = True
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def emit_startup(output, phase, startup_complete=False, **details):
|
| 26 |
+
"""Persist a startup phase for the external supervisor, when enabled."""
|
| 27 |
+
if os.environ.get('EVAL_STARTUP_DIAGNOSTICS') != '1':
|
| 28 |
+
return
|
| 29 |
+
_enable_fault_handler()
|
| 30 |
+
output = Path(output)
|
| 31 |
+
state = {**details, 'phase': phase, 'startup_complete': bool(startup_complete),
|
| 32 |
+
'timestamp': time.time(), 'monotonic': time.monotonic(), 'pid': os.getpid()}
|
| 33 |
+
output.mkdir(parents=True, exist_ok=True)
|
| 34 |
+
serialized = json.dumps(state, ensure_ascii=False, default=str) + '\n'
|
| 35 |
+
# An event may survive even if the node fails before the state replacement.
|
| 36 |
+
with (output / 'startup_events.jsonl').open('a') as stream:
|
| 37 |
+
stream.write(serialized)
|
| 38 |
+
stream.flush()
|
| 39 |
+
os.fsync(stream.fileno())
|
| 40 |
+
temporary = None
|
| 41 |
+
try:
|
| 42 |
+
with tempfile.NamedTemporaryFile(mode='w', prefix='.startup_state.',
|
| 43 |
+
suffix='.tmp', dir=output, delete=False) as stream:
|
| 44 |
+
temporary = Path(stream.name)
|
| 45 |
+
stream.write(serialized)
|
| 46 |
+
stream.flush()
|
| 47 |
+
os.fsync(stream.fileno())
|
| 48 |
+
os.replace(temporary, output / 'startup_state.json')
|
| 49 |
+
temporary = None
|
| 50 |
+
directory = os.open(output, os.O_RDONLY | os.O_DIRECTORY)
|
| 51 |
+
try:
|
| 52 |
+
os.fsync(directory)
|
| 53 |
+
finally:
|
| 54 |
+
os.close(directory)
|
| 55 |
+
finally:
|
| 56 |
+
if temporary is not None:
|
| 57 |
+
temporary.unlink(missing_ok=True)
|
| 58 |
+
_states[str(output.resolve())] = state
|
| 59 |
+
print(json.dumps({'event': 'startup_phase', **state}, ensure_ascii=False, default=str), flush=True)
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def record_startup_failure(output, error):
|
| 63 |
+
"""Record early import/construction failures without relabeling rollout errors."""
|
| 64 |
+
if os.environ.get('EVAL_STARTUP_DIAGNOSTICS') != '1':
|
| 65 |
+
return
|
| 66 |
+
previous = _states.get(str(Path(output).resolve()), {})
|
| 67 |
+
if previous.get('startup_complete'):
|
| 68 |
+
return
|
| 69 |
+
emit_startup(output, 'startup_failed', failed_phase=previous.get('phase'),
|
| 70 |
+
error_type=type(error).__name__, error=str(error),
|
| 71 |
+
traceback=traceback.format_exc())
|
scripts/eval_model_registry.py
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Portable release identity adapter; original loading and rollout math are unchanged."""
|
| 2 |
+
import hashlib
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
MODEL_NAMES = ('e5',)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def file_sha256(path):
|
| 11 |
+
digest = hashlib.sha256()
|
| 12 |
+
with Path(path).open('rb') as stream:
|
| 13 |
+
for block in iter(lambda: stream.read(8*1024*1024), b''):
|
| 14 |
+
digest.update(block)
|
| 15 |
+
return digest.hexdigest()
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def profile(root):
|
| 19 |
+
epoch = os.environ.get('E5_EPOCH', '')
|
| 20 |
+
if epoch not in ('ep2', 'ep6'):
|
| 21 |
+
raise ValueError('Set E5_EPOCH to ep2 or ep6')
|
| 22 |
+
value = json.loads((Path(root)/'configs/evaluation'/(epoch+'.json')).read_text())
|
| 23 |
+
if value['epoch'] != int(epoch[2:]) or value['step'] != {'ep2':17180,'ep6':17178}[epoch]:
|
| 24 |
+
raise ValueError('Release identity mismatch')
|
| 25 |
+
return value
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def expected_metadata(root):
|
| 29 |
+
value = profile(root)
|
| 30 |
+
return {'checkpoint_source_kind':'original_public_e5_c3', 'repo_id':value['repo_id'],
|
| 31 |
+
'training_epoch':value['epoch'], 'training_step':value['step'],
|
| 32 |
+
'checkpoint_index_sha256':value['files']['model.safetensors.index.json']['sha256'],
|
| 33 |
+
'checkpoint_config_sha256':value['files']['config.json']['sha256'],
|
| 34 |
+
'checkpoint_files_verified':True, 'action_history_mode':'summary',
|
| 35 |
+
'action_history_length':8, 'action_history_mlp_hidden_size':1024,
|
| 36 |
+
'visual_history_mode':'none', 'state_history_mode':'tokens',
|
| 37 |
+
'state_history_length':2, 'state_history_stride':50}
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def verify_checkpoint(root):
|
| 41 |
+
root = Path(root)
|
| 42 |
+
value = profile(root)
|
| 43 |
+
checkpoint = root/'checkpoints'/('ep'+str(value['epoch']))
|
| 44 |
+
for name, expected in value['files'].items():
|
| 45 |
+
if Path(name).name != name:
|
| 46 |
+
raise ValueError('Invalid checkpoint filename')
|
| 47 |
+
path = checkpoint/name
|
| 48 |
+
if path.stat().st_size != expected['bytes'] or file_sha256(path) != expected['sha256']:
|
| 49 |
+
raise ValueError('Checkpoint file hash mismatch: '+name)
|
| 50 |
+
index = json.loads((checkpoint/'model.safetensors.index.json').read_text())
|
| 51 |
+
if len(index['weight_map']) != 1716 or set(index['weight_map'].values()) != {
|
| 52 |
+
f'model-{i:05d}-of-00006.safetensors' for i in range(1,7)}:
|
| 53 |
+
raise ValueError('Checkpoint tensor/shard membership mismatch')
|
| 54 |
+
norm = root/'manifests/norm_stats/robotwin_clean_train_s7.json'
|
| 55 |
+
if file_sha256(norm) != value['normalization_sha256']:
|
| 56 |
+
raise ValueError('Normalization identity mismatch')
|
| 57 |
+
return checkpoint,norm,expected_metadata(root)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def validate_server_identity(metadata,root):
|
| 61 |
+
if any(metadata.get(k) != v for k,v in expected_metadata(root).items()):
|
| 62 |
+
raise ValueError('Server did not load the selected original release')
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def validate_lora_identity(metadata,root):
|
| 66 |
+
raise ValueError('This release supports original E5+C3 checkpoints only')
|
scripts/eval_official_worker.py
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""One RoboTwin task/setting process: shared expert seed preparation or policy eval.
|
| 3 |
+
|
| 4 |
+
Uses the pinned official task classes, configuration, instructions, action mapping,
|
| 5 |
+
chunk loop and success check. The adapter adds fixed seeds, timing and resumption.
|
| 6 |
+
"""
|
| 7 |
+
import argparse
|
| 8 |
+
import importlib
|
| 9 |
+
import json
|
| 10 |
+
import os
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
import random
|
| 13 |
+
import signal
|
| 14 |
+
import sys
|
| 15 |
+
import time
|
| 16 |
+
import traceback
|
| 17 |
+
|
| 18 |
+
from eval_common import ROOT, Telemetry, append_json, save_json
|
| 19 |
+
from eval_diagnostics import emit_startup, record_startup_failure
|
| 20 |
+
|
| 21 |
+
ROBOTWIN = ROOT / 'third_party/RoboTwin'
|
| 22 |
+
LINGBOT = ROOT / 'third_party/lingbot-vla-v2'
|
| 23 |
+
os.environ['XDG_CACHE_HOME'] = str(ROOT / '.cache')
|
| 24 |
+
os.environ['MPLCONFIGDIR'] = str(ROOT / '.cache/matplotlib')
|
| 25 |
+
os.environ['TORCH_EXTENSIONS_DIR'] = str(ROOT / '.cache/torch_extensions_sim')
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def config(task, setting):
|
| 29 |
+
import yaml
|
| 30 |
+
root = ROBOTWIN / 'task_config'
|
| 31 |
+
cfg = yaml.safe_load((root / f'demo_{setting}.yml').read_text())
|
| 32 |
+
embodiment = yaml.safe_load((root / '_embodiment_config.yml').read_text())
|
| 33 |
+
cameras = yaml.safe_load((root / '_camera_config.yml').read_text())
|
| 34 |
+
assert cfg['embodiment'] == ['aloha-agilex']
|
| 35 |
+
robot_dir = embodiment['aloha-agilex']['file_path']
|
| 36 |
+
robot_cfg = yaml.safe_load((ROBOTWIN / robot_dir / 'config.yml').read_text())
|
| 37 |
+
camera = cameras[cfg['camera']['head_camera_type']]
|
| 38 |
+
cfg.update(task_name=task, task_config=f'demo_{setting}', eval_mode=True,
|
| 39 |
+
collect_data=False, save_data=False, render_freq=0, eval_video_log=False,
|
| 40 |
+
left_robot_file=robot_dir, right_robot_file=robot_dir, dual_arm_embodied=True,
|
| 41 |
+
left_embodiment_config=robot_cfg, right_embodiment_config=robot_cfg,
|
| 42 |
+
head_camera_h=camera['h'], head_camera_w=camera['w'])
|
| 43 |
+
return cfg
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def observation(env):
|
| 47 |
+
import numpy as np
|
| 48 |
+
obs = env.get_obs()
|
| 49 |
+
for name in ('head_camera', 'left_camera', 'right_camera'):
|
| 50 |
+
image = np.asarray(obs['observation'][name]['rgb'])
|
| 51 |
+
if image.shape != (240, 320, 3) or not np.isfinite(image).all() or image.std() == 0:
|
| 52 |
+
raise RuntimeError(f'Invalid camera observation: {name}, {image.shape}')
|
| 53 |
+
return {'observation.images.cam_high': obs['observation']['head_camera']['rgb'],
|
| 54 |
+
'observation.images.cam_left_wrist': obs['observation']['left_camera']['rgb'],
|
| 55 |
+
'observation.images.cam_right_wrist': obs['observation']['right_camera']['rgb'],
|
| 56 |
+
'observation.state': obs['joint_action']['vector'], 'task': env.get_instruction()}
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def restore_scene_sequence(env, row):
|
| 60 |
+
"""Make resumed v1 scenes match the original uninterrupted 0..9 sequence.
|
| 61 |
+
|
| 62 |
+
Upstream get_cluttered_table mutates its x/y default lists in place on each
|
| 63 |
+
setup. Only these two tasks use a nonzero table offset. Passing fresh,
|
| 64 |
+
explicitly replayed bounds preserves the existing BF16 reference scenes,
|
| 65 |
+
including their upstream clutter drift, without depending on worker age.
|
| 66 |
+
This is v1 compatibility, NOT a correction of upstream scene generation.
|
| 67 |
+
"""
|
| 68 |
+
if row['task'] not in ('dump_bin_bigbin', 'put_bottles_dustbin') or row['setting'] != 'randomized':
|
| 69 |
+
return {}
|
| 70 |
+
sequence_index = row.get('scene_sequence_index', row['index'])
|
| 71 |
+
if not 0 <= sequence_index < 10:
|
| 72 |
+
raise ValueError('Invalid frozen episode index')
|
| 73 |
+
# Addition order matters: reproduce each preceding setup's exact floats.
|
| 74 |
+
xlim, ylim = [-0.59, 0.59], [-0.34, 0.34]
|
| 75 |
+
for _ in range(sequence_index):
|
| 76 |
+
xlim[0] += 0.3
|
| 77 |
+
xlim[1] += 0.3
|
| 78 |
+
from envs._base_task import Base_Task
|
| 79 |
+
def frozen_clutter():
|
| 80 |
+
if list(env.table_xy_bias) != [0.3, 0]:
|
| 81 |
+
raise RuntimeError('Unexpected table offset for v1 scene restoration')
|
| 82 |
+
return Base_Task.get_cluttered_table(env, xlim=xlim.copy(), ylim=ylim.copy(), zlim=[0.741])
|
| 83 |
+
env.get_cluttered_table = frozen_clutter
|
| 84 |
+
return {'protocol': 'v1_uninterrupted_cell_sequence',
|
| 85 |
+
'prior_setups': sequence_index, 'xlim_before_setup': xlim, 'ylim_before_setup': ylim}
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def restore_task_state(env, row):
|
| 89 |
+
"""Restore deterministic pre-action fields normally left by play_once.
|
| 90 |
+
|
| 91 |
+
The official client reuses its expert environment for policy evaluation.
|
| 92 |
+
Our separate workers must recreate these three tasks' success-check inputs
|
| 93 |
+
after EVERY setup, including later episodes in the same worker.
|
| 94 |
+
"""
|
| 95 |
+
task = row['task']
|
| 96 |
+
if task not in ('open_laptop', 'place_object_scale', 'put_object_cabinet'):
|
| 97 |
+
return {}
|
| 98 |
+
from envs.utils import ArmTag, get_face_prod
|
| 99 |
+
if task == 'open_laptop':
|
| 100 |
+
face_prod = get_face_prod(env.laptop.get_pose().q, [1, 0, 0], [1, 0, 0])
|
| 101 |
+
arm = 'left' if face_prod > 0 else 'right'
|
| 102 |
+
else:
|
| 103 |
+
arm = 'right' if env.object.get_pose().p[0] > 0 else 'left'
|
| 104 |
+
if arm != row['scene_info']['{a}']:
|
| 105 |
+
raise RuntimeError(f'Expert/policy scene arm mismatch: {task}, seed {row["seed"]}')
|
| 106 |
+
env.arm_tag = ArmTag(arm)
|
| 107 |
+
state = {'arm_tag': arm}
|
| 108 |
+
if task == 'put_object_cabinet':
|
| 109 |
+
env.origin_z = env.object.get_pose().p[2]
|
| 110 |
+
state['origin_z'] = float(env.origin_z)
|
| 111 |
+
return state
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def release_unused_cuda_cache(env):
|
| 115 |
+
# Return expert-only allocations before Vulkan allocates render targets.
|
| 116 |
+
import gc
|
| 117 |
+
import pickle
|
| 118 |
+
import torch
|
| 119 |
+
import numpy as np
|
| 120 |
+
def snapshot():
|
| 121 |
+
return pickle.dumps((env.robot.get_left_arm_jointState(), env.robot.get_right_arm_jointState(),
|
| 122 |
+
[(a.get_name(), a.get_pose().p.tolist(), a.get_pose().q.tolist())
|
| 123 |
+
for a in env.scene.get_all_actors()], np.random.get_state(), random.getstate()))
|
| 124 |
+
initial = snapshot()
|
| 125 |
+
before = torch.cuda.memory_reserved()
|
| 126 |
+
# All experts ran in a separate preparation process. Joint-position policy
|
| 127 |
+
# execution needs MPlib TOPP and the CPU gripper interpolation only, not
|
| 128 |
+
# CuRobo MotionGen or its CUDA graphs. Preserve planner objects/metadata so
|
| 129 |
+
# Robot.reset and the exact official gripper function remain unchanged.
|
| 130 |
+
if env.robot.communication_flag:
|
| 131 |
+
raise RuntimeError('Expert-engine release is only validated for in-process Aloha planners')
|
| 132 |
+
def unavailable(*a, **kw):
|
| 133 |
+
raise RuntimeError('Policy rollout unexpectedly requested expert GPU planning')
|
| 134 |
+
for planner in (env.robot.left_planner, env.robot.right_planner):
|
| 135 |
+
for key in ('motion_gen', 'motion_gen_batch'):
|
| 136 |
+
if hasattr(planner, key):
|
| 137 |
+
delattr(planner, key)
|
| 138 |
+
planner.plan_path = unavailable
|
| 139 |
+
planner.plan_batch = unavailable
|
| 140 |
+
gc.collect()
|
| 141 |
+
torch.cuda.empty_cache()
|
| 142 |
+
if snapshot() != initial:
|
| 143 |
+
raise RuntimeError('Expert-engine release changed scene, joints or random state')
|
| 144 |
+
print(json.dumps({'event': 'release_unused_sim_cache',
|
| 145 |
+
'reserved_before_mib': before/1024**2,
|
| 146 |
+
'reserved_after_mib': torch.cuda.memory_reserved()/1024**2,
|
| 147 |
+
'scene_joint_rng_unchanged': True}), flush=True)
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def prepare(args, env, cfg):
|
| 151 |
+
from envs.utils.create_actor import UnStableError
|
| 152 |
+
from generate_episode_instructions import generate_episode_descriptions
|
| 153 |
+
import numpy as np
|
| 154 |
+
path = args.manifest_dir / f'{args.task}__{args.setting}.json'
|
| 155 |
+
if path.exists():
|
| 156 |
+
previous = json.loads(path.read_text())
|
| 157 |
+
if previous['status'] == 'ready' and len(previous['episodes']) == 10:
|
| 158 |
+
print('Reusing frozen seed manifest', path, flush=True)
|
| 159 |
+
return
|
| 160 |
+
raise RuntimeError('Partial manifest exists; inspect before replacing')
|
| 161 |
+
result = {'task': args.task, 'setting': args.setting, 'status': 'preparing',
|
| 162 |
+
'start_seed': args.start_seed, 'candidate_limit': 200,
|
| 163 |
+
'instruction_type': 'unseen', 'episodes': [], 'rejections': [],
|
| 164 |
+
'policy_evaluation_during_selection': False}
|
| 165 |
+
started = time.monotonic()
|
| 166 |
+
try:
|
| 167 |
+
for seed in range(args.start_seed, args.start_seed+200):
|
| 168 |
+
signal.alarm(240)
|
| 169 |
+
t = time.monotonic()
|
| 170 |
+
random.seed(seed)
|
| 171 |
+
expert_error = None
|
| 172 |
+
try:
|
| 173 |
+
env.setup_demo(now_ep_num=len(result['episodes']), seed=seed, is_test=True, **cfg)
|
| 174 |
+
try:
|
| 175 |
+
info = env.play_once()
|
| 176 |
+
except (TypeError, ValueError, IndexError, AssertionError) as error:
|
| 177 |
+
# The official client rejects candidates when expert planning
|
| 178 |
+
# raises (e.g. no feasible grasp returns None). Keep setup,
|
| 179 |
+
# asset, timeout, CUDA and Vulkan errors fatal; bound candidate
|
| 180 |
+
# selection and retain the exact expert failure for audit.
|
| 181 |
+
expert_error = {'type': type(error).__name__, 'message': str(error),
|
| 182 |
+
'traceback': traceback.format_exc()}
|
| 183 |
+
env.close_env()
|
| 184 |
+
accepted = expert_error is None and bool(env.plan_success and env.check_success())
|
| 185 |
+
reason = ('expert_exception' if expert_error is not None else
|
| 186 |
+
None if accepted else 'expert_plan_or_success_failed')
|
| 187 |
+
except UnStableError as error:
|
| 188 |
+
accepted, reason = False, str(error)
|
| 189 |
+
env.close_env()
|
| 190 |
+
if accepted:
|
| 191 |
+
# Instruction draw is fixed independently from policy inference RNG.
|
| 192 |
+
random.seed(seed+9107)
|
| 193 |
+
descriptions = generate_episode_descriptions(args.task, [info['info']], 10)
|
| 194 |
+
if not descriptions or not descriptions[0]['unseen']:
|
| 195 |
+
raise RuntimeError('No unseen instructions')
|
| 196 |
+
instruction = str(np.random.RandomState(seed+9107).choice(descriptions[0]['unseen']))
|
| 197 |
+
row = {'task': args.task, 'setting': args.setting, 'index': len(result['episodes']),
|
| 198 |
+
'seed': seed, 'policy_seed': seed+42, 'instruction': instruction,
|
| 199 |
+
'scene_info': info['info'], 'precheck_seconds': time.monotonic()-t}
|
| 200 |
+
result['episodes'].append(row)
|
| 201 |
+
else:
|
| 202 |
+
result['rejections'].append({'seed': seed, 'reason': reason, 'seconds': time.monotonic()-t,
|
| 203 |
+
**({'expert_error': expert_error} if expert_error else {})})
|
| 204 |
+
signal.alarm(0)
|
| 205 |
+
print(json.dumps({'seed': seed, 'accepted': accepted, 'count': len(result['episodes']),
|
| 206 |
+
'seconds': time.monotonic()-t}), flush=True)
|
| 207 |
+
save_json(args.output / 'precheck_progress.json', result)
|
| 208 |
+
if len(result['episodes']) == 10:
|
| 209 |
+
break
|
| 210 |
+
if len(result['episodes']) != 10:
|
| 211 |
+
raise RuntimeError('Fewer than 10 valid seeds within 200 candidates')
|
| 212 |
+
result['status'] = 'ready'
|
| 213 |
+
result['seconds'] = time.monotonic()-started
|
| 214 |
+
save_json(path, result)
|
| 215 |
+
finally:
|
| 216 |
+
signal.alarm(0)
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
def evaluate(args, env, cfg):
|
| 220 |
+
emit_startup(args.output, 'evaluation_imports_started')
|
| 221 |
+
import numpy as np
|
| 222 |
+
from deploy.websocket_client_policy import WebsocketClientPolicy
|
| 223 |
+
emit_startup(args.output, 'evaluation_imports_complete')
|
| 224 |
+
manifest = json.loads((args.manifest_dir / f'{args.task}__{args.setting}.json').read_text())
|
| 225 |
+
assert manifest['status'] == 'ready' and len(manifest['episodes']) == 10
|
| 226 |
+
rows = manifest['episodes']
|
| 227 |
+
if args.indices:
|
| 228 |
+
wanted = {int(i) for i in args.indices.split(',')}
|
| 229 |
+
rows = [r for r in rows if r['index'] in wanted]
|
| 230 |
+
emit_startup(args.output, 'policy_client_connecting', port=args.port)
|
| 231 |
+
model = WebsocketClientPolicy(host='127.0.0.1', port=args.port)
|
| 232 |
+
metadata = model.get_server_metadata()
|
| 233 |
+
assert metadata['model'] == args.model and metadata['precision'] == args.precision, metadata
|
| 234 |
+
save_json(args.output / 'server_metadata.json', metadata)
|
| 235 |
+
emit_startup(args.output, 'policy_client_ready', model=args.model, precision=args.precision)
|
| 236 |
+
emit_startup(args.output, 'telemetry_initializing')
|
| 237 |
+
telemetry = Telemetry(args.output / 'gpu_samples.jsonl')
|
| 238 |
+
completed = []
|
| 239 |
+
try:
|
| 240 |
+
emit_startup(args.output, 'worker_ready', startup_complete=True)
|
| 241 |
+
for row in rows:
|
| 242 |
+
args.output.mkdir(parents=True, exist_ok=True)
|
| 243 |
+
record_path = args.results_dir / f"{args.model}_{args.precision}" / f"{args.task}__{args.setting}__{row['index']:02d}.json"
|
| 244 |
+
if record_path.exists():
|
| 245 |
+
saved = json.loads(record_path.read_text())
|
| 246 |
+
assert saved['seed'] == row['seed'] and saved['status'] == 'completed'
|
| 247 |
+
continue
|
| 248 |
+
signal.alarm(900)
|
| 249 |
+
random.seed(row['seed'])
|
| 250 |
+
boundary = telemetry.sample()
|
| 251 |
+
start = boundary['monotonic']
|
| 252 |
+
append_json(args.output / 'events.jsonl', {'event': 'episode_started', 'timestamp': time.time(), **row})
|
| 253 |
+
scene_sequence = restore_scene_sequence(env, row)
|
| 254 |
+
env.setup_demo(now_ep_num=row['index'], seed=row['seed'], is_test=True, **cfg)
|
| 255 |
+
restored_state = restore_task_state(env, row)
|
| 256 |
+
release_unused_cuda_cache(env)
|
| 257 |
+
env.set_instruction(instruction=row['instruction'])
|
| 258 |
+
model.infer(dict(reset=True, robo_name='robotwin', policy_seed=row['policy_seed']))
|
| 259 |
+
rollout_start = time.monotonic()
|
| 260 |
+
success = False
|
| 261 |
+
calls = 0
|
| 262 |
+
latencies = []
|
| 263 |
+
while env.take_action_cnt < env.step_lim and not success:
|
| 264 |
+
obs = observation(env)
|
| 265 |
+
call_start = time.monotonic()
|
| 266 |
+
response = model.infer(obs)
|
| 267 |
+
latencies.append(time.monotonic()-call_start)
|
| 268 |
+
calls += 1
|
| 269 |
+
actions = np.asarray(response['action'])
|
| 270 |
+
if actions.shape != (50, 14) or not np.isfinite(actions).all():
|
| 271 |
+
raise RuntimeError(f'Invalid actions: {actions.shape}')
|
| 272 |
+
for action in actions:
|
| 273 |
+
if env.take_action_cnt >= env.step_lim:
|
| 274 |
+
break
|
| 275 |
+
env.take_action(action)
|
| 276 |
+
if env.eval_success:
|
| 277 |
+
success = True
|
| 278 |
+
break
|
| 279 |
+
rollout_seconds = time.monotonic()-rollout_start
|
| 280 |
+
action_count, step_limit = env.take_action_cnt, env.step_lim
|
| 281 |
+
env.close_env(clear_cache=((row['index']+1) % cfg['clear_cache_freq'] == 0))
|
| 282 |
+
end = telemetry.sample()['monotonic']
|
| 283 |
+
result = {**row, 'model': args.model, 'precision': args.precision,
|
| 284 |
+
'status': 'completed', 'success': success,
|
| 285 |
+
'episode_wall_seconds': end-start, 'rollout_seconds': rollout_seconds,
|
| 286 |
+
'actions': action_count, 'step_limit': step_limit, 'policy_calls': calls,
|
| 287 |
+
'mean_policy_request_seconds': sum(latencies)/len(latencies),
|
| 288 |
+
'monotonic_start': start, 'monotonic_end': end,
|
| 289 |
+
'finished_at': time.time(), 'attempt_dir': str(args.output),
|
| 290 |
+
'video': False, 'expert_gpu_engines_released': True,
|
| 291 |
+
'render_shader': os.environ.get('EVAL_RENDER_SHADER', 'rt'),
|
| 292 |
+
'evaluation_protocol': os.environ.get('EVAL_PROTOCOL', 'local_v1_rt'),
|
| 293 |
+
'restored_task_state': restored_state,
|
| 294 |
+
'restored_scene_sequence': scene_sequence,
|
| 295 |
+
**telemetry.summary(start, end)}
|
| 296 |
+
if result['memory_coverage'] < 0.98:
|
| 297 |
+
raise RuntimeError(f'Insufficient telemetry coverage: {result["memory_coverage"]}')
|
| 298 |
+
save_json(record_path, result)
|
| 299 |
+
append_json(args.output / 'events.jsonl', {'event': 'episode_finished', **result})
|
| 300 |
+
completed.append(result)
|
| 301 |
+
print(json.dumps({'event': 'episode_finished', **result}), flush=True)
|
| 302 |
+
signal.alarm(0)
|
| 303 |
+
save_json(args.output / 'result.json', {'status': 'completed', 'episodes': completed})
|
| 304 |
+
finally:
|
| 305 |
+
telemetry.close()
|
| 306 |
+
signal.alarm(0)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
def main():
|
| 310 |
+
p = argparse.ArgumentParser()
|
| 311 |
+
p.add_argument('--mode', choices=['prepare', 'evaluate'], required=True)
|
| 312 |
+
p.add_argument('--task', required=True)
|
| 313 |
+
p.add_argument('--setting', choices=['clean', 'randomized'], required=True)
|
| 314 |
+
p.add_argument('--start-seed', type=int, default=300000)
|
| 315 |
+
p.add_argument('--output', type=Path, required=True)
|
| 316 |
+
p.add_argument('--manifest-dir', type=Path, required=True)
|
| 317 |
+
p.add_argument('--results-dir', type=Path)
|
| 318 |
+
p.add_argument('--model', choices=['base', 'robotwin'])
|
| 319 |
+
p.add_argument('--precision', choices=['bf16', 'fp32'])
|
| 320 |
+
p.add_argument('--port', type=int, default=9340)
|
| 321 |
+
p.add_argument('--indices')
|
| 322 |
+
args = p.parse_args()
|
| 323 |
+
args.output = args.output.resolve()
|
| 324 |
+
args.manifest_dir = args.manifest_dir.resolve()
|
| 325 |
+
args.results_dir = args.results_dir.resolve() if args.results_dir else None
|
| 326 |
+
args.output.mkdir(parents=True, exist_ok=True)
|
| 327 |
+
args.manifest_dir.mkdir(parents=True, exist_ok=True)
|
| 328 |
+
def timeout(signum, frame):
|
| 329 |
+
raise TimeoutError('Per-seed/precheck or episode timeout')
|
| 330 |
+
env = None
|
| 331 |
+
try:
|
| 332 |
+
emit_startup(args.output, 'python_entry', role='worker', task=args.task,
|
| 333 |
+
setting=args.setting, mode=args.mode)
|
| 334 |
+
signal.signal(signal.SIGALRM, timeout)
|
| 335 |
+
os.chdir(ROBOTWIN)
|
| 336 |
+
sys.path[:0] = [str(ROBOTWIN), str(ROBOTWIN/'description/utils'), str(LINGBOT)]
|
| 337 |
+
emit_startup(args.output, 'sapien_binding_started')
|
| 338 |
+
from eval_device import bind_sapien
|
| 339 |
+
bind_sapien()
|
| 340 |
+
emit_startup(args.output, 'sapien_binding_complete')
|
| 341 |
+
emit_startup(args.output, 'task_import_started', task=args.task)
|
| 342 |
+
cls = getattr(importlib.import_module('envs.'+args.task), args.task)
|
| 343 |
+
emit_startup(args.output, 'task_import_complete')
|
| 344 |
+
emit_startup(args.output, 'environment_constructing')
|
| 345 |
+
env = cls()
|
| 346 |
+
emit_startup(args.output, 'environment_constructed')
|
| 347 |
+
emit_startup(args.output, 'config_loading')
|
| 348 |
+
cfg = config(args.task, args.setting)
|
| 349 |
+
emit_startup(args.output, 'config_loaded')
|
| 350 |
+
if args.mode == 'prepare':
|
| 351 |
+
emit_startup(args.output, 'preparation_ready', startup_complete=True)
|
| 352 |
+
prepare(args, env, cfg)
|
| 353 |
+
else:
|
| 354 |
+
evaluate(args, env, cfg)
|
| 355 |
+
except BaseException as error:
|
| 356 |
+
record_startup_failure(args.output, error)
|
| 357 |
+
save_json(args.output / 'error.json', {'type': type(error).__name__, 'message': str(error),
|
| 358 |
+
'traceback': traceback.format_exc(), 'timestamp': time.time()})
|
| 359 |
+
raise
|
| 360 |
+
finally:
|
| 361 |
+
signal.alarm(0)
|
| 362 |
+
try:
|
| 363 |
+
env.close_env()
|
| 364 |
+
except Exception:
|
| 365 |
+
pass
|
| 366 |
+
robot = getattr(env, 'robot', None)
|
| 367 |
+
for key in ('left_proc', 'right_proc'):
|
| 368 |
+
process = getattr(robot, key, None)
|
| 369 |
+
if process is not None and process.is_alive():
|
| 370 |
+
process.terminate()
|
| 371 |
+
process.join(timeout=5)
|
| 372 |
+
if process.is_alive():
|
| 373 |
+
process.kill()
|
| 374 |
+
process.join()
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
if __name__ == '__main__':
|
| 378 |
+
main()
|
scripts/eval_planner_optimization.py
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Skip unused expert CUDA engines in the supported hybrid evaluation path.
|
| 2 |
+
|
| 3 |
+
This does not replace CuRobo's planner class or its CPU gripper interpolation.
|
| 4 |
+
Only construction is temporarily changed; MPlib TOPP and the simulation are
|
| 5 |
+
untouched. Expert seed selection must continue to use the legacy constructor.
|
| 6 |
+
|
| 7 |
+
CuRobo warmup consumes CUDA random numbers. Omitting it intentionally changes
|
| 8 |
+
the local CUDA RNG state, so the optimized path is restricted to RGB/qpos
|
| 9 |
+
rollouts with policy inference in a separate process. It is not a general
|
| 10 |
+
replacement for the planner, nor a claim that all RNG states are identical.
|
| 11 |
+
"""
|
| 12 |
+
from contextlib import contextmanager
|
| 13 |
+
import hashlib
|
| 14 |
+
import importlib
|
| 15 |
+
import inspect
|
| 16 |
+
from pathlib import Path
|
| 17 |
+
import threading
|
| 18 |
+
import time
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
PLANNER_SETUP_MODES = ('legacy', 'skip_unused')
|
| 22 |
+
OPTIMIZATION_VERSION = 'hybrid_rgb_qpos_skip_curobo_v1'
|
| 23 |
+
_PATCH_LOCK = threading.Lock()
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _expert_planning_unavailable(*args, **kwargs):
|
| 27 |
+
raise RuntimeError('Expert CuRobo planning is unavailable in optimized RGB/qpos '
|
| 28 |
+
'evaluation; use planner setup mode legacy for expert planning')
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def _validate_configuration(cfg, action_type, policy_execution):
|
| 32 |
+
"""Reject unvalidated paths before touching the upstream planner class."""
|
| 33 |
+
if cfg.get('eval_mode') is not True:
|
| 34 |
+
raise ValueError('Planner optimization requires eval_mode=True')
|
| 35 |
+
if cfg.get('collect_data') is not False or cfg.get('save_data') is not False:
|
| 36 |
+
raise ValueError('Planner optimization cannot be used for expert data collection')
|
| 37 |
+
if action_type != 'qpos':
|
| 38 |
+
raise ValueError('Planner optimization only supports qpos actions')
|
| 39 |
+
if policy_execution != 'remote':
|
| 40 |
+
raise ValueError('Planner optimization requires separate-process remote policy inference')
|
| 41 |
+
if cfg.get('embodiment') != ['aloha-agilex'] or cfg.get('dual_arm_embodied') is not True:
|
| 42 |
+
raise ValueError('Planner optimization only supports dual-arm aloha-agilex')
|
| 43 |
+
if cfg.get('domain_randomization', {}).get('random_embodiment', False):
|
| 44 |
+
raise ValueError('Random embodiment is unsupported by planner optimization')
|
| 45 |
+
left_path, right_path = cfg.get('left_robot_file'), cfg.get('right_robot_file')
|
| 46 |
+
# Robot.set_planner compares the original path strings to choose IPC, before
|
| 47 |
+
# appending the arm-specific YAML name. Match that exact decision here.
|
| 48 |
+
if not isinstance(left_path, str) or left_path != right_path:
|
| 49 |
+
raise ValueError('Planner optimization requires identical in-process robot paths')
|
| 50 |
+
robot_path = Path(left_path).resolve()
|
| 51 |
+
if robot_path.name != 'aloha-agilex':
|
| 52 |
+
raise ValueError('Planner optimization requires the aloha-agilex robot directory')
|
| 53 |
+
left = cfg.get('left_embodiment_config', {})
|
| 54 |
+
right = cfg.get('right_embodiment_config', {})
|
| 55 |
+
if left != right or left.get('planner') != 'curobo' or left.get('dual_arm') is not True:
|
| 56 |
+
raise ValueError('Planner optimization requires matching official Aloha CuRobo configurations')
|
| 57 |
+
expected_joints = [[f'{prefix}_joint{i}' for i in range(1, 7)]
|
| 58 |
+
for prefix in ('fl', 'fr')]
|
| 59 |
+
if left.get('arm_joints_name') != expected_joints:
|
| 60 |
+
raise ValueError('Unsupported Aloha arm joint configuration')
|
| 61 |
+
data = cfg.get('data_type', {})
|
| 62 |
+
if data.get('rgb') is not True or data.get('qpos') is not True:
|
| 63 |
+
raise ValueError('Planner optimization requires RGB and qpos observations')
|
| 64 |
+
if data.get('pointcloud') is not False:
|
| 65 |
+
raise ValueError('Pointcloud observations are unsupported by planner optimization')
|
| 66 |
+
for key in ('depth', 'third_view', 'observer', 'mesh_segmentation', 'actor_segmentation'):
|
| 67 |
+
if data.get(key, False):
|
| 68 |
+
raise ValueError(f'Unsupported observation channel for planner optimization: {key}')
|
| 69 |
+
return robot_path, expected_joints
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
class _PlannerSetupEvidence:
|
| 73 |
+
def __init__(self, mode):
|
| 74 |
+
self.mode = mode
|
| 75 |
+
self.instances = []
|
| 76 |
+
self.initializations = []
|
| 77 |
+
self.verified = False
|
| 78 |
+
self.class_restored = mode == 'legacy'
|
| 79 |
+
self.source_sha256 = None
|
| 80 |
+
self.planner_class = None
|
| 81 |
+
self.gripper_method = None
|
| 82 |
+
self.reused_instances = 0
|
| 83 |
+
|
| 84 |
+
def verify_environment(self, env):
|
| 85 |
+
"""Check the actual setup, including IPC and the retained TOPP engines."""
|
| 86 |
+
if self.mode == 'legacy':
|
| 87 |
+
if any(getattr(getattr(env.robot, f'{side}_planner', None),
|
| 88 |
+
'_hybrid_planner_optimization_version', None)
|
| 89 |
+
for side in ('left', 'right')):
|
| 90 |
+
raise RuntimeError('Legacy mode requires a fresh environment after optimized setup')
|
| 91 |
+
self.verified = True
|
| 92 |
+
return
|
| 93 |
+
robot = env.robot
|
| 94 |
+
if getattr(env, 'eval_mode', None) is not True:
|
| 95 |
+
raise RuntimeError('Environment left evaluation mode during setup')
|
| 96 |
+
if getattr(robot, 'communication_flag', None) is not False:
|
| 97 |
+
raise RuntimeError('Optimized evaluation unexpectedly used planner IPC')
|
| 98 |
+
if getattr(robot, 'is_dual_arm', None) is not True:
|
| 99 |
+
raise RuntimeError('Optimized evaluation requires the dual-arm robot')
|
| 100 |
+
if getattr(robot, 'need_topp', None) is not True:
|
| 101 |
+
raise RuntimeError('Optimized qpos evaluation requires official MPlib TOPP')
|
| 102 |
+
planners = (robot.left_planner, robot.right_planner)
|
| 103 |
+
if planners[0] is planners[1]:
|
| 104 |
+
raise RuntimeError('Expected exactly two distinct CuRobo planners')
|
| 105 |
+
if self.instances and (len(self.instances) != 2 or
|
| 106 |
+
set(map(id, planners)) != set(map(id, self.instances))):
|
| 107 |
+
raise RuntimeError('Expected exactly two initialized in-process CuRobo planners')
|
| 108 |
+
for planner in planners:
|
| 109 |
+
if type(planner) is not self.planner_class:
|
| 110 |
+
raise RuntimeError('Upstream CuRobo planner type changed during setup')
|
| 111 |
+
if hasattr(planner, 'motion_gen') or hasattr(planner, 'motion_gen_batch'):
|
| 112 |
+
raise RuntimeError('Expert CUDA engine was unexpectedly initialized')
|
| 113 |
+
if getattr(planner, '_hybrid_planner_optimization_version', None) != OPTIMIZATION_VERSION:
|
| 114 |
+
raise RuntimeError('Existing planner was not constructed by this optimization')
|
| 115 |
+
if planner.plan_path is not _expert_planning_unavailable or planner.plan_batch is not _expert_planning_unavailable:
|
| 116 |
+
raise RuntimeError('Expert planning guard was replaced during setup')
|
| 117 |
+
if 'plan_grippers' in vars(planner) or type(planner).plan_grippers is not self.gripper_method:
|
| 118 |
+
raise RuntimeError('Official gripper interpolation changed during setup')
|
| 119 |
+
for side in ('left', 'right'):
|
| 120 |
+
if not callable(getattr(getattr(robot, f'{side}_mplib_planner', None), 'TOPP', None)):
|
| 121 |
+
raise RuntimeError(f'Missing official {side} MPlib TOPP engine')
|
| 122 |
+
if not self.instances:
|
| 123 |
+
self.reused_instances = 2
|
| 124 |
+
self.verified = True
|
| 125 |
+
|
| 126 |
+
def provenance(self):
|
| 127 |
+
return {
|
| 128 |
+
'mode': self.mode,
|
| 129 |
+
'version': OPTIMIZATION_VERSION,
|
| 130 |
+
'scope': 'remote_policy_rgb_qpos_aloha_evaluation',
|
| 131 |
+
'environment_verified': self.verified,
|
| 132 |
+
'constructor_restored': self.class_restored,
|
| 133 |
+
'planner_instances_skipped': len(self.instances),
|
| 134 |
+
'planner_instances_reused': self.reused_instances,
|
| 135 |
+
'expert_motiongen_engines_skipped': len(self.instances) * 2,
|
| 136 |
+
'initializations': list(self.initializations),
|
| 137 |
+
'upstream_planner_source_sha256': self.source_sha256,
|
| 138 |
+
'local_cuda_rng_matches_legacy': self.mode == 'legacy',
|
| 139 |
+
'cuda_rng_note': ('Unchanged legacy constructor' if self.mode == 'legacy' else
|
| 140 |
+
'CuRobo warmup CUDA RNG draws are omitted; remote policy noise is independent'),
|
| 141 |
+
'gripper_interpolation': 'official_unchanged',
|
| 142 |
+
'qpos_trajectory': 'official_MPlib_TOPP_unchanged',
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
@contextmanager
|
| 147 |
+
def evaluation_planner_setup(cfg, *, mode, action_type='qpos', policy_execution='remote',
|
| 148 |
+
_planner_module=None):
|
| 149 |
+
"""Scope constructor substitution to one fresh hybrid environment setup.
|
| 150 |
+
|
| 151 |
+
Call ``evidence.verify_environment(env)`` after ``env.setup_demo`` inside
|
| 152 |
+
this context. A normal exit without verification is an error. Exceptions
|
| 153 |
+
always restore the original constructor, but the created planner instances
|
| 154 |
+
retain fail-closed expert planning guards for their entire lifetime.
|
| 155 |
+
|
| 156 |
+
``_planner_module`` is a CPU-test seam, not a production configuration flag.
|
| 157 |
+
The explicit ``legacy`` mode performs no import or patch and is suitable for
|
| 158 |
+
comparisons and rollback.
|
| 159 |
+
"""
|
| 160 |
+
if mode not in PLANNER_SETUP_MODES:
|
| 161 |
+
raise ValueError(f'Unknown planner setup mode: {mode}')
|
| 162 |
+
evidence = _PlannerSetupEvidence(mode)
|
| 163 |
+
if mode == 'legacy':
|
| 164 |
+
yield evidence
|
| 165 |
+
return
|
| 166 |
+
robot_path, expected_joints = _validate_configuration(cfg, action_type, policy_execution)
|
| 167 |
+
if threading.current_thread() is not threading.main_thread():
|
| 168 |
+
raise RuntimeError('Planner setup substitution is only supported in the main thread')
|
| 169 |
+
if not _PATCH_LOCK.acquire(blocking=False):
|
| 170 |
+
raise RuntimeError('Nested or concurrent planner setup substitution is unsupported')
|
| 171 |
+
original_init = planner_class = None
|
| 172 |
+
try:
|
| 173 |
+
module = _planner_module or importlib.import_module('envs.robot.planner')
|
| 174 |
+
planner_class = module.CuroboPlanner
|
| 175 |
+
original_init = planner_class.__init__
|
| 176 |
+
evidence.planner_class = planner_class
|
| 177 |
+
evidence.gripper_method = planner_class.plan_grippers
|
| 178 |
+
source = inspect.getsourcefile(planner_class)
|
| 179 |
+
if source and Path(source).is_file():
|
| 180 |
+
evidence.source_sha256 = hashlib.sha256(Path(source).read_bytes()).hexdigest()
|
| 181 |
+
|
| 182 |
+
def minimal_init(self, robot_origion_pose, active_joints_name, all_joints, yml_path=None):
|
| 183 |
+
started = time.monotonic()
|
| 184 |
+
if yml_path is None:
|
| 185 |
+
raise ValueError('Optimized planner requires its official arm YAML path')
|
| 186 |
+
yaml_path = Path(yml_path).resolve()
|
| 187 |
+
filenames = ('curobo_left.yml', 'curobo_right.yml')
|
| 188 |
+
if yaml_path.parent != robot_path or yaml_path.name not in filenames:
|
| 189 |
+
raise ValueError(f'Unexpected optimized planner configuration: {yaml_path}')
|
| 190 |
+
arm_index = filenames.index(yaml_path.name)
|
| 191 |
+
if list(active_joints_name) != expected_joints[arm_index]:
|
| 192 |
+
raise ValueError('Unexpected active joints in optimized planner construction')
|
| 193 |
+
if not set(active_joints_name).issubset(all_joints):
|
| 194 |
+
raise ValueError('Optimized planner joint names are absent from the robot')
|
| 195 |
+
if len(evidence.instances) >= 2:
|
| 196 |
+
raise RuntimeError('Unexpected extra CuRobo planner initialization')
|
| 197 |
+
# Keep original class identity and official CPU-only methods. Guard
|
| 198 |
+
# expert calls immediately, including ones accidentally made by setup.
|
| 199 |
+
self.plan_path = _expert_planning_unavailable
|
| 200 |
+
self.plan_batch = _expert_planning_unavailable
|
| 201 |
+
self._hybrid_planner_optimization_version = OPTIMIZATION_VERSION
|
| 202 |
+
module.ta.setup_logging('CRITICAL')
|
| 203 |
+
module.logger.setup_logger(level='error', logger_name="'curobo")
|
| 204 |
+
self.yml_path = yml_path
|
| 205 |
+
self.robot_origion_pose = robot_origion_pose
|
| 206 |
+
self.active_joints_name = active_joints_name
|
| 207 |
+
self.all_joints = all_joints
|
| 208 |
+
with open(yml_path) as stream:
|
| 209 |
+
self.frame_bias = module.yaml.safe_load(stream)['planner']['frame_bias']
|
| 210 |
+
evidence.instances.append(self)
|
| 211 |
+
evidence.initializations.append({'arm': ('left', 'right')[arm_index],
|
| 212 |
+
'yml_path': str(yaml_path),
|
| 213 |
+
'seconds': time.monotonic() - started})
|
| 214 |
+
|
| 215 |
+
planner_class.__init__ = minimal_init
|
| 216 |
+
yield evidence
|
| 217 |
+
if not evidence.verified:
|
| 218 |
+
raise RuntimeError('Optimized environment was not verified after setup')
|
| 219 |
+
finally:
|
| 220 |
+
if original_init is not None:
|
| 221 |
+
planner_class.__init__ = original_init
|
| 222 |
+
evidence.class_restored = True
|
| 223 |
+
_PATCH_LOCK.release()
|
scripts/frozen_eval_subset.py
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Validate an independent, checksummed closed-loop evaluation package.
|
| 2 |
+
|
| 3 |
+
The legacy v1/10k loaders stay separate. A published package records its actual
|
| 4 |
+
Git commit, rather than inheriting the legacy v1 commit or trusting a label.
|
| 5 |
+
"""
|
| 6 |
+
from collections import Counter
|
| 7 |
+
from dataclasses import dataclass
|
| 8 |
+
import hashlib
|
| 9 |
+
import json
|
| 10 |
+
from pathlib import Path, PurePosixPath
|
| 11 |
+
import re
|
| 12 |
+
import subprocess
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def sha256(path):
|
| 16 |
+
return hashlib.sha256(Path(path).read_bytes()).hexdigest()
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def _read(path):
|
| 20 |
+
return json.loads(Path(path).read_text())
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def _package_files(root):
|
| 24 |
+
files = {}
|
| 25 |
+
for path in root.rglob('*'):
|
| 26 |
+
relative = path.relative_to(root)
|
| 27 |
+
if '__pycache__' in relative.parts or path.suffix == '.pyc':
|
| 28 |
+
continue
|
| 29 |
+
if path.is_symlink():
|
| 30 |
+
raise ValueError('Package files must not be symlinks: ' + str(relative))
|
| 31 |
+
if path.is_file():
|
| 32 |
+
files[relative.as_posix()] = path
|
| 33 |
+
return files
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def verify_checksums(directory):
|
| 37 |
+
root = Path(directory).resolve()
|
| 38 |
+
files = _package_files(root)
|
| 39 |
+
if 'SHA256SUMS' not in files:
|
| 40 |
+
raise ValueError('Frozen package requires SHA256SUMS')
|
| 41 |
+
expected = {}
|
| 42 |
+
for line in files['SHA256SUMS'].read_text().splitlines():
|
| 43 |
+
match = re.fullmatch(r'([0-9a-f]{64}) [ *](.+)', line)
|
| 44 |
+
if not match:
|
| 45 |
+
raise ValueError('Malformed SHA256SUMS line')
|
| 46 |
+
digest, name = match.groups()
|
| 47 |
+
path = PurePosixPath(name)
|
| 48 |
+
if path.is_absolute() or '..' in path.parts or path.as_posix() != name or name == 'SHA256SUMS':
|
| 49 |
+
raise ValueError('Unsafe or recursive checksum path: ' + name)
|
| 50 |
+
if name in expected:
|
| 51 |
+
raise ValueError('Duplicate checksum path: ' + name)
|
| 52 |
+
expected[name] = digest
|
| 53 |
+
if set(expected) != set(files) - {'SHA256SUMS'}:
|
| 54 |
+
raise ValueError('SHA256SUMS must cover every package file exactly')
|
| 55 |
+
for name, digest in expected.items():
|
| 56 |
+
if sha256(files[name]) != digest:
|
| 57 |
+
raise ValueError('Package checksum mismatch: ' + name)
|
| 58 |
+
return root, files, expected
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def _published_commit(root, files):
|
| 62 |
+
def git(*args, cwd=root):
|
| 63 |
+
try:
|
| 64 |
+
return subprocess.run(['git', '-C', str(cwd), *args], check=True,
|
| 65 |
+
stdout=subprocess.PIPE, stderr=subprocess.PIPE).stdout
|
| 66 |
+
except subprocess.CalledProcessError as error:
|
| 67 |
+
raise ValueError('Package must be in a published Git checkout') from error
|
| 68 |
+
top = Path(git('rev-parse', '--show-toplevel').decode().strip()).resolve()
|
| 69 |
+
prefix = root.relative_to(top).as_posix()
|
| 70 |
+
commit = git('log', '-1', '--format=%H', '--', '.').decode().strip()
|
| 71 |
+
if not re.fullmatch('[0-9a-f]{40}', commit):
|
| 72 |
+
raise ValueError('Package has no committed publication')
|
| 73 |
+
# git status can be defeated by assume-unchanged/skip-worktree. Compare each
|
| 74 |
+
# actual byte sequence with the committed Git blob instead.
|
| 75 |
+
# --full-tree resets ls-tree's pathspec base. Query explicitly from the
|
| 76 |
+
# repository top using this package's path, excluding unrelated files.
|
| 77 |
+
tree = git('ls-tree', '-r', '-z', '--full-tree', commit, '--', prefix, cwd=top)
|
| 78 |
+
tracked = {}
|
| 79 |
+
for item in tree.split(b'\0'):
|
| 80 |
+
if not item:
|
| 81 |
+
continue
|
| 82 |
+
metadata, raw_name = item.split(b'\t', 1)
|
| 83 |
+
mode, kind, digest = metadata.decode().split()
|
| 84 |
+
name = raw_name.decode()
|
| 85 |
+
relative = str(PurePosixPath(name).relative_to(prefix)) if prefix != '.' else name
|
| 86 |
+
if '__pycache__' in PurePosixPath(relative).parts or relative.endswith('.pyc'):
|
| 87 |
+
continue
|
| 88 |
+
if kind != 'blob' or mode not in ('100644', '100755'):
|
| 89 |
+
raise ValueError('Publication contains nonregular package files')
|
| 90 |
+
tracked[relative] = digest
|
| 91 |
+
if set(tracked) != set(files):
|
| 92 |
+
raise ValueError('Package file set differs from its Git publication')
|
| 93 |
+
for name, path in files.items():
|
| 94 |
+
raw = path.read_bytes()
|
| 95 |
+
blob = hashlib.sha1(b'blob ' + str(len(raw)).encode() + b'\0' + raw).hexdigest()
|
| 96 |
+
if blob != tracked[name]:
|
| 97 |
+
raise ValueError('Package differs from its Git publication: ' + name)
|
| 98 |
+
return commit
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
@dataclass(frozen=True)
|
| 102 |
+
class FrozenSubset:
|
| 103 |
+
directory: Path
|
| 104 |
+
protocol: dict
|
| 105 |
+
plan: list
|
| 106 |
+
commit: str | None
|
| 107 |
+
checksums_sha256: str
|
| 108 |
+
protocol_sha256: str
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def manifest_dir(self):
|
| 112 |
+
return self.directory / 'seed_manifests'
|
| 113 |
+
|
| 114 |
+
@property
|
| 115 |
+
def identity(self):
|
| 116 |
+
return {'subset_id': self.protocol['subset_id'],
|
| 117 |
+
'runtime_protocol': self.protocol['runtime_protocol'],
|
| 118 |
+
'subset_commit': self.commit,
|
| 119 |
+
'count': self.protocol['count'],
|
| 120 |
+
'checksums_sha256': self.checksums_sha256,
|
| 121 |
+
'protocol_sha256': self.protocol_sha256,
|
| 122 |
+
'episodes_sha256': self.protocol['episodes_sha256']}
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def load_subset(directory, *, require_published=True):
|
| 126 |
+
root, files, checksums = verify_checksums(directory)
|
| 127 |
+
for required in ('protocol.json', 'episodes.jsonl'):
|
| 128 |
+
if required not in files:
|
| 129 |
+
raise ValueError('Missing package identity: ' + required)
|
| 130 |
+
protocol = _read(files['protocol.json'])
|
| 131 |
+
if not re.fullmatch(r'[a-z0-9][a-z0-9_-]+', protocol.get('subset_id', '')):
|
| 132 |
+
raise ValueError('Invalid subset_id')
|
| 133 |
+
if not re.fullmatch(r'hybrid_[a-z0-9_]+_rt', protocol.get('runtime_protocol', '')):
|
| 134 |
+
raise ValueError('Invalid RT runtime protocol')
|
| 135 |
+
dimensions = [protocol.get(key) for key in ('count', 'tasks', 'episodes_per_task_setting')]
|
| 136 |
+
if any(type(value) is not int or value <= 0 for value in dimensions):
|
| 137 |
+
raise ValueError('Protocol must declare positive integer quotas')
|
| 138 |
+
count, task_count, quota = dimensions
|
| 139 |
+
settings = protocol.get('settings')
|
| 140 |
+
if (not isinstance(settings, list) or not settings or len(set(settings)) != len(settings)
|
| 141 |
+
or not set(settings) <= {'clean', 'randomized'}
|
| 142 |
+
or count != task_count * len(settings) * quota):
|
| 143 |
+
raise ValueError('Invalid setting quota or total count')
|
| 144 |
+
instruction_types = protocol.get('instruction_types')
|
| 145 |
+
if (not isinstance(instruction_types, dict) or set(instruction_types) != set(settings)
|
| 146 |
+
or not set(instruction_types.values()) <= {'seen', 'unseen'}):
|
| 147 |
+
raise ValueError('Protocol must declare an instruction type for each setting')
|
| 148 |
+
if protocol.get('episodes_sha256') != checksums['episodes.jsonl']:
|
| 149 |
+
raise ValueError('Protocol episodes SHA256 does not match package')
|
| 150 |
+
rows = [json.loads(line) for line in files['episodes.jsonl'].read_text().splitlines()]
|
| 151 |
+
expected = {}
|
| 152 |
+
for row in rows:
|
| 153 |
+
if (not re.fullmatch(r'[a-z][a-z0-9_]*', row.get('task', ''))
|
| 154 |
+
or row.get('setting') not in settings or type(row.get('index')) is not int
|
| 155 |
+
or not 0 <= row['index'] < quota
|
| 156 |
+
or any(type(row.get(key)) is not int or row[key] < 0 for key in ('seed', 'policy_seed'))
|
| 157 |
+
or not isinstance(row.get('instruction'), str) or not row['instruction'].strip()
|
| 158 |
+
or not isinstance(row.get('scene_info'), dict)
|
| 159 |
+
or row.get('instruction_type') != instruction_types[row['setting']]):
|
| 160 |
+
raise ValueError('Invalid episode identity')
|
| 161 |
+
if 'scene_sequence_index' in row and (type(row['scene_sequence_index']) is not int
|
| 162 |
+
or not 0 <= row['scene_sequence_index'] < 10):
|
| 163 |
+
raise ValueError('Invalid explicit scene sequence index')
|
| 164 |
+
key = (row['task'], row['setting'], row['index'])
|
| 165 |
+
if key in expected:
|
| 166 |
+
raise ValueError('Duplicate episode identity')
|
| 167 |
+
expected[key] = row
|
| 168 |
+
cells = Counter((r['task'], r['setting']) for r in rows)
|
| 169 |
+
tasks = {r['task'] for r in rows}
|
| 170 |
+
if (len(rows) != count or len(tasks) != task_count
|
| 171 |
+
or set(cells) != {(task, setting) for task in tasks for setting in settings}
|
| 172 |
+
or set(cells.values()) != {quota}
|
| 173 |
+
or len({r['seed'] for r in rows}) != count):
|
| 174 |
+
raise ValueError('Episode task/setting quotas or unique seeds do not match protocol')
|
| 175 |
+
names = {f'seed_manifests/{task}__{setting}.json' for task, setting in cells}
|
| 176 |
+
if names != {name for name in files if name.startswith('seed_manifests/')}:
|
| 177 |
+
raise ValueError('Seed manifest cell inventory does not match protocol')
|
| 178 |
+
plan = []
|
| 179 |
+
for name in sorted(names):
|
| 180 |
+
manifest = _read(files[name])
|
| 181 |
+
episodes = manifest.get('episodes', [])
|
| 182 |
+
if manifest.get('status') != 'ready' or len(episodes) != quota:
|
| 183 |
+
raise ValueError('Cell manifest must be ready with the declared quota: ' + name)
|
| 184 |
+
seen = set()
|
| 185 |
+
for row in episodes:
|
| 186 |
+
key = (row['task'], row['setting'], row['index'])
|
| 187 |
+
if (key in seen or expected.get(key) != row
|
| 188 |
+
or name != f"seed_manifests/{row['task']}__{row['setting']}.json"
|
| 189 |
+
or (manifest.get('task'), manifest.get('setting')) != key[:2]):
|
| 190 |
+
raise ValueError('Episode and seed manifest identities differ: ' + name)
|
| 191 |
+
if row.get('instruction_type') != manifest.get('instruction_type'):
|
| 192 |
+
raise ValueError('Episode and manifest instruction types differ: ' + name)
|
| 193 |
+
seen.add(key)
|
| 194 |
+
plan.append({**row, 'manifest_sha256': checksums[name]})
|
| 195 |
+
commit = _published_commit(root, files) if require_published else None
|
| 196 |
+
return FrozenSubset(root, protocol,
|
| 197 |
+
sorted(plan, key=lambda r: (r['index'], r['task'], r['setting'])),
|
| 198 |
+
commit, sha256(files['SHA256SUMS']), checksums['protocol.json'])
|
scripts/hybrid_capacity_telemetry.py
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Local capacity telemetry: one NVML GPU and owned Linux process trees.
|
| 2 |
+
|
| 3 |
+
CPU percentages use one logical CPU as 100%. RSS sums count shared pages once
|
| 4 |
+
per process and are not unique physical memory. Host MemAvailable is separate.
|
| 5 |
+
"""
|
| 6 |
+
import ctypes
|
| 7 |
+
import os
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
import time
|
| 10 |
+
|
| 11 |
+
from eval_common import MemoryInfo
|
| 12 |
+
|
| 13 |
+
GIB = 1024 ** 3
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class Utilization(ctypes.Structure):
|
| 17 |
+
_fields_ = [('gpu', ctypes.c_uint), ('memory', ctypes.c_uint)]
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def read_process(pid, proc_root=Path('/proc')):
|
| 21 |
+
"""PID plus start ticks is the identity; comm can contain spaces/parens."""
|
| 22 |
+
try:
|
| 23 |
+
text = (Path(proc_root) / str(pid) / 'stat').read_text()
|
| 24 |
+
suffix = text[text.rfind(')') + 2:].split()
|
| 25 |
+
return {'pid': int(pid), 'start_ticks': int(suffix[19]),
|
| 26 |
+
'ppid': int(suffix[1]), 'pgrp': int(suffix[2]), 'session': int(suffix[3]),
|
| 27 |
+
'state': suffix[0], 'cpu_ticks': int(suffix[11]) + int(suffix[12]),
|
| 28 |
+
'rss_bytes': max(0, int(suffix[21])) * os.sysconf('SC_PAGE_SIZE')}
|
| 29 |
+
except (OSError, ValueError, IndexError):
|
| 30 |
+
return None
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def process_snapshot(proc_root=Path('/proc')):
|
| 34 |
+
records = {}
|
| 35 |
+
for path in Path(proc_root).iterdir():
|
| 36 |
+
if path.name.isdigit():
|
| 37 |
+
row = read_process(int(path.name), proc_root)
|
| 38 |
+
if row is not None:
|
| 39 |
+
records[row['pid']] = row
|
| 40 |
+
return records
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def identity(row):
|
| 44 |
+
return row['pid'], row['start_ticks']
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def owned_processes(snapshot, roots, remembered=()):
|
| 48 |
+
"""Follow parent links only from matching identities; retain observed orphans."""
|
| 49 |
+
known = set(roots) | set(remembered)
|
| 50 |
+
selected = {pid for pid, row in snapshot.items() if identity(row) in known}
|
| 51 |
+
while True:
|
| 52 |
+
extra = {pid for pid, row in snapshot.items() if row['ppid'] in selected}
|
| 53 |
+
if extra <= selected:
|
| 54 |
+
break
|
| 55 |
+
selected |= extra
|
| 56 |
+
return [snapshot[pid] for pid in sorted(selected)]
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
class NvmlGpu:
|
| 60 |
+
def __init__(self, uuid):
|
| 61 |
+
if not uuid or not uuid.startswith('GPU-') or any(x.isspace() for x in uuid) or ',' in uuid:
|
| 62 |
+
raise ValueError('Select one physical GPU UUID explicitly')
|
| 63 |
+
self.uuid = uuid
|
| 64 |
+
self.lib = ctypes.CDLL('libnvidia-ml.so.1')
|
| 65 |
+
self.check(self.lib.nvmlInit_v2())
|
| 66 |
+
self.handle = ctypes.c_void_p()
|
| 67 |
+
self.check(self.lib.nvmlDeviceGetHandleByUUID(uuid.encode(), ctypes.byref(self.handle)))
|
| 68 |
+
actual = ctypes.create_string_buffer(96)
|
| 69 |
+
self.check(self.lib.nvmlDeviceGetUUID(self.handle, actual, len(actual)))
|
| 70 |
+
if actual.value.decode() != uuid:
|
| 71 |
+
raise RuntimeError('NVML GPU UUID mismatch')
|
| 72 |
+
|
| 73 |
+
@staticmethod
|
| 74 |
+
def check(code):
|
| 75 |
+
if code:
|
| 76 |
+
raise RuntimeError('NVML error ' + str(code))
|
| 77 |
+
|
| 78 |
+
def sample(self):
|
| 79 |
+
memory, utilization, power = MemoryInfo(), Utilization(), ctypes.c_uint()
|
| 80 |
+
self.check(self.lib.nvmlDeviceGetMemoryInfo(self.handle, ctypes.byref(memory)))
|
| 81 |
+
utilization_code = self.lib.nvmlDeviceGetUtilizationRates(self.handle, ctypes.byref(utilization))
|
| 82 |
+
power_code = self.lib.nvmlDeviceGetPowerUsage(self.handle, ctypes.byref(power))
|
| 83 |
+
return {'gpu_uuid': self.uuid, 'memory_used_bytes': memory.used,
|
| 84 |
+
'memory_total_bytes': memory.total,
|
| 85 |
+
'utilization_percent': utilization.gpu if utilization_code == 0 else None,
|
| 86 |
+
'power_watts': power.value / 1000 if power_code == 0 else None,
|
| 87 |
+
'optional_metric_errors': {'utilization': utilization_code, 'power': power_code}}
|
| 88 |
+
|
| 89 |
+
def close(self):
|
| 90 |
+
self.lib.nvmlShutdown()
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
class CapacityTelemetry:
|
| 94 |
+
def __init__(self, gpu_uuid, gpu_reader=None, proc_root=Path('/proc')):
|
| 95 |
+
self.gpu = gpu_reader if gpu_reader is not None else NvmlGpu(gpu_uuid)
|
| 96 |
+
self.proc_root = Path(proc_root)
|
| 97 |
+
self.previous = {}
|
| 98 |
+
self.previous_time = None
|
| 99 |
+
self.remembered = set()
|
| 100 |
+
self.ticks_per_second = os.sysconf('SC_CLK_TCK')
|
| 101 |
+
|
| 102 |
+
def sample(self, roots):
|
| 103 |
+
now = time.monotonic()
|
| 104 |
+
snapshot = process_snapshot(self.proc_root)
|
| 105 |
+
rows = owned_processes(snapshot, roots, self.remembered)
|
| 106 |
+
self.remembered = {identity(row) for row in rows}
|
| 107 |
+
elapsed = None if self.previous_time is None else now - self.previous_time
|
| 108 |
+
for row in rows:
|
| 109 |
+
previous = self.previous.get(identity(row))
|
| 110 |
+
row['cpu_percent'] = (100 * (row['cpu_ticks'] - previous) / self.ticks_per_second / elapsed
|
| 111 |
+
if previous is not None and elapsed and elapsed > 0 else None)
|
| 112 |
+
self.previous = {identity(row): row['cpu_ticks'] for row in rows}
|
| 113 |
+
self.previous_time = now
|
| 114 |
+
meminfo = {}
|
| 115 |
+
for line in (self.proc_root / 'meminfo').read_text().splitlines():
|
| 116 |
+
key, value = line.split(':', 1)
|
| 117 |
+
if key in ('MemTotal', 'MemAvailable', 'SwapTotal', 'SwapFree'):
|
| 118 |
+
meminfo[key + '_bytes'] = int(value.split()[0]) * 1024
|
| 119 |
+
if 'MemAvailable_bytes' not in meminfo:
|
| 120 |
+
raise RuntimeError('Host MemAvailable is unavailable')
|
| 121 |
+
return {'monotonic': now, 'timestamp': time.time(), 'gpu': self.gpu.sample(),
|
| 122 |
+
'host': meminfo, 'processes': rows,
|
| 123 |
+
'process_tree_rss_bytes': sum(row['rss_bytes'] for row in rows),
|
| 124 |
+
'process_tree_cpu_percent': sum(row['cpu_percent'] or 0 for row in rows),
|
| 125 |
+
'cpu_sample_has_baseline': elapsed is not None,
|
| 126 |
+
'rss_scope': 'Sum of RSS; shared pages can be counted repeatedly across processes.',
|
| 127 |
+
'gpu_scope': 'Whole selected physical GPU, including unrelated existing workloads.'}
|
| 128 |
+
|
| 129 |
+
def close(self):
|
| 130 |
+
self.gpu.close()
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def summarize_samples(rows, start, end, interval=1.0):
|
| 134 |
+
scoped = [row for row in rows if start <= row['monotonic'] <= end]
|
| 135 |
+
valid = [row for row in scoped if row.get('status') == 'ok']
|
| 136 |
+
covered = integral = 0.0
|
| 137 |
+
metrics = {'gpu_utilization_percent': ('gpu', 'utilization_percent'),
|
| 138 |
+
'gpu_power_watts': ('gpu', 'power_watts'),
|
| 139 |
+
'process_tree_cpu_percent': (None, 'process_tree_cpu_percent')}
|
| 140 |
+
totals = {name: [0.0, 0.0] for name in metrics}
|
| 141 |
+
def value(row, name):
|
| 142 |
+
parent, key = metrics[name]
|
| 143 |
+
if parent is None:
|
| 144 |
+
return row.get(key) if row.get('cpu_sample_has_baseline') else None
|
| 145 |
+
return row[parent].get(key)
|
| 146 |
+
for left, right in zip(scoped, scoped[1:]):
|
| 147 |
+
delta = right['monotonic'] - left['monotonic']
|
| 148 |
+
if left.get('status') == right.get('status') == 'ok' and 0 < delta <= 2.5 * interval:
|
| 149 |
+
integral += delta * (left['gpu']['memory_used_bytes'] + right['gpu']['memory_used_bytes']) / 2
|
| 150 |
+
covered += delta
|
| 151 |
+
for name in metrics:
|
| 152 |
+
a, b = value(left, name), value(right, name)
|
| 153 |
+
# CPU percentage is itself a rate over the preceding interval.
|
| 154 |
+
if name == 'process_tree_cpu_percent' and b is not None:
|
| 155 |
+
totals[name][0] += delta * b
|
| 156 |
+
totals[name][1] += delta
|
| 157 |
+
elif a is not None and b is not None:
|
| 158 |
+
totals[name][0] += delta * (a + b) / 2
|
| 159 |
+
totals[name][1] += delta
|
| 160 |
+
span = end - start
|
| 161 |
+
summary = {'samples': len(valid), 'failed_samples': len(scoped) - len(valid),
|
| 162 |
+
'gpu_mean_memory_bytes': integral / covered if covered else None,
|
| 163 |
+
'gpu_peak_memory_bytes': max((r['gpu']['memory_used_bytes'] for r in valid), default=None),
|
| 164 |
+
'process_tree_peak_rss_bytes': max((r['process_tree_rss_bytes'] for r in valid), default=None),
|
| 165 |
+
'host_min_available_bytes': min((r['host']['MemAvailable_bytes'] for r in valid), default=None),
|
| 166 |
+
'covered_seconds': covered, 'coverage': covered / span if span > 0 else 0,
|
| 167 |
+
'scope': 'One-second samples over the whole condition, not sums of overlapping episode GPU-hours.',
|
| 168 |
+
'rss_note': 'Shared RSS can be counted in multiple processes; host available memory is independent.',
|
| 169 |
+
'cpu_note': 'One logical CPU is 100%; first samples without a baseline are excluded. Process creation/exit between samples can omit CPU work; this is not exact cumulative CPU time.',
|
| 170 |
+
'peak_note': 'Sampled peak only; gaps over 2.5 sample intervals are excluded from the mean.'}
|
| 171 |
+
for name, (total, duration) in totals.items():
|
| 172 |
+
observed = [value(row, name) for row in valid if value(row, name) is not None]
|
| 173 |
+
summary['mean_' + name] = total / duration if duration else None
|
| 174 |
+
summary['peak_' + name] = max(observed, default=None)
|
| 175 |
+
summary[name + '_covered_seconds'] = duration
|
| 176 |
+
return summary
|
scripts/hybrid_concurrent_server.py
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Isolated hybrid_v1 sessions sharing one serial, FIFO inference executor.
|
| 2 |
+
|
| 3 |
+
The unchanged loader's instance-level controlled_infer closes over its original
|
| 4 |
+
policy. We deliberately rebind the class method for each independent wrapper,
|
| 5 |
+
then reproduce that control context. Merely shallow-copying the wrapper would
|
| 6 |
+
silently execute every session on the original object.
|
| 7 |
+
"""
|
| 8 |
+
import asyncio
|
| 9 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 10 |
+
import copy
|
| 11 |
+
import hashlib
|
| 12 |
+
import os
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
import random
|
| 15 |
+
import threading
|
| 16 |
+
import time
|
| 17 |
+
import uuid
|
| 18 |
+
|
| 19 |
+
import numpy as np
|
| 20 |
+
|
| 21 |
+
from hybrid_transport import (HybridPolicyServer, InfrastructureError, Packer,
|
| 22 |
+
PROTOCOL, ProtocolSession, append_record,
|
| 23 |
+
infer_with_noise, unpackb)
|
| 24 |
+
|
| 25 |
+
CONCURRENCY_PROTOCOL = 'hybrid_concurrency_v1'
|
| 26 |
+
GEOMETRY_FIELDS = ('pos_embeds', 'position_embeddings', 'cu_seqlens',
|
| 27 |
+
'visual_split_sizes', 'visual_max_seqlen')
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def infer_fixed_robotwin(policy, observation, noise):
|
| 31 |
+
"""Retain the frozen single-observation geometry used by offline warmup."""
|
| 32 |
+
if not observation.get('reset'):
|
| 33 |
+
if 'batch' in observation:
|
| 34 |
+
raise InfrastructureError('Concurrent service does not support dynamic batching')
|
| 35 |
+
for name in ('cam_high', 'cam_left_wrist', 'cam_right_wrist'):
|
| 36 |
+
value = observation.get('observation.images.' + name)
|
| 37 |
+
if (not isinstance(value, np.ndarray) or value.dtype != np.uint8 or
|
| 38 |
+
value.shape != (240, 320, 3)):
|
| 39 |
+
raise InfrastructureError('Expected three raw uint8 240x320 RGB images')
|
| 40 |
+
return infer_with_noise(policy, observation, noise)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class SessionRNG:
|
| 44 |
+
"""Global generators are switched only by the dedicated inference thread."""
|
| 45 |
+
def __init__(self, torch_module=None):
|
| 46 |
+
self.torch = torch_module
|
| 47 |
+
|
| 48 |
+
def capture(self):
|
| 49 |
+
state = {'python': random.getstate(), 'numpy': np.random.get_state(),
|
| 50 |
+
'hash_seed': os.environ.get('PYTHONHASHSEED')}
|
| 51 |
+
if self.torch is not None:
|
| 52 |
+
state['torch'] = self.torch.get_rng_state().clone()
|
| 53 |
+
state['cuda'] = [x.clone() for x in self.torch.cuda.get_rng_state_all()]
|
| 54 |
+
return state
|
| 55 |
+
|
| 56 |
+
def restore(self, state):
|
| 57 |
+
random.setstate(state['python'])
|
| 58 |
+
np.random.set_state(state['numpy'])
|
| 59 |
+
if state['hash_seed'] is None:
|
| 60 |
+
os.environ.pop('PYTHONHASHSEED', None)
|
| 61 |
+
else:
|
| 62 |
+
os.environ['PYTHONHASHSEED'] = state['hash_seed']
|
| 63 |
+
if self.torch is not None:
|
| 64 |
+
self.torch.set_rng_state(state['torch'])
|
| 65 |
+
self.torch.cuda.set_rng_state_all(state['cuda'])
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def clone_official_policy(original, torch_module=None):
|
| 69 |
+
"""Independent wrapper/transform/tokenizer state, shared parameter tensors.
|
| 70 |
+
|
| 71 |
+
This audited adapter supports the frozen RoboTwin policy, batch=1, chunk_ret
|
| 72 |
+
and no compilation. All copies and inference execute on the same thread.
|
| 73 |
+
The neural model is shared; its per-call KV cache is local in sample_actions.
|
| 74 |
+
The small persistent visual-geometry cache is separately switched below.
|
| 75 |
+
"""
|
| 76 |
+
if torch_module is None:
|
| 77 |
+
import torch as torch_module
|
| 78 |
+
if not original.chunk_ret or original.use_compile:
|
| 79 |
+
raise InfrastructureError('Concurrency requires chunk_ret=True and compile=False')
|
| 80 |
+
replica = copy.copy(original)
|
| 81 |
+
shared = {'vla', 'sample_actions_fn', 'infer'}
|
| 82 |
+
cleared = {'last_action_chunk', 'last_normalized_action_chunk'}
|
| 83 |
+
for name, value in vars(original).items():
|
| 84 |
+
if name in cleared:
|
| 85 |
+
setattr(replica, name, None)
|
| 86 |
+
elif name not in shared:
|
| 87 |
+
setattr(replica, name, copy.deepcopy(value))
|
| 88 |
+
replica.global_step = 0
|
| 89 |
+
# nn.Module shallow copies otherwise share these registration containers.
|
| 90 |
+
replica.vla = copy.copy(original.vla)
|
| 91 |
+
for name in ('_modules', '_buffers', '_parameters'):
|
| 92 |
+
if hasattr(original.vla, name):
|
| 93 |
+
setattr(replica.vla, name, dict(getattr(original.vla, name)))
|
| 94 |
+
if hasattr(replica.vla, '_modules'):
|
| 95 |
+
replica.vla._modules.pop('feature_transform', None)
|
| 96 |
+
replica.vla.__dict__.pop('feature_transform', None)
|
| 97 |
+
replica.vla.feature_transform = None
|
| 98 |
+
# Keep the copied processor and tokenizer coherent; both are CPU objects.
|
| 99 |
+
if hasattr(replica, 'processor'):
|
| 100 |
+
replica.language_tokenizer = replica.processor.tokenizer
|
| 101 |
+
if hasattr(replica.vla, 'config'):
|
| 102 |
+
replica.vla.config = replica.config
|
| 103 |
+
raw_infer = type(original).infer.__get__(replica, type(replica))
|
| 104 |
+
|
| 105 |
+
def controlled_infer(observation):
|
| 106 |
+
if observation.get('reset'):
|
| 107 |
+
from deploy.lingbot_vla_v2_policy import set_seed_everywhere
|
| 108 |
+
set_seed_everywhere(int(observation.get('policy_seed', 42)))
|
| 109 |
+
with torch_module.inference_mode(), torch_module.autocast('cuda', enabled=False):
|
| 110 |
+
return raw_infer(observation)
|
| 111 |
+
|
| 112 |
+
replica.infer = controlled_infer
|
| 113 |
+
return replica
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
class IsolatedSession:
|
| 117 |
+
def __init__(self, original, noise_shape, synchronize, policy_factory,
|
| 118 |
+
infer_adapter, rng):
|
| 119 |
+
self.original = original
|
| 120 |
+
self.synchronize = synchronize
|
| 121 |
+
self.policy_factory = policy_factory
|
| 122 |
+
self.infer_adapter = infer_adapter
|
| 123 |
+
self.rng = rng
|
| 124 |
+
self.rng_state = None
|
| 125 |
+
self.policy = None
|
| 126 |
+
self.geometry = None
|
| 127 |
+
self.protocol = ProtocolSession(self.infer, noise_shape, synchronize)
|
| 128 |
+
self.closed = threading.Event()
|
| 129 |
+
self.connection_id = uuid.uuid4().hex
|
| 130 |
+
|
| 131 |
+
def infer(self, observation, noise):
|
| 132 |
+
return self.infer_adapter(self.policy, observation, noise)
|
| 133 |
+
|
| 134 |
+
def process(self, request, digest, enqueued_at, fifo_index, pending):
|
| 135 |
+
started = time.perf_counter()
|
| 136 |
+
if self.closed.is_set():
|
| 137 |
+
raise InfrastructureError('Connection closed before queued request execution')
|
| 138 |
+
queue_ms = (started - enqueued_at) * 1000
|
| 139 |
+
init_ms = 0.0
|
| 140 |
+
if self.policy is None:
|
| 141 |
+
init_started = time.perf_counter()
|
| 142 |
+
self.policy = self.policy_factory(self.original)
|
| 143 |
+
init_ms = (time.perf_counter() - init_started) * 1000
|
| 144 |
+
switch_started = time.perf_counter()
|
| 145 |
+
ambient_rng = self.rng.capture()
|
| 146 |
+
if self.rng_state is not None:
|
| 147 |
+
self.rng.restore(self.rng_state)
|
| 148 |
+
# Precompute geometry is not episode history. Still save/restore it so
|
| 149 |
+
# a reset or later cache allocation cannot affect another connection.
|
| 150 |
+
model = getattr(getattr(self.policy, 'vla', None), 'model', None)
|
| 151 |
+
geometry_owner = getattr(model, 'qwenvl_with_expert', None)
|
| 152 |
+
original_geometry = None
|
| 153 |
+
if geometry_owner is not None:
|
| 154 |
+
original_geometry = {key: getattr(geometry_owner, key)
|
| 155 |
+
for key in GEOMETRY_FIELDS}
|
| 156 |
+
if self.geometry is None:
|
| 157 |
+
self.geometry = dict(original_geometry)
|
| 158 |
+
for key, value in self.geometry.items():
|
| 159 |
+
setattr(geometry_owner, key, value)
|
| 160 |
+
switch_ms = (time.perf_counter() - switch_started) * 1000
|
| 161 |
+
try:
|
| 162 |
+
# ProtocolSession performs identity/noise validation and measures
|
| 163 |
+
# CUDA-synchronized inference, excluding queue and state switching.
|
| 164 |
+
response, duplicate = self.protocol.process(request, digest)
|
| 165 |
+
finally:
|
| 166 |
+
switch_started = time.perf_counter()
|
| 167 |
+
self.rng_state = self.rng.capture()
|
| 168 |
+
self.rng.restore(ambient_rng)
|
| 169 |
+
if geometry_owner is not None:
|
| 170 |
+
self.geometry = {key: getattr(geometry_owner, key)
|
| 171 |
+
for key in GEOMETRY_FIELDS}
|
| 172 |
+
for key, value in original_geometry.items():
|
| 173 |
+
setattr(geometry_owner, key, value)
|
| 174 |
+
switch_ms += (time.perf_counter() - switch_started) * 1000
|
| 175 |
+
# Preserve cached actions, while reporting the actual cost of this
|
| 176 |
+
# delivery. A duplicate never executes infer or advances RNG/state.
|
| 177 |
+
response = dict(response)
|
| 178 |
+
if duplicate:
|
| 179 |
+
response['server_cached_infer_ms'] = response['server_infer_ms']
|
| 180 |
+
response['server_infer_ms'] = 0.0
|
| 181 |
+
response.update(concurrency_protocol=CONCURRENCY_PROTOCOL,
|
| 182 |
+
server_queue_ms=queue_ms,
|
| 183 |
+
server_state_switch_ms=switch_ms,
|
| 184 |
+
server_session_init_ms=init_ms,
|
| 185 |
+
server_fifo_index=fifo_index,
|
| 186 |
+
server_pending_at_enqueue=pending,
|
| 187 |
+
server_execution_thread_id=threading.get_ident(),
|
| 188 |
+
duplicate=duplicate)
|
| 189 |
+
return response, duplicate
|
| 190 |
+
|
| 191 |
+
def release(self):
|
| 192 |
+
self.closed.set()
|
| 193 |
+
if self.policy is not None:
|
| 194 |
+
# Break controlled_infer -> bound method -> replica cycles now,
|
| 195 |
+
# without waiting for GC to reclaim large CPU tokenizer copies.
|
| 196 |
+
self.policy.__dict__.pop('infer', None)
|
| 197 |
+
self.policy.last_action_chunk = None
|
| 198 |
+
self.policy.last_normalized_action_chunk = None
|
| 199 |
+
self.policy.vla.feature_transform = None
|
| 200 |
+
self.policy = self.geometry = self.rng_state = None
|
| 201 |
+
self.protocol.cache.clear()
|
| 202 |
+
self.protocol.seen_sessions.clear()
|
| 203 |
+
self.protocol.infer = None
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
class ConcurrentHybridPolicyServer(HybridPolicyServer):
|
| 207 |
+
def __init__(self, *args, max_clients=4, policy_factory=None,
|
| 208 |
+
infer_adapter=None, rng=None, **kwargs):
|
| 209 |
+
if type(max_clients) is not int or not 1 <= max_clients <= 8:
|
| 210 |
+
raise ValueError('max_clients must be an integer between 1 and 8')
|
| 211 |
+
super().__init__(*args, **kwargs)
|
| 212 |
+
if self.log_path is not None:
|
| 213 |
+
self.log_path = Path(self.log_path).resolve()
|
| 214 |
+
self.max_clients = max_clients
|
| 215 |
+
self.policy_factory = policy_factory or clone_official_policy
|
| 216 |
+
self.infer_adapter = infer_adapter or infer_fixed_robotwin
|
| 217 |
+
if rng is None:
|
| 218 |
+
import torch
|
| 219 |
+
rng = SessionRNG(torch)
|
| 220 |
+
self.rng = rng
|
| 221 |
+
self.executor = ThreadPoolExecutor(max_workers=1,
|
| 222 |
+
thread_name_prefix='hybrid-policy-fifo')
|
| 223 |
+
self.connections = set()
|
| 224 |
+
self._fifo = self._pending = 0
|
| 225 |
+
self.metadata.update(
|
| 226 |
+
concurrency_protocol=CONCURRENCY_PROTOCOL,
|
| 227 |
+
max_clients=max_clients,
|
| 228 |
+
scheduler='FIFO_single_inference_thread_no_batching',
|
| 229 |
+
session_isolation='independent_policy_vla_facade_processor_transform_chunks_and_RNG',
|
| 230 |
+
shared_weights=True, model_replicas=1,
|
| 231 |
+
geometry_cache='session_switched_fixed_3x240x320_RGB_batch1',
|
| 232 |
+
queue_timing='from_decoded_request_enqueue_to_executor_entry',
|
| 233 |
+
inference_timing='ProtocolSession_CUDA_synchronized_excludes_queue_and_state_switch',
|
| 234 |
+
duplicate_timing='cached_result_no_execution_server_infer_ms_zero')
|
| 235 |
+
|
| 236 |
+
async def run(self):
|
| 237 |
+
try:
|
| 238 |
+
await super().run()
|
| 239 |
+
finally:
|
| 240 |
+
self.executor.shutdown(wait=True, cancel_futures=True)
|
| 241 |
+
|
| 242 |
+
async def submit(self, session, request, digest):
|
| 243 |
+
if session.closed.is_set():
|
| 244 |
+
raise InfrastructureError('Connection is closed')
|
| 245 |
+
self._fifo += 1
|
| 246 |
+
self._pending += 1
|
| 247 |
+
enqueued_at = time.perf_counter()
|
| 248 |
+
future = asyncio.get_running_loop().run_in_executor(
|
| 249 |
+
self.executor, session.process, request, digest, enqueued_at,
|
| 250 |
+
self._fifo, self._pending)
|
| 251 |
+
try:
|
| 252 |
+
# Handler cancellation must not release session state while CUDA
|
| 253 |
+
# still uses it. Shield preserves completion of in-flight work.
|
| 254 |
+
return await asyncio.shield(future)
|
| 255 |
+
except asyncio.CancelledError:
|
| 256 |
+
session.closed.set()
|
| 257 |
+
# Multiple shutdown/cancellation signals still must not let a
|
| 258 |
+
# handler release its replica while the worker is using it.
|
| 259 |
+
while not future.done():
|
| 260 |
+
try:
|
| 261 |
+
await asyncio.shield(future)
|
| 262 |
+
except asyncio.CancelledError:
|
| 263 |
+
continue
|
| 264 |
+
except Exception:
|
| 265 |
+
break
|
| 266 |
+
if not future.cancelled():
|
| 267 |
+
future.exception() # consume a discarded worker exception
|
| 268 |
+
raise
|
| 269 |
+
finally:
|
| 270 |
+
self._pending -= 1
|
| 271 |
+
|
| 272 |
+
async def _handler(self, websocket):
|
| 273 |
+
from websockets.exceptions import ConnectionClosed
|
| 274 |
+
if len(self.connections) >= self.max_clients:
|
| 275 |
+
append_record(self.log_path, {'timestamp': time.time(),
|
| 276 |
+
'event': 'client_limit_rejected', 'max_clients': self.max_clients})
|
| 277 |
+
await websocket.close(code=1013, reason='Concurrent policy client limit reached')
|
| 278 |
+
return
|
| 279 |
+
session = IsolatedSession(self.policy, self.noise_shape, self.synchronize,
|
| 280 |
+
self.policy_factory, self.infer_adapter, self.rng)
|
| 281 |
+
self.connections.add(session)
|
| 282 |
+
packer = Packer()
|
| 283 |
+
disconnected = asyncio.create_task(websocket.wait_closed())
|
| 284 |
+
# Flag queued work immediately on disconnect. In-flight GPU execution
|
| 285 |
+
# completes in the same worker; its response is then discarded.
|
| 286 |
+
disconnected.add_done_callback(lambda _: session.closed.set())
|
| 287 |
+
append_record(self.log_path, {'timestamp': time.time(), 'event': 'client_connected',
|
| 288 |
+
'connection_id': session.connection_id,
|
| 289 |
+
'active_clients': len(self.connections)})
|
| 290 |
+
try:
|
| 291 |
+
await websocket.send(packer.pack(self.metadata))
|
| 292 |
+
while True:
|
| 293 |
+
raw = await websocket.recv()
|
| 294 |
+
if not isinstance(raw, bytes):
|
| 295 |
+
raise InfrastructureError('Expected a binary request')
|
| 296 |
+
started = time.perf_counter()
|
| 297 |
+
request = unpackb(raw)
|
| 298 |
+
unpack_ms = (time.perf_counter() - started) * 1000
|
| 299 |
+
digest = hashlib.sha256(raw).hexdigest()
|
| 300 |
+
response, duplicate = await self.submit(session, request, digest)
|
| 301 |
+
started = time.perf_counter()
|
| 302 |
+
payload = packer.pack(response)
|
| 303 |
+
pack_ms = (time.perf_counter() - started) * 1000
|
| 304 |
+
started = time.perf_counter()
|
| 305 |
+
if not session.closed.is_set():
|
| 306 |
+
await websocket.send(payload)
|
| 307 |
+
send_ms = (time.perf_counter() - started) * 1000
|
| 308 |
+
append_record(self.log_path, {
|
| 309 |
+
'timestamp': time.time(), 'connection_id': session.connection_id,
|
| 310 |
+
'active_clients': len(self.connections),
|
| 311 |
+
'session_id': response['session_id'],
|
| 312 |
+
'episode_id': response['episode_id'], 'sequence_id': response['sequence_id'],
|
| 313 |
+
'operation': request['operation'], 'duplicate': duplicate,
|
| 314 |
+
'request_sha256': digest, 'noise_sha256': response['noise_sha256'],
|
| 315 |
+
'request_bytes': len(raw), 'response_bytes': len(payload),
|
| 316 |
+
'server_unpack_ms': unpack_ms, 'server_pack_ms': pack_ms,
|
| 317 |
+
'server_send_ms': send_ms,
|
| 318 |
+
**{key: value for key, value in response.items()
|
| 319 |
+
if key.startswith('server_') or key == 'concurrency_protocol'},
|
| 320 |
+
'response_discarded_after_disconnect': session.closed.is_set()})
|
| 321 |
+
if session.closed.is_set():
|
| 322 |
+
break
|
| 323 |
+
except ConnectionClosed:
|
| 324 |
+
pass
|
| 325 |
+
except Exception as error:
|
| 326 |
+
append_record(self.log_path, {'timestamp': time.time(),
|
| 327 |
+
'connection_id': session.connection_id,
|
| 328 |
+
'event': 'infrastructure_error', 'error': str(error)})
|
| 329 |
+
try:
|
| 330 |
+
if not session.closed.is_set():
|
| 331 |
+
await websocket.send(packer.pack({'protocol': PROTOCOL, 'error': str(error)}))
|
| 332 |
+
await websocket.close(code=1011, reason='Episode invalidated')
|
| 333 |
+
except ConnectionClosed:
|
| 334 |
+
pass
|
| 335 |
+
finally:
|
| 336 |
+
disconnected.cancel()
|
| 337 |
+
session.release()
|
| 338 |
+
self.connections.discard(session)
|
| 339 |
+
append_record(self.log_path, {'timestamp': time.time(), 'event': 'client_disconnected',
|
| 340 |
+
'connection_id': session.connection_id,
|
| 341 |
+
'active_clients': len(self.connections)})
|
scripts/hybrid_transport.py
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Bounded, synchronous, uncompressed policy transport for hybrid evaluation.
|
| 2 |
+
|
| 3 |
+
There is deliberately no reconnect/retry path: a lost connection invalidates the
|
| 4 |
+
current rollout. Session/sequence checks protect against executing stale actions.
|
| 5 |
+
"""
|
| 6 |
+
import asyncio
|
| 7 |
+
import hashlib
|
| 8 |
+
import http
|
| 9 |
+
import json
|
| 10 |
+
import math
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
import socket
|
| 13 |
+
import sys
|
| 14 |
+
import threading
|
| 15 |
+
import time
|
| 16 |
+
import uuid
|
| 17 |
+
|
| 18 |
+
import numpy as np
|
| 19 |
+
|
| 20 |
+
UPSTREAM = Path(__file__).resolve().parents[1] / 'third_party/lingbot-vla-v2'
|
| 21 |
+
if str(UPSTREAM) not in sys.path:
|
| 22 |
+
sys.path.insert(0, str(UPSTREAM))
|
| 23 |
+
from deploy.msgpack_numpy import Packer, unpackb
|
| 24 |
+
|
| 25 |
+
PROTOCOL = 'hybrid_v1'
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class InfrastructureError(RuntimeError):
|
| 29 |
+
"""Abort this episode; restarting requires restoring the complete scene."""
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def append_record(path, value):
|
| 33 |
+
if path is not None:
|
| 34 |
+
path = Path(path)
|
| 35 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 36 |
+
with path.open('a') as stream:
|
| 37 |
+
stream.write(json.dumps(value, sort_keys=True) + '\n')
|
| 38 |
+
stream.flush()
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def noise_sha256(noise):
|
| 42 |
+
return hashlib.sha256(np.ascontiguousarray(noise).tobytes()).hexdigest()
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def generate_noise(policy_seed, sequence_id, shape):
|
| 46 |
+
"""Canonical CPU float32 noise; this is an explicitly new RNG protocol."""
|
| 47 |
+
rng = np.random.Generator(np.random.PCG64(np.random.SeedSequence(
|
| 48 |
+
[int(policy_seed), int(sequence_id)])))
|
| 49 |
+
return rng.standard_normal(tuple(shape), dtype=np.float32)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def validate_noise(noise, shape):
|
| 53 |
+
if not isinstance(noise, np.ndarray) or noise.dtype != np.float32:
|
| 54 |
+
raise InfrastructureError('Noise must be a CPU float32 NumPy array')
|
| 55 |
+
if tuple(noise.shape) != tuple(shape) or not np.isfinite(noise).all():
|
| 56 |
+
raise InfrastructureError('Invalid noise shape or nonfinite noise')
|
| 57 |
+
return np.ascontiguousarray(noise)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def infer_with_noise(policy, observation, noise, torch_module=None):
|
| 61 |
+
"""Inject noise through the upstream API without changing upstream files."""
|
| 62 |
+
if noise is None:
|
| 63 |
+
return policy.infer(observation)
|
| 64 |
+
if torch_module is None:
|
| 65 |
+
import torch as torch_module
|
| 66 |
+
original = policy.sample_actions_fn
|
| 67 |
+
calls = 0
|
| 68 |
+
|
| 69 |
+
def sample(*args, **kwargs):
|
| 70 |
+
nonlocal calls
|
| 71 |
+
calls += 1
|
| 72 |
+
if calls != 1 or kwargs.get('noise') is not None:
|
| 73 |
+
raise InfrastructureError('Expected exactly one upstream noise injection')
|
| 74 |
+
state = args[4] if len(args) > 4 else kwargs['state']
|
| 75 |
+
# Upstream updates x_t=noise in place. Clone even after device conversion.
|
| 76 |
+
tensor = torch_module.from_numpy(noise.copy()).to(
|
| 77 |
+
device=state.device, dtype=state.dtype).clone()
|
| 78 |
+
kwargs['noise'] = tensor
|
| 79 |
+
return original(*args, **kwargs)
|
| 80 |
+
|
| 81 |
+
policy.sample_actions_fn = sample
|
| 82 |
+
try:
|
| 83 |
+
result = policy.infer(observation)
|
| 84 |
+
if calls != 1:
|
| 85 |
+
raise InfrastructureError('The policy did not consume explicit noise')
|
| 86 |
+
return result
|
| 87 |
+
finally:
|
| 88 |
+
policy.sample_actions_fn = original
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
class ProtocolSession:
|
| 92 |
+
"""One connection owns one policy; completed request IDs are idempotent."""
|
| 93 |
+
def __init__(self, infer, noise_shape, synchronize=lambda: None):
|
| 94 |
+
self.infer = infer
|
| 95 |
+
self.noise_shape = tuple(noise_shape)
|
| 96 |
+
self.synchronize = synchronize
|
| 97 |
+
self.session_id = None
|
| 98 |
+
self.episode_id = None
|
| 99 |
+
self.sequence_id = -1
|
| 100 |
+
self.cache = {}
|
| 101 |
+
self.seen_sessions = set()
|
| 102 |
+
|
| 103 |
+
def process(self, request, digest):
|
| 104 |
+
if not isinstance(request, dict) or request.get('protocol') != PROTOCOL:
|
| 105 |
+
raise InfrastructureError('Unsupported hybrid protocol')
|
| 106 |
+
session = request.get('session_id')
|
| 107 |
+
episode = request.get('episode_id')
|
| 108 |
+
sequence = request.get('sequence_id')
|
| 109 |
+
if (not isinstance(session, str) or not 1 <= len(session) <= 128 or
|
| 110 |
+
not isinstance(episode, str) or not 1 <= len(episode) <= 256 or
|
| 111 |
+
type(sequence) is not int or sequence < 0):
|
| 112 |
+
raise InfrastructureError('Invalid request identity')
|
| 113 |
+
operation = request.get('operation')
|
| 114 |
+
if session == self.session_id and sequence in self.cache:
|
| 115 |
+
cached_hash, cached_response = self.cache[sequence]
|
| 116 |
+
if episode != self.episode_id or digest != cached_hash:
|
| 117 |
+
raise InfrastructureError('Reused sequence has different payload or episode')
|
| 118 |
+
return cached_response, True
|
| 119 |
+
if operation == 'reset':
|
| 120 |
+
seed = request.get('policy_seed')
|
| 121 |
+
if (sequence != 0 or session in self.seen_sessions or
|
| 122 |
+
type(seed) is not int or not 0 <= seed < 2**32):
|
| 123 |
+
raise InfrastructureError('A new episode requires a new session and sequence zero')
|
| 124 |
+
observation = {'reset': True, 'robo_name': 'robotwin', 'policy_seed': seed}
|
| 125 |
+
noise = None
|
| 126 |
+
elif operation == 'infer':
|
| 127 |
+
if (session != self.session_id or episode != self.episode_id or
|
| 128 |
+
sequence != self.sequence_id + 1):
|
| 129 |
+
raise InfrastructureError('Missing reset, stale session, or out-of-order request')
|
| 130 |
+
observation = request.get('observation')
|
| 131 |
+
if not isinstance(observation, dict) or observation.get('reset'):
|
| 132 |
+
raise InfrastructureError('Invalid inference observation')
|
| 133 |
+
noise = validate_noise(request.get('noise'), self.noise_shape)
|
| 134 |
+
else:
|
| 135 |
+
raise InfrastructureError('Unsupported operation')
|
| 136 |
+
self.synchronize()
|
| 137 |
+
started = time.perf_counter()
|
| 138 |
+
action = self.infer(observation, noise)
|
| 139 |
+
self.synchronize()
|
| 140 |
+
infer_ms = (time.perf_counter() - started) * 1000
|
| 141 |
+
if not isinstance(action, dict):
|
| 142 |
+
raise InfrastructureError('Policy returned an invalid response')
|
| 143 |
+
response = {'protocol': PROTOCOL, 'session_id': session,
|
| 144 |
+
'episode_id': episode, 'sequence_id': sequence,
|
| 145 |
+
'request_sha256': digest, 'result': action,
|
| 146 |
+
'server_infer_ms': infer_ms,
|
| 147 |
+
'noise_sha256': noise_sha256(noise) if noise is not None else None}
|
| 148 |
+
if operation == 'reset':
|
| 149 |
+
self.session_id, self.episode_id = session, episode
|
| 150 |
+
self.cache = {}
|
| 151 |
+
self.seen_sessions.add(session)
|
| 152 |
+
self.sequence_id = sequence
|
| 153 |
+
self.cache[sequence] = (digest, response)
|
| 154 |
+
return response, False
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
class HybridPolicyServer:
|
| 158 |
+
def __init__(self, policy, host='127.0.0.1', port=None, metadata=None,
|
| 159 |
+
log_path=None, synchronize=None, hardware=None):
|
| 160 |
+
if host != '127.0.0.1':
|
| 161 |
+
raise ValueError('Hybrid server must bind to loopback; use an SSH tunnel')
|
| 162 |
+
self.policy, self.host, self.port = policy, host, port
|
| 163 |
+
self.log_path = log_path
|
| 164 |
+
self.noise_shape = (1, policy.config.n_action_steps, policy.config.max_action_dim)
|
| 165 |
+
if synchronize is None:
|
| 166 |
+
import torch
|
| 167 |
+
synchronize = torch.cuda.synchronize
|
| 168 |
+
properties = torch.cuda.get_device_properties(torch.cuda.current_device())
|
| 169 |
+
hardware = {'gpu_name': properties.name,
|
| 170 |
+
'gpu_memory_bytes': properties.total_memory,
|
| 171 |
+
'gpu_capability': list(torch.cuda.get_device_capability()),
|
| 172 |
+
'gpu_uuid': str(getattr(properties, 'uuid', 'unavailable')),
|
| 173 |
+
'torch_version': torch.__version__, 'cuda_version': torch.version.cuda}
|
| 174 |
+
self.synchronize = synchronize
|
| 175 |
+
self.metadata = {**(metadata or {}), **(hardware or {}),
|
| 176 |
+
'protocol': PROTOCOL, 'evaluation_protocol': PROTOCOL,
|
| 177 |
+
'noise_shape': list(self.noise_shape),
|
| 178 |
+
'noise_protocol': 'numpy_PCG64_SeedSequence_policy_seed_sequence_float32',
|
| 179 |
+
'transport_compression': None, 'reconnect_policy': 'abort_episode'}
|
| 180 |
+
self._active = False
|
| 181 |
+
|
| 182 |
+
def serve_forever(self):
|
| 183 |
+
asyncio.run(self.run())
|
| 184 |
+
|
| 185 |
+
async def run(self):
|
| 186 |
+
from websockets.asyncio.server import serve
|
| 187 |
+
async with serve(self._handler, self.host, self.port, compression=None,
|
| 188 |
+
max_size=None, ping_interval=None, process_request=self._health_check) as server:
|
| 189 |
+
await server.serve_forever()
|
| 190 |
+
|
| 191 |
+
@staticmethod
|
| 192 |
+
def _health_check(connection, request):
|
| 193 |
+
if request.path == '/healthz':
|
| 194 |
+
return connection.respond(http.HTTPStatus.OK, 'OK\n')
|
| 195 |
+
|
| 196 |
+
async def _handler(self, websocket):
|
| 197 |
+
from websockets.exceptions import ConnectionClosed
|
| 198 |
+
packer = Packer()
|
| 199 |
+
if self._active:
|
| 200 |
+
await websocket.close(code=1013, reason='A policy client already owns this server')
|
| 201 |
+
return
|
| 202 |
+
self._active = True
|
| 203 |
+
session = ProtocolSession(
|
| 204 |
+
lambda observation, noise: infer_with_noise(self.policy, observation, noise),
|
| 205 |
+
self.noise_shape, self.synchronize)
|
| 206 |
+
try:
|
| 207 |
+
await websocket.send(packer.pack(self.metadata))
|
| 208 |
+
while True:
|
| 209 |
+
raw = await websocket.recv()
|
| 210 |
+
if not isinstance(raw, bytes):
|
| 211 |
+
raise InfrastructureError('Expected a binary request')
|
| 212 |
+
started = time.perf_counter()
|
| 213 |
+
request = unpackb(raw)
|
| 214 |
+
unpack_ms = (time.perf_counter() - started) * 1000
|
| 215 |
+
digest = hashlib.sha256(raw).hexdigest()
|
| 216 |
+
response, duplicate = session.process(request, digest)
|
| 217 |
+
started = time.perf_counter()
|
| 218 |
+
payload = packer.pack(response)
|
| 219 |
+
pack_ms = (time.perf_counter() - started) * 1000
|
| 220 |
+
started = time.perf_counter()
|
| 221 |
+
await websocket.send(payload)
|
| 222 |
+
send_ms = (time.perf_counter() - started) * 1000
|
| 223 |
+
append_record(self.log_path, {
|
| 224 |
+
'timestamp': time.time(), 'session_id': response['session_id'],
|
| 225 |
+
'episode_id': response['episode_id'], 'sequence_id': response['sequence_id'],
|
| 226 |
+
'operation': request['operation'], 'duplicate': duplicate,
|
| 227 |
+
'request_sha256': digest, 'noise_sha256': response['noise_sha256'],
|
| 228 |
+
'request_bytes': len(raw), 'response_bytes': len(payload),
|
| 229 |
+
'server_unpack_ms': unpack_ms, 'server_pack_ms': pack_ms,
|
| 230 |
+
'server_send_ms': send_ms, 'server_infer_ms': response['server_infer_ms']})
|
| 231 |
+
except ConnectionClosed:
|
| 232 |
+
pass
|
| 233 |
+
except Exception as error:
|
| 234 |
+
append_record(self.log_path, {'timestamp': time.time(),
|
| 235 |
+
'event': 'infrastructure_error', 'error': str(error)})
|
| 236 |
+
try:
|
| 237 |
+
await websocket.send(packer.pack({'protocol': PROTOCOL, 'error': str(error)}))
|
| 238 |
+
await websocket.close(code=1011, reason='Episode invalidated')
|
| 239 |
+
except ConnectionClosed:
|
| 240 |
+
pass
|
| 241 |
+
finally:
|
| 242 |
+
self._active = False
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
class HybridClient:
|
| 246 |
+
def __init__(self, host='127.0.0.1', port=9340, timeout=120,
|
| 247 |
+
log_path=None, _connection=None):
|
| 248 |
+
if not 0 < timeout <= 120:
|
| 249 |
+
raise ValueError('timeout must be in (0,120] seconds')
|
| 250 |
+
from websockets.sync.client import connect
|
| 251 |
+
self.timeout, self.log_path = timeout, log_path
|
| 252 |
+
self._packer = Packer()
|
| 253 |
+
self._ws = None
|
| 254 |
+
self._broken = False
|
| 255 |
+
self._session_id = self._episode_id = None
|
| 256 |
+
self._sequence = 0
|
| 257 |
+
self._seed = None
|
| 258 |
+
self.metrics, self.last_metrics = [], None
|
| 259 |
+
try:
|
| 260 |
+
self._ws = _connection or connect(
|
| 261 |
+
f'ws://{host}:{port}', compression=None, max_size=None,
|
| 262 |
+
open_timeout=timeout, close_timeout=2, ping_interval=None)
|
| 263 |
+
metadata = unpackb(self._ws.recv(timeout=timeout))
|
| 264 |
+
if metadata.get('protocol') != PROTOCOL:
|
| 265 |
+
raise InfrastructureError('Unexpected server protocol')
|
| 266 |
+
shape = metadata.get('noise_shape')
|
| 267 |
+
if not isinstance(shape, list) or len(shape) != 3 or any(type(x) is not int or x <= 0 for x in shape):
|
| 268 |
+
raise InfrastructureError('Invalid server noise shape')
|
| 269 |
+
self._metadata = metadata
|
| 270 |
+
except Exception as error:
|
| 271 |
+
self.close()
|
| 272 |
+
raise InfrastructureError(f'Policy connection failed: {error}') from error
|
| 273 |
+
|
| 274 |
+
def get_server_metadata(self):
|
| 275 |
+
return dict(self._metadata)
|
| 276 |
+
|
| 277 |
+
def reset(self, episode_id, policy_seed):
|
| 278 |
+
if self._broken:
|
| 279 |
+
raise InfrastructureError('Connection invalidated; restore scene and create a new client')
|
| 280 |
+
self._session_id = uuid.uuid4().hex
|
| 281 |
+
self._episode_id = str(episode_id)
|
| 282 |
+
self._sequence, self._seed = 0, int(policy_seed)
|
| 283 |
+
return self._request('reset', policy_seed=self._seed)
|
| 284 |
+
|
| 285 |
+
def infer(self, observation, noise=None):
|
| 286 |
+
if self._session_id is None:
|
| 287 |
+
raise InfrastructureError('reset() is required before inference')
|
| 288 |
+
sequence = self._sequence + 1
|
| 289 |
+
if noise is None:
|
| 290 |
+
noise = generate_noise(self._seed, sequence, self._metadata['noise_shape'])
|
| 291 |
+
noise = validate_noise(noise, self._metadata['noise_shape'])
|
| 292 |
+
self._sequence = sequence
|
| 293 |
+
return self._request('infer', observation=observation, noise=noise)
|
| 294 |
+
|
| 295 |
+
def _request(self, operation, **values):
|
| 296 |
+
if self._broken or self._ws is None:
|
| 297 |
+
raise InfrastructureError('Connection invalidated; no automatic retry is permitted')
|
| 298 |
+
request = {'protocol': PROTOCOL, 'session_id': self._session_id,
|
| 299 |
+
'episode_id': self._episode_id, 'sequence_id': self._sequence,
|
| 300 |
+
'operation': operation, **values}
|
| 301 |
+
started = time.perf_counter()
|
| 302 |
+
raw = self._packer.pack(request)
|
| 303 |
+
pack_ms = (time.perf_counter() - started) * 1000
|
| 304 |
+
digest = hashlib.sha256(raw).hexdigest()
|
| 305 |
+
started = time.perf_counter()
|
| 306 |
+
# recv(timeout=...) alone cannot bound a blocked socket.sendall().
|
| 307 |
+
# Closing the underlying socket from a timer bounds both phases.
|
| 308 |
+
def abort_socket():
|
| 309 |
+
connection_socket = getattr(self._ws, 'socket', None)
|
| 310 |
+
if connection_socket is not None:
|
| 311 |
+
try:
|
| 312 |
+
connection_socket.shutdown(socket.SHUT_RDWR)
|
| 313 |
+
except OSError:
|
| 314 |
+
pass
|
| 315 |
+
connection_socket.close()
|
| 316 |
+
watchdog = threading.Timer(self.timeout, abort_socket)
|
| 317 |
+
watchdog.daemon = True
|
| 318 |
+
watchdog.start()
|
| 319 |
+
try:
|
| 320 |
+
self._ws.send(raw)
|
| 321 |
+
remaining = self.timeout - (time.perf_counter() - started)
|
| 322 |
+
if remaining <= 0:
|
| 323 |
+
raise TimeoutError('Policy request deadline expired during send')
|
| 324 |
+
response_raw = self._ws.recv(timeout=remaining)
|
| 325 |
+
rtt_ms = (time.perf_counter() - started) * 1000
|
| 326 |
+
if not isinstance(response_raw, bytes):
|
| 327 |
+
raise InfrastructureError('Expected a binary response')
|
| 328 |
+
started = time.perf_counter()
|
| 329 |
+
response = unpackb(response_raw)
|
| 330 |
+
unpack_ms = (time.perf_counter() - started) * 1000
|
| 331 |
+
if response.get('error'):
|
| 332 |
+
raise InfrastructureError(response['error'])
|
| 333 |
+
for key in ('protocol', 'session_id', 'episode_id', 'sequence_id'):
|
| 334 |
+
if response.get(key) != request[key]:
|
| 335 |
+
raise InfrastructureError(f'Response identity mismatch: {key}')
|
| 336 |
+
if response.get('request_sha256') != digest:
|
| 337 |
+
raise InfrastructureError('Response request hash mismatch')
|
| 338 |
+
noise_hash = noise_sha256(values['noise']) if 'noise' in values else None
|
| 339 |
+
if response.get('noise_sha256') != noise_hash:
|
| 340 |
+
raise InfrastructureError('Response noise hash mismatch')
|
| 341 |
+
if not isinstance(response.get('result'), dict):
|
| 342 |
+
raise InfrastructureError('Invalid policy result')
|
| 343 |
+
for key in ('server_queue_ms', 'server_state_switch_ms', 'server_session_init_ms'):
|
| 344 |
+
if key in response and (type(response[key]) not in (int, float) or
|
| 345 |
+
not math.isfinite(response[key]) or response[key] < 0):
|
| 346 |
+
raise InfrastructureError('Invalid server timing: ' + key)
|
| 347 |
+
except Exception as error:
|
| 348 |
+
self._broken = True
|
| 349 |
+
self.close()
|
| 350 |
+
raise InfrastructureError(f'Policy request failed; episode must restart: {error}') from error
|
| 351 |
+
finally:
|
| 352 |
+
watchdog.cancel()
|
| 353 |
+
metric = {'timestamp': time.time(), 'session_id': self._session_id,
|
| 354 |
+
'episode_id': self._episode_id, 'sequence_id': self._sequence,
|
| 355 |
+
'operation': operation, 'request_sha256': digest,
|
| 356 |
+
'noise_sha256': noise_hash, 'client_pack_ms': pack_ms,
|
| 357 |
+
'client_rtt_ms': rtt_ms, 'client_unpack_ms': unpack_ms,
|
| 358 |
+
'request_bytes': len(raw), 'response_bytes': len(response_raw),
|
| 359 |
+
'server_infer_ms': response['server_infer_ms']}
|
| 360 |
+
for key in ('server_queue_ms', 'server_state_switch_ms', 'server_session_init_ms',
|
| 361 |
+
'server_fifo_index', 'server_pending_at_enqueue', 'concurrency_protocol'):
|
| 362 |
+
if key in response:
|
| 363 |
+
metric[key] = response[key]
|
| 364 |
+
self.last_metrics = metric
|
| 365 |
+
self.metrics.append(metric)
|
| 366 |
+
append_record(self.log_path, metric)
|
| 367 |
+
return response['result']
|
| 368 |
+
|
| 369 |
+
def close(self):
|
| 370 |
+
if self._ws is not None:
|
| 371 |
+
try:
|
| 372 |
+
self._ws.close()
|
| 373 |
+
except Exception:
|
| 374 |
+
pass
|
| 375 |
+
self._ws = None
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
HybridClientPolicy = HybridClient
|
scripts/hybrid_worker.py
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""A bounded RT episode for hybrid_v1; never writes the original v1 results."""
|
| 3 |
+
import argparse
|
| 4 |
+
import faulthandler
|
| 5 |
+
import hashlib
|
| 6 |
+
import importlib
|
| 7 |
+
import json
|
| 8 |
+
import os
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
import pickle
|
| 11 |
+
import random
|
| 12 |
+
import re
|
| 13 |
+
import signal
|
| 14 |
+
import sys
|
| 15 |
+
import time
|
| 16 |
+
import traceback
|
| 17 |
+
|
| 18 |
+
from eval_common import ROOT, Telemetry, save_json
|
| 19 |
+
from eval_model_registry import MODEL_NAMES, validate_server_identity, validate_lora_identity
|
| 20 |
+
from eval_planner_optimization import evaluation_planner_setup
|
| 21 |
+
from eval_official_worker import (ROBOTWIN, LINGBOT, config, observation,
|
| 22 |
+
restore_scene_sequence, restore_task_state,
|
| 23 |
+
release_unused_cuda_cache)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def scene_hash(env):
|
| 27 |
+
"""Check exposed physical state and action counter around a blocking RPC."""
|
| 28 |
+
value = (env.take_action_cnt, env.robot.get_left_arm_jointState(),
|
| 29 |
+
env.robot.get_right_arm_jointState(),
|
| 30 |
+
env.robot.left_entity.get_qpos().tolist(), env.robot.left_entity.get_qvel().tolist(),
|
| 31 |
+
env.robot.right_entity.get_qpos().tolist(), env.robot.right_entity.get_qvel().tolist(),
|
| 32 |
+
[(a.get_name(), a.get_pose().p.tolist(), a.get_pose().q.tolist())
|
| 33 |
+
for a in env.scene.get_all_actors()])
|
| 34 |
+
return hashlib.sha256(pickle.dumps(value)).hexdigest()
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def main():
|
| 38 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 39 |
+
parser.add_argument('--mode', choices=['capture', 'evaluate'], required=True)
|
| 40 |
+
parser.add_argument('--task', default='adjust_bottle')
|
| 41 |
+
parser.add_argument('--setting', choices=['clean', 'randomized'], required=True)
|
| 42 |
+
parser.add_argument('--index', type=int, default=0)
|
| 43 |
+
parser.add_argument('--condition', choices=['local', 'ssh_loopback', 'a100'], default='local')
|
| 44 |
+
parser.add_argument('--model', choices=MODEL_NAMES, default='robotwin')
|
| 45 |
+
parser.add_argument('--precision', choices=['bf16', 'fp32'], default='bf16')
|
| 46 |
+
parser.add_argument('--planner-initialization', choices=['skip_unused', 'legacy'],
|
| 47 |
+
default='skip_unused',
|
| 48 |
+
help='Skip unused expert GPU planners; legacy retains original setup for comparisons')
|
| 49 |
+
parser.add_argument('--evaluation-protocol', default='hybrid_v1_rt')
|
| 50 |
+
parser.add_argument('--subset-id', default='')
|
| 51 |
+
parser.add_argument('--subset-commit', default='')
|
| 52 |
+
parser.add_argument('--manifest-dir', type=Path, default=ROOT / 'manifests/official_eval_1000')
|
| 53 |
+
parser.add_argument('--port', type=int, default=19530)
|
| 54 |
+
parser.add_argument('--output', type=Path, required=True)
|
| 55 |
+
args = parser.parse_args()
|
| 56 |
+
if not re.fullmatch(r'hybrid_[a-z0-9_]+_rt', args.evaluation_protocol):
|
| 57 |
+
parser.error('Expected a named hybrid RT evaluation protocol')
|
| 58 |
+
if bool(args.subset_id) != bool(args.subset_commit) or (args.subset_commit and
|
| 59 |
+
not re.fullmatch('[0-9a-f]{40}', args.subset_commit)):
|
| 60 |
+
parser.error('A frozen subset requires both its subset ID and full Git commit')
|
| 61 |
+
args.output = args.output.resolve()
|
| 62 |
+
args.output.mkdir(parents=True, exist_ok=True)
|
| 63 |
+
if (args.output / 'result.json').exists():
|
| 64 |
+
raise RuntimeError('Choose a new output directory; completed results are immutable')
|
| 65 |
+
faulthandler.register(signal.SIGUSR1, all_threads=True)
|
| 66 |
+
save_json(args.output / 'diagnostics_ready.json', {'pid': os.getpid(), 'signal': 'SIGUSR1'})
|
| 67 |
+
if os.environ.get('EVAL_RENDER_SHADER', 'rt') != 'rt':
|
| 68 |
+
raise RuntimeError('Hybrid evaluation requires the original local RT rendering')
|
| 69 |
+
manifest_path = args.manifest_dir / f'{args.task}__{args.setting}.json'
|
| 70 |
+
manifest = json.loads(manifest_path.read_text())
|
| 71 |
+
row = next(r for r in manifest['episodes'] if r['index'] == args.index)
|
| 72 |
+
if manifest['status'] != 'ready':
|
| 73 |
+
raise RuntimeError('Manifest is not ready')
|
| 74 |
+
env = client = telemetry = None
|
| 75 |
+
def timeout(*_):
|
| 76 |
+
raise TimeoutError('Hybrid episode exceeded its wall-time deadline')
|
| 77 |
+
signal.signal(signal.SIGALRM, timeout)
|
| 78 |
+
# The eager LoRA service is slower and six sessions share its serial GPU.
|
| 79 |
+
# Keep exactly the same environment action limits and frozen episode seeds.
|
| 80 |
+
signal.alarm(2400 if args.model == 'lora8' else 1200)
|
| 81 |
+
try:
|
| 82 |
+
import numpy as np
|
| 83 |
+
os.chdir(ROBOTWIN)
|
| 84 |
+
sys.path[:0] = [str(ROBOTWIN), str(ROBOTWIN / 'description/utils'), str(LINGBOT)]
|
| 85 |
+
from eval_device import bind_sapien
|
| 86 |
+
bind_sapien()
|
| 87 |
+
cls = getattr(importlib.import_module('envs.' + args.task), args.task)
|
| 88 |
+
env = cls()
|
| 89 |
+
cfg = config(args.task, args.setting)
|
| 90 |
+
telemetry = Telemetry(args.output / 'gpu_samples.jsonl')
|
| 91 |
+
start = telemetry.sample()['monotonic']
|
| 92 |
+
random.seed(row['seed'])
|
| 93 |
+
scene_sequence = restore_scene_sequence(env, row)
|
| 94 |
+
with evaluation_planner_setup(cfg, mode=args.planner_initialization,
|
| 95 |
+
action_type='qpos', policy_execution='remote') as planner_setup:
|
| 96 |
+
env.setup_demo(now_ep_num=row['index'], seed=row['seed'], is_test=True, **cfg)
|
| 97 |
+
planner_setup.verify_environment(env)
|
| 98 |
+
restored_state = restore_task_state(env, row)
|
| 99 |
+
release_unused_cuda_cache(env)
|
| 100 |
+
env.set_instruction(instruction=row['instruction'])
|
| 101 |
+
setup_seconds = time.monotonic() - start
|
| 102 |
+
import sapien
|
| 103 |
+
shader_getter = getattr(sapien.render, 'get_camera_shader_dir', None)
|
| 104 |
+
provenance = {**row, 'evaluation_protocol': args.evaluation_protocol,
|
| 105 |
+
'planner_initialization': args.planner_initialization,
|
| 106 |
+
'planner_setup': planner_setup.provenance(),
|
| 107 |
+
'noise_protocol': 'numpy_PCG64_SeedSequence_policy_seed_sequence_float32',
|
| 108 |
+
'condition': args.condition, 'model': args.model, 'precision': args.precision,
|
| 109 |
+
'manifest_sha256': hashlib.sha256(manifest_path.read_bytes()).hexdigest(),
|
| 110 |
+
'render_shader_requested': 'rt',
|
| 111 |
+
'render_shader_actual': str(shader_getter()) if shader_getter else 'getter_unavailable',
|
| 112 |
+
'render_device': str(env.scene.render_system.device),
|
| 113 |
+
'local_gpu_uuid': os.environ.get('EVAL_GPU_UUID'),
|
| 114 |
+
'restored_scene_sequence': scene_sequence, 'restored_task_state': restored_state,
|
| 115 |
+
'memory_scope': 'whole local GPU, includes desktop and any colocated policy',
|
| 116 |
+
'transport_route': ('local -> NSCC sshd -> local policy (double tunnel)' if
|
| 117 |
+
args.condition == 'ssh_loopback' else args.condition)}
|
| 118 |
+
if args.subset_id:
|
| 119 |
+
provenance.update(subset_id=args.subset_id, subset_commit=args.subset_commit)
|
| 120 |
+
save_json(args.output / 'provenance.json', provenance)
|
| 121 |
+
first_observation_start = time.monotonic()
|
| 122 |
+
first_obs = observation(env)
|
| 123 |
+
first_observation_seconds = time.monotonic() - first_observation_start
|
| 124 |
+
np.savez(args.output / 'initial_observation.npz', **first_obs)
|
| 125 |
+
obs_hashes = {key: hashlib.sha256(np.ascontiguousarray(value).tobytes()).hexdigest()
|
| 126 |
+
for key, value in first_obs.items() if key != 'task'}
|
| 127 |
+
save_json(args.output / 'observation_hashes.json', obs_hashes)
|
| 128 |
+
if args.mode == 'capture':
|
| 129 |
+
end = telemetry.sample()['monotonic']
|
| 130 |
+
result = {**provenance, 'status': 'captured', 'setup_seconds': setup_seconds,
|
| 131 |
+
'observation_hashes': obs_hashes, **telemetry.summary(start, end)}
|
| 132 |
+
else:
|
| 133 |
+
from hybrid_transport import HybridClient, InfrastructureError
|
| 134 |
+
client = HybridClient(port=args.port, timeout=120, log_path=args.output / 'requests.jsonl')
|
| 135 |
+
metadata = client.get_server_metadata()
|
| 136 |
+
if metadata['model'] != args.model or metadata['precision'] != args.precision:
|
| 137 |
+
raise InfrastructureError('Server model/precision mismatch')
|
| 138 |
+
if args.model == 'e5':
|
| 139 |
+
validate_server_identity(metadata, ROOT)
|
| 140 |
+
if args.model == 'lora8':
|
| 141 |
+
validate_lora_identity(metadata, ROOT)
|
| 142 |
+
if args.condition == 'a100' and 'A100' not in metadata.get('gpu_name', ''):
|
| 143 |
+
raise InfrastructureError('A100 condition requires an actual A100 policy device')
|
| 144 |
+
if (args.evaluation_protocol != 'hybrid_v1_rt' and
|
| 145 |
+
metadata.get('concurrency_protocol') != 'hybrid_concurrency_v1'):
|
| 146 |
+
raise InfrastructureError('Capacity evaluation requires isolated concurrent server')
|
| 147 |
+
save_json(args.output / 'server_metadata.json', metadata)
|
| 148 |
+
client.reset(f'{args.task}/{args.setting}/{args.index}', row['policy_seed'])
|
| 149 |
+
from e5_rollout_history import RolloutCombinedHistory
|
| 150 |
+
episode_id = f'{args.task}/{args.setting}/{args.index}'
|
| 151 |
+
history = RolloutCombinedHistory(episode_id, args.output, session_id=client._session_id) if args.model == 'e5' else None
|
| 152 |
+
rollout_start = time.monotonic()
|
| 153 |
+
success, calls = False, 0
|
| 154 |
+
observation_seconds, action_seconds = first_observation_seconds, 0.0
|
| 155 |
+
unchanged_waits = 0
|
| 156 |
+
while env.take_action_cnt < env.step_lim and not success:
|
| 157 |
+
tick = time.monotonic()
|
| 158 |
+
obs = first_obs if calls == 0 else observation(env)
|
| 159 |
+
observation_seconds += time.monotonic() - tick
|
| 160 |
+
before = scene_hash(env)
|
| 161 |
+
if history is not None:
|
| 162 |
+
obs = history.observe(obs, env.take_action_cnt, calls, session_id=client._session_id)
|
| 163 |
+
response = client.infer(obs)
|
| 164 |
+
if scene_hash(env) != before:
|
| 165 |
+
raise InfrastructureError('Physical state advanced during a blocking policy request')
|
| 166 |
+
unchanged_waits += 1
|
| 167 |
+
actions = np.asarray(response['action'])
|
| 168 |
+
if actions.shape != (50, 14) or not np.isfinite(actions).all():
|
| 169 |
+
raise InfrastructureError(f'Invalid action chunk: {actions.shape}')
|
| 170 |
+
np.save(args.output / f'actions_{calls:03d}.npy', actions)
|
| 171 |
+
calls += 1
|
| 172 |
+
tick = time.monotonic()
|
| 173 |
+
for action in actions:
|
| 174 |
+
if env.take_action_cnt >= env.step_lim:
|
| 175 |
+
break
|
| 176 |
+
before_counter = env.take_action_cnt
|
| 177 |
+
env.take_action(action)
|
| 178 |
+
if history is not None:
|
| 179 |
+
history.record_completed(np.asarray(action)[None], before_counter=before_counter,
|
| 180 |
+
after_counter=env.take_action_cnt, episode_id=episode_id, session_id=client._session_id)
|
| 181 |
+
if env.eval_success:
|
| 182 |
+
success = True
|
| 183 |
+
break
|
| 184 |
+
action_seconds += time.monotonic() - tick
|
| 185 |
+
print(json.dumps({'event': 'chunk', 'calls': calls, 'actions': env.take_action_cnt,
|
| 186 |
+
'success': success, 'rtt_ms': client.last_metrics['client_rtt_ms']}), flush=True)
|
| 187 |
+
rollout_seconds = time.monotonic() - rollout_start
|
| 188 |
+
action_count, step_limit = env.take_action_cnt, env.step_lim
|
| 189 |
+
env.close_env(clear_cache=((row['index'] + 1) % cfg['clear_cache_freq'] == 0))
|
| 190 |
+
end = telemetry.sample()['monotonic']
|
| 191 |
+
metrics = [m for m in client.metrics if m['operation'] == 'infer']
|
| 192 |
+
means = {f'mean_{key}': sum(m[key] for m in metrics) / len(metrics)
|
| 193 |
+
for key in ('client_pack_ms', 'client_rtt_ms', 'client_unpack_ms',
|
| 194 |
+
'server_infer_ms', 'request_bytes', 'response_bytes')}
|
| 195 |
+
if args.evaluation_protocol != 'hybrid_v1_rt':
|
| 196 |
+
for key in ('server_queue_ms', 'server_state_switch_ms', 'server_session_init_ms'):
|
| 197 |
+
means[f'mean_{key}'] = sum(m[key] for m in metrics) / len(metrics)
|
| 198 |
+
means[f'p95_{key}'] = float(np.percentile([m[key] for m in metrics], 95))
|
| 199 |
+
means['p95_client_rtt_ms'] = float(np.percentile([m['client_rtt_ms'] for m in metrics], 95))
|
| 200 |
+
result = {**provenance, 'status': 'completed', 'success': success,
|
| 201 |
+
'setup_seconds': setup_seconds, 'rollout_seconds': rollout_seconds,
|
| 202 |
+
'episode_wall_seconds': end - start, 'actions': action_count, 'step_limit': step_limit,
|
| 203 |
+
'policy_calls': calls, 'physical_state_unchanged_during_requests': unchanged_waits,
|
| 204 |
+
'observation_seconds': observation_seconds, 'action_execution_seconds': action_seconds,
|
| 205 |
+
'first_observation_seconds': first_observation_seconds,
|
| 206 |
+
'rollout_timing_scope': 'after initial observation/save/reset; includes state checks and action saves',
|
| 207 |
+
'observation_hashes': obs_hashes, **means, **telemetry.summary(start, end)}
|
| 208 |
+
result['mean_transport_serialization_residual_ms'] = (
|
| 209 |
+
means['mean_client_rtt_ms'] - means['mean_server_infer_ms'])
|
| 210 |
+
if result['memory_coverage'] < 0.98:
|
| 211 |
+
raise InfrastructureError('Insufficient GPU telemetry coverage')
|
| 212 |
+
save_json(args.output / 'result.json', result)
|
| 213 |
+
print(json.dumps({'event': 'finished', **result}), flush=True)
|
| 214 |
+
except BaseException as error:
|
| 215 |
+
save_json(args.output / 'infrastructure_error.json',
|
| 216 |
+
{'status': 'infrastructure_error', 'type': type(error).__name__, 'message': str(error),
|
| 217 |
+
'traceback': traceback.format_exc(), 'timestamp': time.time()})
|
| 218 |
+
raise
|
| 219 |
+
finally:
|
| 220 |
+
signal.alarm(0)
|
| 221 |
+
if client is not None:
|
| 222 |
+
client.close()
|
| 223 |
+
if telemetry is not None:
|
| 224 |
+
try:
|
| 225 |
+
telemetry.close()
|
| 226 |
+
except Exception as error:
|
| 227 |
+
save_json(args.output / 'telemetry_cleanup_error.json', {'message': str(error)})
|
| 228 |
+
try:
|
| 229 |
+
env.close_env()
|
| 230 |
+
except Exception:
|
| 231 |
+
pass
|
| 232 |
+
robot = getattr(env, 'robot', None)
|
| 233 |
+
for key in ('left_proc', 'right_proc'):
|
| 234 |
+
process = getattr(robot, key, None)
|
| 235 |
+
if process is not None and process.is_alive():
|
| 236 |
+
process.terminate()
|
| 237 |
+
process.join(timeout=5)
|
| 238 |
+
if process.is_alive():
|
| 239 |
+
process.kill()
|
| 240 |
+
process.join(timeout=5)
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
if __name__ == '__main__':
|
| 244 |
+
main()
|
scripts/release_eval.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Portable entry to original inference/rollout code. Plans by default; --run executes."""
|
| 2 |
+
import argparse
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import subprocess
|
| 7 |
+
import sys
|
| 8 |
+
|
| 9 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 10 |
+
SUBSET_COMMIT = 'b5abe512dafd400736c6dca5905f2fd262dd9029'
|
| 11 |
+
PUBLIC_SUBSET_COMMIT = '73277c2022be224d3afb195b503a3cff56ded46d'
|
| 12 |
+
SUBSET_CHECKSUMS_SHA256 = 'a8a41f7c5162732cce287e77628840bf754f631825d3a6a343d51c648f932eb9'
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def command(args):
|
| 16 |
+
common = ['--model','e5','--precision','fp32','--port',str(args.port),
|
| 17 |
+
'--output',str(args.output.resolve())]
|
| 18 |
+
if args.mode == 'server':
|
| 19 |
+
return [sys.executable,str(ROOT/'scripts/serve_hybrid_concurrent_policy.py'),
|
| 20 |
+
*common,'--max-clients','6']
|
| 21 |
+
if args.subset is None or args.task is None or args.setting is None:
|
| 22 |
+
raise ValueError('Episode requires --subset, --task and --setting')
|
| 23 |
+
from frozen_eval_subset import load_subset
|
| 24 |
+
subset = load_subset(args.subset,require_published=True)
|
| 25 |
+
if (subset.commit not in (SUBSET_COMMIT,PUBLIC_SUBSET_COMMIT)
|
| 26 |
+
or subset.protocol['subset_id'] != 'robotwin-eval-subset-v2-seen-unseen'
|
| 27 |
+
or subset.checksums_sha256 != SUBSET_CHECKSUMS_SHA256):
|
| 28 |
+
raise ValueError('Use the fixed original benchmark subset')
|
| 29 |
+
if not any(r['task']==args.task and r['setting']==args.setting and r['index']==args.index
|
| 30 |
+
for r in subset.plan):
|
| 31 |
+
raise ValueError('Requested episode is not in the fixed benchmark')
|
| 32 |
+
return [sys.executable,str(ROOT/'scripts/hybrid_worker.py'),*common,
|
| 33 |
+
'--mode','evaluate','--task',args.task,'--setting',args.setting,'--index',str(args.index),
|
| 34 |
+
'--condition','a100','--planner-initialization','skip_unused',
|
| 35 |
+
'--manifest-dir',str(subset.manifest_dir),
|
| 36 |
+
'--evaluation-protocol',subset.protocol['runtime_protocol'],
|
| 37 |
+
'--subset-id',subset.protocol['subset_id'],'--subset-commit',subset.commit]
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def main(argv=None):
|
| 41 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 42 |
+
parser.add_argument('mode',choices=['server','episode'])
|
| 43 |
+
parser.add_argument('--epoch',required=True,choices=['ep2','ep6'])
|
| 44 |
+
parser.add_argument('--output',type=Path,required=True)
|
| 45 |
+
parser.add_argument('--port',type=int,default=9340)
|
| 46 |
+
parser.add_argument('--subset',type=Path)
|
| 47 |
+
parser.add_argument('--task')
|
| 48 |
+
parser.add_argument('--setting',choices=['clean','randomized'])
|
| 49 |
+
parser.add_argument('--index',type=int,default=0)
|
| 50 |
+
parser.add_argument('--run',action='store_true')
|
| 51 |
+
args = parser.parse_args(argv)
|
| 52 |
+
if not 1 <= args.port <= 65535 or not 0 <= args.index < 10:
|
| 53 |
+
parser.error('Invalid port or benchmark episode index')
|
| 54 |
+
cmd = command(args)
|
| 55 |
+
if not args.run:
|
| 56 |
+
print(json.dumps({'status':'plan_only_no_gpu_or_server_started','epoch':args.epoch,'command':cmd}))
|
| 57 |
+
return
|
| 58 |
+
env = dict(os.environ, E5_EPOCH=args.epoch, EVAL_RENDER_SHADER='rt',
|
| 59 |
+
HF_HUB_OFFLINE='1', HF_HUB_DISABLE_TELEMETRY='1',
|
| 60 |
+
PYTHONPATH=os.pathsep.join([str(ROOT),str(ROOT/'scripts'),str(ROOT/'third_party/lingbot-vla-v2')]))
|
| 61 |
+
subprocess.run(cmd,cwd=ROOT,env=env,check=True)
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
if __name__ == '__main__':
|
| 65 |
+
main()
|
scripts/serve_eval_policy.py
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Official policy inference, strict streaming load, explicit evaluation precision."""
|
| 3 |
+
import argparse
|
| 4 |
+
from collections import Counter
|
| 5 |
+
import hashlib
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
import sys
|
| 10 |
+
import time
|
| 11 |
+
|
| 12 |
+
from eval_diagnostics import emit_startup, record_startup_failure
|
| 13 |
+
from eval_model_registry import MODEL_NAMES, verify_checkpoint
|
| 14 |
+
|
| 15 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 16 |
+
sys.path.insert(0, str(ROOT))
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def main():
|
| 20 |
+
p = argparse.ArgumentParser()
|
| 21 |
+
p.add_argument('--model', choices=MODEL_NAMES, required=True)
|
| 22 |
+
p.add_argument('--precision', choices=['bf16', 'fp32'], required=True)
|
| 23 |
+
p.add_argument('--output', type=Path, required=True)
|
| 24 |
+
p.add_argument('--port', type=int, default=9340)
|
| 25 |
+
args = p.parse_args()
|
| 26 |
+
try:
|
| 27 |
+
emit_startup(args.output, 'python_entry', role='policy', model=args.model,
|
| 28 |
+
precision=args.precision)
|
| 29 |
+
serve_policy(args)
|
| 30 |
+
except BaseException as error:
|
| 31 |
+
record_startup_failure(args.output, error)
|
| 32 |
+
raise
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def serve_policy(args):
|
| 36 |
+
args.output.mkdir(parents=True, exist_ok=True)
|
| 37 |
+
checkpoint_metadata = {}
|
| 38 |
+
if args.model == 'e5':
|
| 39 |
+
checkpoint, norm, checkpoint_metadata = verify_checkpoint(ROOT)
|
| 40 |
+
(args.output / 'checkpoint_verified.json').write_text(
|
| 41 |
+
json.dumps(checkpoint_metadata, indent=2) + '\n')
|
| 42 |
+
upstream = ROOT / 'third_party/lingbot-vla-v2'
|
| 43 |
+
os.environ['QWEN3VL_PATH'] = str(ROOT / 'checkpoints/dependencies/Qwen3-VL-4B-Instruct')
|
| 44 |
+
os.environ['HF_HUB_OFFLINE'] = '1'
|
| 45 |
+
os.environ['TOKENIZERS_PARALLELISM'] = 'false'
|
| 46 |
+
emit_startup(args.output, 'torch_import_started')
|
| 47 |
+
import torch
|
| 48 |
+
emit_startup(args.output, 'torch_import_complete')
|
| 49 |
+
emit_startup(args.output, 'policy_imports_started')
|
| 50 |
+
from src.phase4_policy import load_base_policy, streaming_server_class
|
| 51 |
+
emit_startup(args.output, 'policy_imports_complete')
|
| 52 |
+
torch.set_num_threads(8)
|
| 53 |
+
emit_startup(args.output, 'policy_loading', model=args.model, precision=args.precision)
|
| 54 |
+
started = time.monotonic()
|
| 55 |
+
if args.model == 'base':
|
| 56 |
+
norm = ROOT / 'manifests/norm_stats/robotwin_clean_train_s7.json'
|
| 57 |
+
policy = load_base_policy(ROOT / 'checkpoints/base/lingbot-vla-v2-6b',
|
| 58 |
+
Path(os.environ['QWEN3VL_PATH']), norm, args.output / 'runtime',
|
| 59 |
+
use_bf16=args.precision == 'bf16', use_compile=False, use_length=50, chunk_ret=True)
|
| 60 |
+
elif args.model == 'robotwin':
|
| 61 |
+
# Keep the released post-training config, including its architecture.
|
| 62 |
+
# No train-only normalization substitution for this released checkpoint.
|
| 63 |
+
norm = upstream / 'assets/norm_stats/robotwin.json'
|
| 64 |
+
checkpoint = ROOT / 'checkpoints/official/lingbot-vla-v2-6b-robotwin/checkpoints/global_step_50000/hf_ckpt'
|
| 65 |
+
cls = streaming_server_class(upstream)
|
| 66 |
+
policy = cls(path_to_pi_model=str(checkpoint), robot_norm_path=str(norm),
|
| 67 |
+
use_bf16=args.precision == 'bf16', use_fp32=args.precision == 'fp32',
|
| 68 |
+
use_compile=False, use_length=50, chunk_ret=True)
|
| 69 |
+
policy.reset('robotwin')
|
| 70 |
+
elif args.model == 'e5':
|
| 71 |
+
cls = streaming_server_class(upstream)
|
| 72 |
+
policy = cls(path_to_pi_model=str(checkpoint), robot_norm_path=str(norm),
|
| 73 |
+
use_bf16=args.precision == 'bf16', use_fp32=args.precision == 'fp32',
|
| 74 |
+
use_compile=False, use_length=50, chunk_ret=True)
|
| 75 |
+
policy.reset('robotwin')
|
| 76 |
+
elif args.model == 'lora8':
|
| 77 |
+
if args.precision != 'fp32':
|
| 78 |
+
raise ValueError('The validated LoRA profile requires FP32 inference')
|
| 79 |
+
from src.lora_eval_policy import load_lora_policy
|
| 80 |
+
from eval_model_registry import validate_lora_identity
|
| 81 |
+
policy, norm, checkpoint_metadata = load_lora_policy(ROOT, args.output)
|
| 82 |
+
validate_lora_identity(checkpoint_metadata, ROOT)
|
| 83 |
+
else:
|
| 84 |
+
raise ValueError('Unknown model: ' + args.model)
|
| 85 |
+
# Upstream constructor sets 'high'. Apply the frozen strict-FP32 protocol AFTER loading.
|
| 86 |
+
torch.set_float32_matmul_precision('highest')
|
| 87 |
+
torch.backends.cuda.matmul.allow_tf32 = False
|
| 88 |
+
torch.backends.cudnn.allow_tf32 = False
|
| 89 |
+
expected = torch.bfloat16 if args.precision == 'bf16' else torch.float32
|
| 90 |
+
dtypes = Counter(str(x.dtype) for x in policy.vla.parameters())
|
| 91 |
+
if any(x.dtype != expected for x in policy.vla.parameters()):
|
| 92 |
+
raise RuntimeError(f'Unexpected parameter dtype: {dtypes}')
|
| 93 |
+
original_infer = policy.infer
|
| 94 |
+
|
| 95 |
+
def controlled_infer(observation):
|
| 96 |
+
# A stable per-episode RNG prevents order/retries/warmup from changing actions.
|
| 97 |
+
if observation.get('reset'):
|
| 98 |
+
from deploy.lingbot_vla_v2_policy import set_seed_everywhere
|
| 99 |
+
set_seed_everywhere(int(observation.get('policy_seed', 42)))
|
| 100 |
+
with torch.inference_mode(), torch.autocast('cuda', enabled=False):
|
| 101 |
+
return original_infer(observation)
|
| 102 |
+
|
| 103 |
+
policy.infer = controlled_infer
|
| 104 |
+
torch.cuda.synchronize()
|
| 105 |
+
initialization_seconds = time.monotonic()-started
|
| 106 |
+
emit_startup(args.output, 'policy_loaded', initialization_seconds=initialization_seconds)
|
| 107 |
+
# Warm inference before starting any simulator. This avoids retaining an
|
| 108 |
+
# extra rendered scene just for warmup on a memory-constrained GPU.
|
| 109 |
+
emit_startup(args.output, 'warmup_imports_started')
|
| 110 |
+
import cv2
|
| 111 |
+
import h5py
|
| 112 |
+
import numpy as np
|
| 113 |
+
emit_startup(args.output, 'warmup_started')
|
| 114 |
+
warm_started = time.monotonic()
|
| 115 |
+
with h5py.File(ROOT/'data/raw/adjust_bottle/aloha-agilex_clean_50/data/episode0.hdf5', 'r') as f:
|
| 116 |
+
warm = {'task': 'Adjust the bottle.'}
|
| 117 |
+
for key, raw in [('cam_high','head_camera'),('cam_left_wrist','left_camera'),('cam_right_wrist','right_camera')]:
|
| 118 |
+
encoded = np.frombuffer(f[f'observation/{raw}/rgb'][0], dtype=np.uint8)
|
| 119 |
+
warm[f'observation.images.{key}'] = cv2.resize(cv2.imdecode(encoded, cv2.IMREAD_COLOR), (320,240))
|
| 120 |
+
warm['observation.state'] = np.concatenate([np.asarray(f[f'joint_action/{key}'][0]).reshape(-1)
|
| 121 |
+
for key in ['left_arm','left_gripper','right_arm','right_gripper']]).astype(np.float32)
|
| 122 |
+
if args.model == 'e5':
|
| 123 |
+
from e5_rollout_history import empty_history
|
| 124 |
+
warm.update(empty_history())
|
| 125 |
+
for _ in range(3):
|
| 126 |
+
value = policy.infer(warm)['action']
|
| 127 |
+
assert value.shape == (50,14) and np.isfinite(value).all()
|
| 128 |
+
torch.cuda.synchronize()
|
| 129 |
+
torch.cuda.empty_cache()
|
| 130 |
+
warm_seconds = time.monotonic()-warm_started
|
| 131 |
+
emit_startup(args.output, 'warmup_complete', warmup_seconds=warm_seconds)
|
| 132 |
+
metadata = {'model': args.model, 'precision': args.precision, 'compile': False,
|
| 133 |
+
'tf32': False, 'matmul_precision': torch.get_float32_matmul_precision(),
|
| 134 |
+
'autocast': False, 'parameter_dtypes': dict(dtypes),
|
| 135 |
+
'parameters': policy.loaded_parameter_count, 'tensors': policy.loaded_tensor_count,
|
| 136 |
+
'initialization_seconds': initialization_seconds, 'warmup_seconds': warm_seconds,
|
| 137 |
+
'warmup': '3 offline clean-observation calls before simulator startup; RNG reset at each evaluated episode',
|
| 138 |
+
'norm_path': str(norm), 'norm_sha256': hashlib.sha256(norm.read_bytes()).hexdigest(),
|
| 139 |
+
'attention_implementation': policy.config.attention_implementation,
|
| 140 |
+
'attn_implementation': getattr(policy.config, 'attn_implementation', None),
|
| 141 |
+
'vit_attn_implementation': getattr(policy.config, 'vit_attn_implementation', None),
|
| 142 |
+
'use_length': 50, 'chunk_ret': True, 'denoising_steps': policy.config.num_steps,
|
| 143 |
+
'vision_attention_precision_note': 'Official FA2 vision patch internally casts FP32 Q/K/V to BF16, then restores output dtype; FP32 here denotes official FP32 parameter/main-path mode, not all operations IEEE FP32.'}
|
| 144 |
+
if args.model == 'e5':
|
| 145 |
+
assert policy.config.action_history_mode == 'summary'
|
| 146 |
+
assert (policy.config.action_history_length, policy.config.action_history_mlp_hidden_size) == (8,1024)
|
| 147 |
+
assert policy.config.visual_history_mode == 'none'
|
| 148 |
+
assert policy.config.state_history_mode == 'tokens'
|
| 149 |
+
assert policy.config.state_history_length == 2 and policy.config.state_history_stride == 50
|
| 150 |
+
metadata.update(action_history_mode='summary', action_history_length=8, action_history_mlp_hidden_size=1024, visual_history_mode='none', state_history_mode='tokens', state_history_length=2,
|
| 151 |
+
state_history_stride=50, history_source='public_observation_state',
|
| 152 |
+
history_normalization='action offset0 for executed actions; train current-state features for public states',
|
| 153 |
+
history_semantics='prior public drive-target observations at policy decisions; not measured qpos')
|
| 154 |
+
metadata.update(checkpoint_metadata)
|
| 155 |
+
(args.output / 'server_metadata.json').write_text(json.dumps(metadata, indent=2)+'\n')
|
| 156 |
+
print(json.dumps({'event': 'ready', **metadata}), flush=True)
|
| 157 |
+
emit_startup(args.output, 'websocket_server_constructing', port=args.port)
|
| 158 |
+
from deploy.websocket_policy_server import WebsocketPolicyServer
|
| 159 |
+
server = WebsocketPolicyServer(policy, host='127.0.0.1', port=args.port, metadata=metadata)
|
| 160 |
+
emit_startup(args.output, 'policy_ready', startup_complete=True, port=args.port)
|
| 161 |
+
server.serve_forever()
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
if __name__ == '__main__':
|
| 165 |
+
main()
|
scripts/serve_hybrid_concurrent_policy.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Serve isolated RoboTwin sessions through one shared A100 policy replica."""
|
| 3 |
+
import argparse
|
| 4 |
+
import json
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
from hybrid_concurrent_server import ConcurrentHybridPolicyServer
|
| 8 |
+
from serve_eval_policy import serve_policy
|
| 9 |
+
from eval_model_registry import MODEL_NAMES
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def main():
|
| 13 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 14 |
+
parser.add_argument('--model', choices=MODEL_NAMES, default='robotwin')
|
| 15 |
+
parser.add_argument('--precision', choices=['bf16', 'fp32'], default='fp32')
|
| 16 |
+
parser.add_argument('--output', type=Path, required=True)
|
| 17 |
+
parser.add_argument('--port', type=int, default=9340)
|
| 18 |
+
parser.add_argument('--max-clients', type=int, choices=range(1, 9), default=4)
|
| 19 |
+
args = parser.parse_args()
|
| 20 |
+
args.output = args.output.resolve()
|
| 21 |
+
from deploy import websocket_policy_server
|
| 22 |
+
original = websocket_policy_server.WebsocketPolicyServer
|
| 23 |
+
|
| 24 |
+
class ConfiguredServer(ConcurrentHybridPolicyServer):
|
| 25 |
+
def __init__(self, *positional, **kwargs):
|
| 26 |
+
super().__init__(*positional, **kwargs, max_clients=args.max_clients,
|
| 27 |
+
log_path=args.output / 'hybrid_server_requests.jsonl')
|
| 28 |
+
(args.output / 'server_metadata.json').write_text(
|
| 29 |
+
json.dumps(self.metadata, indent=2) + '\n')
|
| 30 |
+
print(json.dumps({'event': 'hybrid_ready', **self.metadata}), flush=True)
|
| 31 |
+
|
| 32 |
+
# Preserve the existing strict streaming loader, official FP32 semantics,
|
| 33 |
+
# TF32 flags and exactly the same three offline warmup calls.
|
| 34 |
+
websocket_policy_server.WebsocketPolicyServer = ConfiguredServer
|
| 35 |
+
try:
|
| 36 |
+
serve_policy(args)
|
| 37 |
+
finally:
|
| 38 |
+
websocket_policy_server.WebsocketPolicyServer = original
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
if __name__ == '__main__':
|
| 42 |
+
main()
|
src/lora_eval_loading.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Strict CPU loading helpers for the unwrapped LingBot rank-8 adapter.
|
| 2 |
+
|
| 3 |
+
These helpers do not select training preprocessing or normalization. Those must
|
| 4 |
+
come from the training run before constructing a policy for closed-loop use.
|
| 5 |
+
"""
|
| 6 |
+
import re
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def expand_fused_experts(state):
|
| 10 |
+
"""Convert official [expert, out, in] weights to eager nn.Linear keys."""
|
| 11 |
+
result = {}
|
| 12 |
+
for name, tensor in state.items():
|
| 13 |
+
match = re.fullmatch(r"(.+\.experts)\.(gate_proj|up_proj|down_proj)", name)
|
| 14 |
+
if match:
|
| 15 |
+
if tensor.ndim != 3:
|
| 16 |
+
raise ValueError("Fused expert must have three dimensions: " + name)
|
| 17 |
+
items = [(f"{match[1]}.{i}.{match[2]}.weight", value)
|
| 18 |
+
for i, value in enumerate(tensor.unbind(0))]
|
| 19 |
+
else:
|
| 20 |
+
items = [(name, tensor)]
|
| 21 |
+
for key, value in items:
|
| 22 |
+
if key in result:
|
| 23 |
+
raise ValueError("Duplicate converted key: " + key)
|
| 24 |
+
result[key] = value
|
| 25 |
+
return result
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def validate_adapter(state, targets, expected_weights, rank=8):
|
| 29 |
+
"""Reject partial, malformed or nonfinite adapters before policy startup."""
|
| 30 |
+
import torch
|
| 31 |
+
|
| 32 |
+
expected = {target + suffix for target in targets
|
| 33 |
+
for suffix in ('.lora_A.weight', '.lora_B.weight')}
|
| 34 |
+
if set(state) != expected:
|
| 35 |
+
raise ValueError("Adapter key inventory differs from target modules")
|
| 36 |
+
for target in targets:
|
| 37 |
+
a, b = (state[target + suffix]
|
| 38 |
+
for suffix in ('.lora_A.weight', '.lora_B.weight'))
|
| 39 |
+
weight = expected_weights[target + '.weight']
|
| 40 |
+
if (a.ndim != 2 or b.ndim != 2 or a.shape[0] != rank or
|
| 41 |
+
b.shape[1] != rank or tuple(weight.shape) != (b.shape[0], a.shape[1])):
|
| 42 |
+
raise ValueError("Adapter/base shape mismatch: " + target)
|
| 43 |
+
if any(t.dtype != torch.float32 or not torch.isfinite(t).all().item()
|
| 44 |
+
for t in (a, b)):
|
| 45 |
+
raise ValueError("Adapter must contain finite FP32 values: " + target)
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def inject_and_load_adapter(policy, config, state):
|
| 49 |
+
"""Use in-place PEFT injection and verify every loaded adapter value."""
|
| 50 |
+
import torch
|
| 51 |
+
from peft import inject_adapter_in_model
|
| 52 |
+
from peft.utils.save_and_load import set_peft_model_state_dict
|
| 53 |
+
|
| 54 |
+
if config.r != 8 or config.lora_alpha != 8 or config.bias != 'none':
|
| 55 |
+
raise ValueError("This profile requires rank=8, alpha=8, bias=none")
|
| 56 |
+
if config.modules_to_save or config.use_dora or config.use_rslora:
|
| 57 |
+
raise ValueError("Unsupported adapter variant")
|
| 58 |
+
validate_adapter(state, config.target_modules, policy.state_dict(), rank=config.r)
|
| 59 |
+
policy = inject_adapter_in_model(config, policy, adapter_name='default')
|
| 60 |
+
loaded = set_peft_model_state_dict(policy, state, adapter_name='default')
|
| 61 |
+
if loaded.unexpected_keys or any('lora_' in k for k in loaded.missing_keys):
|
| 62 |
+
raise ValueError("Adapter loading left missing or unexpected adapter keys")
|
| 63 |
+
actual = policy.state_dict()
|
| 64 |
+
for key, tensor in state.items():
|
| 65 |
+
target = key.replace('.lora_A.weight', '.lora_A.default.weight').replace(
|
| 66 |
+
'.lora_B.weight', '.lora_B.default.weight')
|
| 67 |
+
if not torch.equal(actual[target].cpu(), tensor.cpu()):
|
| 68 |
+
raise ValueError("Loaded adapter differs from source: " + key)
|
| 69 |
+
policy.requires_grad_(False)
|
| 70 |
+
policy.eval()
|
| 71 |
+
return policy
|
src/lora_eval_policy.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Rank-8 policy using explicitly assumed official RoboTwin preprocessing."""
|
| 2 |
+
import hashlib
|
| 3 |
+
import json
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
|
| 6 |
+
ADAPTER_SHA = '51563f4e588174361ef8ad61db63a23da4ec33c0b115095375bd9323025cf5f0'
|
| 7 |
+
CONFIG_SHA = 'f0c1f8f2e9add85ac9bf573feba91ce52fa4bc24fb4927f175a8b7520e877449'
|
| 8 |
+
REVISION = '1d40e50988de2da6a07877e81a0941da3317733b'
|
| 9 |
+
MODEL = 'lora_r8_step10000'
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def sha(path):
|
| 13 |
+
h = hashlib.sha256()
|
| 14 |
+
with Path(path).open('rb') as f:
|
| 15 |
+
for data in iter(lambda: f.read(8 * 1024 * 1024), b''):
|
| 16 |
+
h.update(data)
|
| 17 |
+
return h.hexdigest()
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def load_lora_policy(root, output):
|
| 21 |
+
import torch
|
| 22 |
+
import yaml
|
| 23 |
+
from peft import LoraConfig
|
| 24 |
+
from safetensors import safe_open
|
| 25 |
+
from safetensors.torch import load_file
|
| 26 |
+
from src.phase4_policy import prepare_base_runtime, streaming_server_class
|
| 27 |
+
from src.lora_eval_loading import expand_fused_experts, inject_and_load_adapter
|
| 28 |
+
|
| 29 |
+
root, output = Path(root), Path(output)
|
| 30 |
+
adapter = root / 'outputs/lora_r8_smoke_preparation_20260929/adapter'
|
| 31 |
+
if sha(adapter/'adapter_model.safetensors') != ADAPTER_SHA or sha(adapter/'adapter_config.json') != CONFIG_SHA:
|
| 32 |
+
raise ValueError('Frozen adapter checksum mismatch')
|
| 33 |
+
upstream = root/'third_party/lingbot-vla-v2'
|
| 34 |
+
norm = upstream/'assets/norm_stats/robotwin.json'
|
| 35 |
+
base = root/'checkpoints/base/lingbot-vla-v2-6b'
|
| 36 |
+
# Verify the complete official base, not merely its model name or shapes.
|
| 37 |
+
manifest = json.loads((root/'manifests/lingbot-vla-v2-6b.json').read_text())
|
| 38 |
+
if manifest['revision'] != '11c703bf6a5c1f45b3b69168482da11fdbba53d7':
|
| 39 |
+
raise ValueError('Wrong base revision')
|
| 40 |
+
index = json.loads((base/'model.safetensors.index.json').read_text())
|
| 41 |
+
siblings = {x['rfilename']: x for x in manifest['siblings']}
|
| 42 |
+
for name in sorted(set(index['weight_map'].values())):
|
| 43 |
+
if sha(base/name) != siblings[name]['lfs']['sha256']:
|
| 44 |
+
raise ValueError('Base shard checksum mismatch: ' + name)
|
| 45 |
+
checkpoint, provenance = prepare_base_runtime(base,
|
| 46 |
+
root/'checkpoints/dependencies/Qwen3-VL-4B-Instruct', norm,
|
| 47 |
+
output/'runtime', upstream=upstream)
|
| 48 |
+
yaml_path = output/'runtime/lingbotvla_cli.yaml'
|
| 49 |
+
cfg = yaml.safe_load(yaml_path.read_text())
|
| 50 |
+
cfg['model']['moe_implementation'] = 'eager'
|
| 51 |
+
yaml_path.write_text(yaml.safe_dump(cfg, sort_keys=False))
|
| 52 |
+
|
| 53 |
+
class LoraServer(streaming_server_class(upstream)):
|
| 54 |
+
def load_model_weights(self, path_to_pi_model, strict=True):
|
| 55 |
+
if not strict:
|
| 56 |
+
raise ValueError('Strict base loading required')
|
| 57 |
+
expected = self.vla.state_dict()
|
| 58 |
+
tensors = {}
|
| 59 |
+
for name in sorted(set(index['weight_map'].values())):
|
| 60 |
+
with safe_open(base/name, framework='pt', device='cpu') as shard:
|
| 61 |
+
raw = {}
|
| 62 |
+
for key in shard.keys():
|
| 63 |
+
if index['weight_map'].get(key) != name:
|
| 64 |
+
raise ValueError('Wrong shard assignment: ' + key)
|
| 65 |
+
t = shard.get_tensor(key)
|
| 66 |
+
raw[key] = t.float() if t.is_floating_point() else t
|
| 67 |
+
for key, t in expand_fused_experts(raw).items():
|
| 68 |
+
if key in tensors or key not in expected or t.shape != expected[key].shape:
|
| 69 |
+
raise ValueError('Converted base key/shape mismatch: ' + key)
|
| 70 |
+
tensors[key] = t
|
| 71 |
+
print('Loaded and expanded base shard', name, flush=True)
|
| 72 |
+
if set(tensors) != set(expected):
|
| 73 |
+
raise ValueError('Converted base inventory does not match eager policy')
|
| 74 |
+
self.vla.load_state_dict(tensors, strict=True, assign=True)
|
| 75 |
+
if any(t.is_meta for t in list(self.vla.parameters()) + list(self.vla.buffers())):
|
| 76 |
+
raise ValueError('Meta tensors remain after loading')
|
| 77 |
+
self.vla = inject_and_load_adapter(self.vla,
|
| 78 |
+
LoraConfig.from_pretrained(str(adapter)),
|
| 79 |
+
load_file(str(adapter/'adapter_model.safetensors'), device='cpu'))
|
| 80 |
+
self.loaded_parameter_count = sum(p.numel() for p in self.vla.parameters())
|
| 81 |
+
self.loaded_tensor_count = len(self.vla.state_dict())
|
| 82 |
+
print('Strict eager base + complete LoRA loaded', self.loaded_parameter_count, flush=True)
|
| 83 |
+
|
| 84 |
+
policy = LoraServer(path_to_pi_model=str(checkpoint), robot_norm_path=str(norm),
|
| 85 |
+
use_bf16=False, use_fp32=True, use_compile=False, use_length=50, chunk_ret=True)
|
| 86 |
+
policy.reset('robotwin')
|
| 87 |
+
metadata = {'checkpoint_source_kind': 'lora_adapter', 'adapter_revision': REVISION,
|
| 88 |
+
'adapter_sha256': ADAPTER_SHA, 'adapter_config_sha256': CONFIG_SHA,
|
| 89 |
+
'base_revision': manifest['revision'], 'base_shards_verified': True,
|
| 90 |
+
'adapter_tensors_verified': 8494, 'lora_rank': 8, 'lora_alpha': 8,
|
| 91 |
+
'moe_implementation': 'eager', 'training_configuration_verified': False,
|
| 92 |
+
'configuration_assumption': 'User-authorized official RoboTwin model/preprocessing/normalization; eager expert layout for LoRA',
|
| 93 |
+
'norm_sha256': sha(norm), 'runtime_yaml_s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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Reusable official base-policy loading for local Phase 4 interface checks.
|
| 2 |
+
|
| 3 |
+
Only construction/loading changes: parameters are constructed on meta and loaded
|
| 4 |
+
in the requested dtype on CPU before official device placement. The upstream
|
| 5 |
+
inference implementation, action transform, and websocket protocol are retained.
|
| 6 |
+
This is a base checkpoint, not a RoboTwin-finetuned evaluation checkpoint.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
import contextlib
|
| 10 |
+
import hashlib
|
| 11 |
+
import json
|
| 12 |
+
import os
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
import sys
|
| 15 |
+
import threading
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 19 |
+
DEFAULT_UPSTREAM = ROOT / "third_party/lingbot-vla-v2"
|
| 20 |
+
_CONSTRUCTION_LOCK = threading.RLock()
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
@contextlib.contextmanager
|
| 24 |
+
def upstream_working_directory(path):
|
| 25 |
+
previous = Path.cwd()
|
| 26 |
+
os.chdir(path)
|
| 27 |
+
try:
|
| 28 |
+
yield
|
| 29 |
+
finally:
|
| 30 |
+
os.chdir(previous)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def prepare_base_runtime(base_path, qwen_path, norm_stats_path, runtime_dir, upstream=DEFAULT_UPSTREAM):
|
| 34 |
+
"""Build the directory topology expected by the unchanged official loader."""
|
| 35 |
+
import yaml
|
| 36 |
+
|
| 37 |
+
base_path = Path(base_path).resolve()
|
| 38 |
+
qwen_path = Path(qwen_path).resolve()
|
| 39 |
+
norm_stats_path = Path(norm_stats_path).resolve()
|
| 40 |
+
runtime_dir = Path(runtime_dir).resolve()
|
| 41 |
+
upstream = Path(upstream).resolve()
|
| 42 |
+
index_path = base_path / "model.safetensors.index.json"
|
| 43 |
+
index = json.loads(index_path.read_text())
|
| 44 |
+
if not index.get("weight_map"):
|
| 45 |
+
raise ValueError("Checkpoint index has no weight_map")
|
| 46 |
+
shard_names = sorted(set(index["weight_map"].values()))
|
| 47 |
+
if any(Path(name).name != name or not name.endswith(".safetensors") for name in shard_names):
|
| 48 |
+
raise ValueError("Expected plain safetensors shard filenames in checkpoint index")
|
| 49 |
+
for name in shard_names:
|
| 50 |
+
if not (base_path / name).is_file():
|
| 51 |
+
raise FileNotFoundError(base_path / name)
|
| 52 |
+
if not (qwen_path / "config.json").is_file() or not norm_stats_path.is_file():
|
| 53 |
+
raise FileNotFoundError("Qwen config and normalization statistics must exist locally")
|
| 54 |
+
# Fused MoE weights contain 3D experts.*_proj; eager uses experts.N.*.weight.
|
| 55 |
+
eager_keys = [key for key in index["weight_map"] if ".experts." in key and key.endswith(".weight")]
|
| 56 |
+
fused_keys = [key for key in index["weight_map"] if ".experts." in key and key.endswith((".gate_proj", ".up_proj", ".down_proj"))]
|
| 57 |
+
if eager_keys or not fused_keys:
|
| 58 |
+
raise ValueError("This base loader expects the released fused-MoE checkpoint; no automatic key conversion is performed")
|
| 59 |
+
cfg = yaml.safe_load((upstream / "configs/vla/robotwin/robotwin.yaml").read_text())
|
| 60 |
+
if cfg["model"].get("moe_implementation") != "fused":
|
| 61 |
+
raise ValueError("Official runtime configuration must retain fused MoE for these weights")
|
| 62 |
+
cfg["model"]["model_path"] = str(base_path)
|
| 63 |
+
cfg["model"]["tokenizer_path"] = str(qwen_path)
|
| 64 |
+
# The training argument parser serializes these dict-like values as strings.
|
| 65 |
+
for key in ("joints", "norm_type"):
|
| 66 |
+
cfg["data"][key] = [str(value) for value in cfg["data"][key]]
|
| 67 |
+
cfg["data"]["norm_stats_file"] = str(norm_stats_path)
|
| 68 |
+
cfg["data"]["img_size"] = 256
|
| 69 |
+
cfg["train"]["use_compile"] = False
|
| 70 |
+
hf_checkpoint = runtime_dir / "checkpoints/global_step_0/hf_ckpt"
|
| 71 |
+
hf_checkpoint.mkdir(parents=True, exist_ok=True)
|
| 72 |
+
for name in shard_names + [index_path.name]:
|
| 73 |
+
target = base_path / name
|
| 74 |
+
link = hf_checkpoint / name
|
| 75 |
+
if link.exists() or link.is_symlink():
|
| 76 |
+
if not link.is_symlink() or link.resolve() != target:
|
| 77 |
+
raise FileExistsError(f"Runtime checkpoint entry conflicts with requested source: {link}")
|
| 78 |
+
else:
|
| 79 |
+
link.symlink_to(target)
|
| 80 |
+
configuration_path = runtime_dir / "lingbotvla_cli.yaml"
|
| 81 |
+
configuration_text = yaml.safe_dump(cfg, sort_keys=False)
|
| 82 |
+
if configuration_path.exists() and configuration_path.read_text() != configuration_text:
|
| 83 |
+
raise FileExistsError(f"Use a fresh runtime directory for changed configuration: {runtime_dir}")
|
| 84 |
+
configuration_path.write_text(configuration_text)
|
| 85 |
+
provenance = {"base_path": str(base_path), "qwen_path": str(qwen_path),
|
| 86 |
+
"norm_stats_path": str(norm_stats_path), "upstream": str(upstream),
|
| 87 |
+
"checkpoint_index_sha256": hashlib.sha256(index_path.read_bytes()).hexdigest(),
|
| 88 |
+
"checkpoint_tensor_count": len(index["weight_map"]), "checkpoint_shard_count": len(shard_names),
|
| 89 |
+
"checkpoint_expert_layout": "fused", "fused_expert_tensor_count": len(fused_keys),
|
| 90 |
+
"base_checkpoint_only": True, "robotwin_finetuning_performed": False}
|
| 91 |
+
(runtime_dir / "runtime_source.json").write_text(json.dumps(provenance, indent=2) + "\n")
|
| 92 |
+
return hf_checkpoint, provenance
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def streaming_server_class(upstream=DEFAULT_UPSTREAM):
|
| 96 |
+
"""Return a subclass with the official constructor, infer, and reset interface."""
|
| 97 |
+
import torch
|
| 98 |
+
from accelerate import init_empty_weights
|
| 99 |
+
from safetensors import safe_open
|
| 100 |
+
|
| 101 |
+
upstream = Path(upstream).resolve()
|
| 102 |
+
if str(upstream) not in sys.path:
|
| 103 |
+
sys.path.insert(0, str(upstream))
|
| 104 |
+
import deploy.lingbot_vla_v2_policy as official
|
| 105 |
+
|
| 106 |
+
class StreamingBaseServer(official.LingbotVLAv2Server):
|
| 107 |
+
def __init__(self, *args, **kwargs):
|
| 108 |
+
# Official use_bf16 is positional argument 6, default True.
|
| 109 |
+
use_bf16 = kwargs.get("use_bf16", args[6] if len(args) > 6 else True)
|
| 110 |
+
self._checkpoint_dtype = torch.bfloat16 if use_bf16 else torch.float32
|
| 111 |
+
with upstream_working_directory(upstream):
|
| 112 |
+
super().__init__(*args, **kwargs)
|
| 113 |
+
|
| 114 |
+
def load_vla(self, path_to_pi_model):
|
| 115 |
+
with _CONSTRUCTION_LOCK, upstream_working_directory(upstream):
|
| 116 |
+
original = official.LingBotVlaV2InferencePolicy
|
| 117 |
+
|
| 118 |
+
def empty_constructor(*args, **kwargs):
|
| 119 |
+
# Keep initialized buffers on CPU. Meta is only for parameters;
|
| 120 |
+
# putting nonpersistent rotary buffers on meta loses their values.
|
| 121 |
+
with init_empty_weights(include_buffers=False):
|
| 122 |
+
return original(*args, **kwargs)
|
| 123 |
+
|
| 124 |
+
official.LingBotVlaV2InferencePolicy = empty_constructor
|
| 125 |
+
try:
|
| 126 |
+
return super().load_vla(path_to_pi_model)
|
| 127 |
+
finally:
|
| 128 |
+
official.LingBotVlaV2InferencePolicy = original
|
| 129 |
+
|
| 130 |
+
def load_model_weights(self, path_to_pi_model, strict=True):
|
| 131 |
+
if not strict:
|
| 132 |
+
raise ValueError("The base-policy wrapper requires strict checkpoint loading")
|
| 133 |
+
path = Path(path_to_pi_model)
|
| 134 |
+
index = json.loads((path / "model.safetensors.index.json").read_text())
|
| 135 |
+
expected = self.vla.state_dict()
|
| 136 |
+
index_keys = set(index["weight_map"])
|
| 137 |
+
if set(expected) != index_keys:
|
| 138 |
+
missing = sorted(set(expected) - index_keys)
|
| 139 |
+
unexpected = sorted(index_keys - set(expected))
|
| 140 |
+
raise ValueError(f"Checkpoint/model key mismatch before tensor loading; missing={missing[:20]}, unexpected={unexpected[:20]}")
|
| 141 |
+
tensors = {}
|
| 142 |
+
for name in sorted(set(index["weight_map"].values())):
|
| 143 |
+
with safe_open(path / name, framework="pt", device="cpu") as shard:
|
| 144 |
+
for key in shard.keys():
|
| 145 |
+
if key in tensors:
|
| 146 |
+
raise ValueError(f"Duplicate checkpoint key: {key}")
|
| 147 |
+
if key not in expected or index["weight_map"].get(key) != name:
|
| 148 |
+
raise ValueError(f"Unexpected checkpoint key/shard assignment: {key} in {name}")
|
| 149 |
+
tensor = shard.get_tensor(key)
|
| 150 |
+
if tensor.shape != expected[key].shape:
|
| 151 |
+
raise ValueError(f"Checkpoint shape mismatch: {key}, {tensor.shape} != {expected[key].shape}")
|
| 152 |
+
tensors[key] = tensor.to(self._checkpoint_dtype) if tensor.is_floating_point() else tensor
|
| 153 |
+
print("Loaded shard", name, flush=True)
|
| 154 |
+
result = self.vla.load_state_dict(tensors, strict=True, assign=True)
|
| 155 |
+
if result.missing_keys or result.unexpected_keys:
|
| 156 |
+
raise ValueError(f"Strict checkpoint load failed: {result}")
|
| 157 |
+
remaining_meta = [name for name, value in list(self.vla.named_parameters()) + list(self.vla.named_buffers()) if value.is_meta]
|
| 158 |
+
if remaining_meta:
|
| 159 |
+
raise ValueError(f"Uninitialized meta tensors after strict loading: {remaining_meta[:20]}")
|
| 160 |
+
self.loaded_parameter_count = sum(param.numel() for param in self.vla.parameters())
|
| 161 |
+
self.loaded_tensor_count = len(tensors)
|
| 162 |
+
print("Strict load complete; parameters", self.loaded_parameter_count, "tensors", self.loaded_tensor_count, flush=True)
|
| 163 |
+
|
| 164 |
+
def reset(self, robo_name, path_to_pi_model=None):
|
| 165 |
+
# Upstream reset resolves configs/robot_configs relative to cwd.
|
| 166 |
+
with upstream_working_directory(upstream):
|
| 167 |
+
return super().reset(robo_name, path_to_pi_model)
|
| 168 |
+
|
| 169 |
+
return StreamingBaseServer
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
def load_base_policy(base_path, qwen_path, norm_stats_path, runtime_dir,
|
| 173 |
+
upstream=DEFAULT_UPSTREAM, use_bf16=True, use_compile=False,
|
| 174 |
+
use_length=50, chunk_ret=True, robo_name="robotwin"):
|
| 175 |
+
"""Strictly load and reset the official policy; `.infer()` stays upstream's."""
|
| 176 |
+
qwen_path = Path(qwen_path).resolve()
|
| 177 |
+
norm_stats_path = Path(norm_stats_path).resolve()
|
| 178 |
+
os.environ["QWEN3VL_PATH"] = str(qwen_path)
|
| 179 |
+
os.environ.setdefault("HF_HUB_OFFLINE", "1")
|
| 180 |
+
os.environ.setdefault("TOKENIZERS_PARALLELISM", "false")
|
| 181 |
+
checkpoint, provenance = prepare_base_runtime(base_path, qwen_path,
|
| 182 |
+
norm_stats_path, runtime_dir, upstream=upstream)
|
| 183 |
+
server_type = streaming_server_class(upstream)
|
| 184 |
+
policy = server_type(path_to_pi_model=str(checkpoint), robot_norm_path=str(norm_stats_path),
|
| 185 |
+
use_bf16=use_bf16, use_fp32=not use_bf16, use_compile=use_compile,
|
| 186 |
+
use_length=use_length, chunk_ret=chunk_ret)
|
| 187 |
+
policy.reset(robo_name)
|
| 188 |
+
policy.phase4_source = provenance
|
| 189 |
+
return policy
|
third_party/lingbot-vla-v2/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
third_party/lingbot-vla-v2/configs/robot_configs/agilex_cobot_magic.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
states:
|
| 2 |
+
- observation.state.arm.position:
|
| 3 |
+
origin_keys: observation.state.arm.position
|
| 4 |
+
- observation.state.effector.position:
|
| 5 |
+
origin_keys: observation.state.effector.position
|
| 6 |
+
|
| 7 |
+
actions:
|
| 8 |
+
- action.arm.position:
|
| 9 |
+
origin_keys: action.arm.position
|
| 10 |
+
subtract_state: true
|
| 11 |
+
- action.effector.position:
|
| 12 |
+
origin_keys: action.effector.position
|
| 13 |
+
subtract_state: false
|
| 14 |
+
|
| 15 |
+
images:
|
| 16 |
+
- observation.images.camera_top
|
| 17 |
+
- observation.images.camera_wrist_left
|
| 18 |
+
- observation.images.camera_wrist_right
|
| 19 |
+
|
| 20 |
+
norm_stats: assets/norm_stats/example.json
|
third_party/lingbot-vla-v2/configs/robot_configs/robotwin.yaml
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
states:
|
| 2 |
+
- observation.state.arm.position:
|
| 3 |
+
origin_keys:
|
| 4 |
+
- observation.state:
|
| 5 |
+
start: 0
|
| 6 |
+
end: 6
|
| 7 |
+
- observation.state:
|
| 8 |
+
start: 7
|
| 9 |
+
end: 13
|
| 10 |
+
|
| 11 |
+
- observation.state.effector.position:
|
| 12 |
+
origin_keys:
|
| 13 |
+
- observation.state:
|
| 14 |
+
start: 6
|
| 15 |
+
end: 7
|
| 16 |
+
- observation.state:
|
| 17 |
+
start: 13
|
| 18 |
+
end: 14
|
| 19 |
+
|
| 20 |
+
actions:
|
| 21 |
+
- action.arm.position:
|
| 22 |
+
origin_keys:
|
| 23 |
+
- action:
|
| 24 |
+
start: 0
|
| 25 |
+
end: 6
|
| 26 |
+
- action:
|
| 27 |
+
start: 7
|
| 28 |
+
end: 13
|
| 29 |
+
subtract_state: False
|
| 30 |
+
|
| 31 |
+
- action.effector.position:
|
| 32 |
+
origin_keys:
|
| 33 |
+
- action:
|
| 34 |
+
start: 6
|
| 35 |
+
end: 7
|
| 36 |
+
- action:
|
| 37 |
+
start: 13
|
| 38 |
+
end: 14
|
| 39 |
+
subtract_state: False
|
| 40 |
+
|
| 41 |
+
images:
|
| 42 |
+
- observation.images.camera_top:
|
| 43 |
+
origin_keys: observation.images.cam_high
|
| 44 |
+
- observation.images.camera_wrist_left:
|
| 45 |
+
origin_keys: observation.images.cam_left_wrist
|
| 46 |
+
- observation.images.camera_wrist_right:
|
| 47 |
+
origin_keys: observation.images.cam_right_wrist
|
| 48 |
+
|
| 49 |
+
norm_stats: assets/norm_stats/robotwin.json
|
third_party/lingbot-vla-v2/configs/vla/norm_compute/post_data.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data:
|
| 2 |
+
datasets_type: vla
|
| 3 |
+
data_name: multi
|
| 4 |
+
robot_name:
|
| 5 |
+
train_path:
|
| 6 |
+
robot_config_root: configs/robot_configs
|
| 7 |
+
norm_path:
|
| 8 |
+
num_workers: 8
|
| 9 |
+
prompt_type: global
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
train:
|
| 13 |
+
micro_batch_size: 48
|
| 14 |
+
output_dir: ''
|
| 15 |
+
max_steps: 100000000000000
|
third_party/lingbot-vla-v2/configs/vla/real_robot/real_robot.yaml
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
model_path: /path/to/pretain_ckpt/hf_ckpt
|
| 3 |
+
tokenizer_path: /path/to/Qwen3-VL-4B-Instruct
|
| 4 |
+
post_training: true
|
| 5 |
+
adanorm_time: true
|
| 6 |
+
config_key: LingbotVLAV2Config
|
| 7 |
+
moe_implementation: fused
|
| 8 |
+
|
| 9 |
+
data:
|
| 10 |
+
datasets_type: vla
|
| 11 |
+
data_name: multi
|
| 12 |
+
train_path: path/to/training_data.txt (e.g., assets/training_data/robotwin.txt)
|
| 13 |
+
robot_config_root: configs/robot_configs
|
| 14 |
+
joints:
|
| 15 |
+
- arm.position: 14
|
| 16 |
+
- end.position: 14
|
| 17 |
+
- effector.position: 2
|
| 18 |
+
- waist.position: 4
|
| 19 |
+
- head.position: 2
|
| 20 |
+
- base.position: 3
|
| 21 |
+
- hand.position: 12
|
| 22 |
+
cameras:
|
| 23 |
+
- camera_top
|
| 24 |
+
- camera_wrist_left
|
| 25 |
+
- camera_wrist_right
|
| 26 |
+
norm_type:
|
| 27 |
+
- arm.position: meanstd
|
| 28 |
+
- end.position: meanstd
|
| 29 |
+
- effector.position: meanstd
|
| 30 |
+
- waist.position: meanstd
|
| 31 |
+
- head.position: meanstd
|
| 32 |
+
- base.position: meanstd
|
| 33 |
+
- hand.position: meanstd
|
| 34 |
+
num_workers: 8
|
| 35 |
+
use_future_image: true
|
| 36 |
+
|
| 37 |
+
train:
|
| 38 |
+
output_dir: /path/to/save_ckpt
|
| 39 |
+
moe_monitor_interval: 1000
|
| 40 |
+
enable_gradient_checkpointing: false # Set to true if GPU memory is insufficient, but this will slow down training.
|
| 41 |
+
precompute_grid_thw: true
|
| 42 |
+
vlm_causal: true
|
| 43 |
+
vlm_fsdp: true
|
| 44 |
+
attention_implementation: flex_cached
|
| 45 |
+
use_moe: true
|
| 46 |
+
token_moe_layers: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]
|
| 47 |
+
token_num_experts: 32
|
| 48 |
+
token_top_k: 4
|
| 49 |
+
token_moe_intermediate_size: 512
|
| 50 |
+
token_shared_intermediate_size: 704
|
| 51 |
+
bias_update_speed: 0
|
| 52 |
+
sequence_wise_mode: "per_sequence"
|
| 53 |
+
sequence_wise_loss_coeff: 1e-3
|
| 54 |
+
router_z_loss_coeff: 1e-4
|
| 55 |
+
router_activation: "sigmoid"
|
| 56 |
+
routed_scaling_factor: 4.0
|
| 57 |
+
use_shared_expert_gate: false
|
| 58 |
+
use_moe_expert_lr: true
|
| 59 |
+
data_parallel_mode: fsdp2
|
| 60 |
+
enable_full_shard: false
|
| 61 |
+
module_fsdp_enable: true
|
| 62 |
+
use_compile: true
|
| 63 |
+
use_wandb: false
|
| 64 |
+
rmpad: false
|
| 65 |
+
rmpad_with_pos_ids: false
|
| 66 |
+
ulysses_parallel_size: 1
|
| 67 |
+
freeze_vision_encoder: false
|
| 68 |
+
tokenizer_max_length: 72
|
| 69 |
+
action_dim: 55
|
| 70 |
+
max_action_dim: 55
|
| 71 |
+
max_state_dim: 55
|
| 72 |
+
optimizer: muon
|
| 73 |
+
lr: 5.0e-5
|
| 74 |
+
lr_decay_style: constant
|
| 75 |
+
num_train_epochs: 29000
|
| 76 |
+
micro_batch_size: 32
|
| 77 |
+
global_batch_size: 256
|
| 78 |
+
max_steps: 60000
|
| 79 |
+
ckpt_manager: dcp
|
| 80 |
+
save_steps: 20000
|
| 81 |
+
save_epochs: 29000
|
| 82 |
+
enable_fp32: true
|
| 83 |
+
enable_resume: true
|
| 84 |
+
align_params:
|
| 85 |
+
mode: 'query'
|
| 86 |
+
num_task_tokens: 8
|
| 87 |
+
depth_loss_weight: 0.004
|
| 88 |
+
future_depth_loss_weight: 0.004
|
| 89 |
+
use_future_video: true
|
| 90 |
+
llm:
|
| 91 |
+
dim_out: 2560
|
| 92 |
+
image_token_size: 8
|
| 93 |
+
image_input_size: 224
|
| 94 |
+
depth:
|
| 95 |
+
model_type: MoRGBD
|
| 96 |
+
moge_path: /path/to/depth/moge2-vitb-normal.pt
|
| 97 |
+
morgbd_path: /path/to/depth/model.pt
|
| 98 |
+
num_layers: 1
|
| 99 |
+
num_heads: 4
|
| 100 |
+
dim_head: 32
|
| 101 |
+
ff_mult: 1
|
| 102 |
+
num_backbone_tokens: 256
|
| 103 |
+
token_size: 16
|
| 104 |
+
dim_out: 1024
|
| 105 |
+
input_size: 224
|
| 106 |
+
use_future_depth: true
|
| 107 |
+
block_future_depth_to_action: false
|
| 108 |
+
detach_future_image_feats: true
|
| 109 |
+
video:
|
| 110 |
+
ckpt_path: /path/to/dino_video/teacher_step_10000.pth
|
| 111 |
+
config_path: /path/to/dino_video/config.yaml
|
| 112 |
+
attention_mode: flex_block_causal
|
| 113 |
+
input_size: 256
|
| 114 |
+
block_suffix_to_future_video: false
|
| 115 |
+
share_future_depth_query: true
|
| 116 |
+
use_shared_future_task_proj: true
|
| 117 |
+
use_current_shared_task_proj: true
|
| 118 |
+
num_future_frames: 1
|
| 119 |
+
# Keeps DINO teacher input as [warmup current, current, future].
|
| 120 |
+
# Current-DINO target uses current_index=1 in code.
|
| 121 |
+
use_warmup_frame: true
|
| 122 |
+
effective_fps: 1.0
|
| 123 |
+
n_blocks: 1
|
| 124 |
+
cls_pool: last
|
| 125 |
+
detach_image_feats: true
|
| 126 |
+
num_layers: 1
|
| 127 |
+
num_heads: 4
|
| 128 |
+
dim_head: 32
|
| 129 |
+
ff_mult: 1
|
| 130 |
+
num_backbone_tokens: 256
|
| 131 |
+
dim_out: 1024
|
| 132 |
+
future_video_loss_weight: 0.004
|
| 133 |
+
use_smooth_l1_loss: false
|
| 134 |
+
use_mse_loss: true
|
| 135 |
+
mse_loss_weight: 1.0
|
| 136 |
+
# Enables current-DINO patch alignment and current depth/DINO shared query projection.
|
| 137 |
+
use_patch_loss: true
|
| 138 |
+
use_current_patch_loss: true
|
| 139 |
+
use_cosine_loss: true
|
| 140 |
+
cosine_loss_weight: 0.2
|
| 141 |
+
use_cls_loss: false
|
| 142 |
+
cls_loss_type: mse
|
| 143 |
+
cls_loss_weight: 0.2
|
| 144 |
+
log_max_samples: 32
|
| 145 |
+
log_scale: 16
|
| 146 |
+
visual_steps: 5000
|
third_party/lingbot-vla-v2/configs/vla/robotwin/robotwin.yaml
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
model_path: /path/to/pretain_ckpt/hf_ckpt
|
| 3 |
+
tokenizer_path: /path/to/Qwen3-VL-4B-Instruct
|
| 4 |
+
post_training: true
|
| 5 |
+
adanorm_time: true
|
| 6 |
+
config_key: LingbotVLAV2Config
|
| 7 |
+
moe_implementation: fused
|
| 8 |
+
|
| 9 |
+
data:
|
| 10 |
+
datasets_type: vla
|
| 11 |
+
data_name: multi
|
| 12 |
+
train_path: assets/training_data/robotwin.txt
|
| 13 |
+
robot_config_root: ./configs/robot_configs
|
| 14 |
+
joints:
|
| 15 |
+
- arm.position: 14
|
| 16 |
+
- end.position: 14
|
| 17 |
+
- effector.position: 2
|
| 18 |
+
cameras:
|
| 19 |
+
- camera_top
|
| 20 |
+
- camera_wrist_left
|
| 21 |
+
- camera_wrist_right
|
| 22 |
+
norm_type:
|
| 23 |
+
- arm.position: bounds_99_woclip
|
| 24 |
+
- end.position: bounds_99_woclip
|
| 25 |
+
- effector.position: bounds_99_woclip
|
| 26 |
+
num_workers: 8
|
| 27 |
+
use_future_image: true
|
| 28 |
+
|
| 29 |
+
train:
|
| 30 |
+
output_dir: /path/to/save_ckpt
|
| 31 |
+
moe_monitor_interval: 1000
|
| 32 |
+
enable_gradient_checkpointing: false # Set to true if GPU memory is insufficient, but this will slow down training.
|
| 33 |
+
precompute_grid_thw: true
|
| 34 |
+
vlm_causal: true
|
| 35 |
+
vlm_fsdp: true
|
| 36 |
+
attention_implementation: flex_cached
|
| 37 |
+
use_moe: true
|
| 38 |
+
token_moe_layers: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]
|
| 39 |
+
token_num_experts: 32
|
| 40 |
+
token_top_k: 4
|
| 41 |
+
token_moe_intermediate_size: 512
|
| 42 |
+
token_shared_intermediate_size: 704
|
| 43 |
+
bias_update_speed: 0
|
| 44 |
+
sequence_wise_mode: "per_sequence"
|
| 45 |
+
sequence_wise_loss_coeff: 1e-3
|
| 46 |
+
router_z_loss_coeff: 1e-4
|
| 47 |
+
router_activation: "sigmoid"
|
| 48 |
+
routed_scaling_factor: 4.0
|
| 49 |
+
use_shared_expert_gate: false
|
| 50 |
+
use_moe_expert_lr: true
|
| 51 |
+
loss_type: L1_fm
|
| 52 |
+
data_parallel_mode: fsdp2
|
| 53 |
+
enable_full_shard: false
|
| 54 |
+
module_fsdp_enable: true
|
| 55 |
+
use_compile: true
|
| 56 |
+
use_wandb: false
|
| 57 |
+
rmpad: false
|
| 58 |
+
rmpad_with_pos_ids: false
|
| 59 |
+
ulysses_parallel_size: 1
|
| 60 |
+
freeze_vision_encoder: false
|
| 61 |
+
tokenizer_max_length: 72
|
| 62 |
+
action_dim: 55
|
| 63 |
+
max_action_dim: 55
|
| 64 |
+
max_state_dim: 55
|
| 65 |
+
lr: 1.0e-4
|
| 66 |
+
lr_min: 5.0e-5
|
| 67 |
+
lr_decay_style: cosine
|
| 68 |
+
optimizer: muon
|
| 69 |
+
num_train_epochs: 29000
|
| 70 |
+
micro_batch_size: 32
|
| 71 |
+
global_batch_size: 1024 # Training uses 32 GPUs: global_batch_size = micro_batch_size * 32
|
| 72 |
+
max_steps: 50000
|
| 73 |
+
ckpt_manager: dcp
|
| 74 |
+
save_steps: 10000
|
| 75 |
+
save_epochs: 29000
|
| 76 |
+
enable_fp32: true
|
| 77 |
+
enable_resume: true
|
| 78 |
+
align_params:
|
| 79 |
+
mode: 'query'
|
| 80 |
+
num_task_tokens: 8
|
| 81 |
+
depth_loss_weight: 0.004
|
| 82 |
+
future_depth_loss_weight: 0.004
|
| 83 |
+
use_future_video: true
|
| 84 |
+
llm:
|
| 85 |
+
dim_out: 2560
|
| 86 |
+
image_token_size: 8
|
| 87 |
+
image_input_size: 224
|
| 88 |
+
depth:
|
| 89 |
+
model_type: MoRGBD
|
| 90 |
+
moge_path: /path/to/depth/moge2-vitb-normal.pt
|
| 91 |
+
morgbd_path: /path/to/depth/model.pt
|
| 92 |
+
num_layers: 1
|
| 93 |
+
num_heads: 4
|
| 94 |
+
dim_head: 32
|
| 95 |
+
ff_mult: 1
|
| 96 |
+
num_backbone_tokens: 256
|
| 97 |
+
token_size: 16
|
| 98 |
+
dim_out: 1024
|
| 99 |
+
input_size: 224
|
| 100 |
+
use_future_depth: true
|
| 101 |
+
block_future_depth_to_action: false
|
| 102 |
+
detach_future_image_feats: true
|
| 103 |
+
video:
|
| 104 |
+
ckpt_path: /path/to/dino_video/teacher_step_10000.pth
|
| 105 |
+
config_path: /path/to/dino_video/config.yaml
|
| 106 |
+
attention_mode: flex_block_causal
|
| 107 |
+
input_size: 256
|
| 108 |
+
block_suffix_to_future_video: false
|
| 109 |
+
share_future_depth_query: true
|
| 110 |
+
use_shared_future_task_proj: true
|
| 111 |
+
use_current_shared_task_proj: true
|
| 112 |
+
num_future_frames: 1
|
| 113 |
+
# Keeps DINO teacher input as [warmup current, current, future].
|
| 114 |
+
# Current-DINO target uses current_index=1 in code.
|
| 115 |
+
use_warmup_frame: true
|
| 116 |
+
effective_fps: 1.0
|
| 117 |
+
n_blocks: 1
|
| 118 |
+
cls_pool: last
|
| 119 |
+
detach_image_feats: true
|
| 120 |
+
num_layers: 1
|
| 121 |
+
num_heads: 4
|
| 122 |
+
dim_head: 32
|
| 123 |
+
ff_mult: 1
|
| 124 |
+
num_backbone_tokens: 256
|
| 125 |
+
dim_out: 1024
|
| 126 |
+
future_video_loss_weight: 0.004
|
| 127 |
+
use_smooth_l1_loss: false
|
| 128 |
+
use_mse_loss: true
|
| 129 |
+
mse_loss_weight: 1.0
|
| 130 |
+
# Enables current-DINO patch alignment and current depth/DINO shared query projection.
|
| 131 |
+
use_patch_loss: true
|
| 132 |
+
use_current_patch_loss: true
|
| 133 |
+
use_cosine_loss: true
|
| 134 |
+
cosine_loss_weight: 0.2
|
| 135 |
+
use_cls_loss: false
|
| 136 |
+
cls_loss_type: mse
|
| 137 |
+
cls_loss_weight: 0.2
|
| 138 |
+
log_max_samples: 32
|
| 139 |
+
log_scale: 16
|
| 140 |
+
visual_steps: 5000
|
third_party/lingbot-vla-v2/deploy/__init__.py
ADDED
|
File without changes
|
third_party/lingbot-vla-v2/deploy/executed_action_history.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Episode-local raw command history for P4-V's explicit inference input.
|
| 2 |
+
|
| 3 |
+
Call ``record_completed`` only after the environment finishes the submitted
|
| 4 |
+
command's execution interval. Never pass an entire predicted chunk before it
|
| 5 |
+
executes. Commands are at the demonstration's 50 Hz control-row timebase,
|
| 6 |
+
not physics substeps, and are re-normalized using training offset-zero stats.
|
| 7 |
+
"""
|
| 8 |
+
from collections import deque
|
| 9 |
+
import numpy as np
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class ExecutedActionHistory:
|
| 13 |
+
def __init__(self, length=8, action_dim=14, action_key="action"):
|
| 14 |
+
if length != 8 or action_dim != 14 or action_key != "action":
|
| 15 |
+
raise ValueError("This protocol is fixed to RoboTwin K=8, raw action14")
|
| 16 |
+
self.length, self.action_dim, self.action_key = length, action_dim, action_key
|
| 17 |
+
self._rows = deque(maxlen=length)
|
| 18 |
+
self.episode_id = None
|
| 19 |
+
self.completed_steps = 0
|
| 20 |
+
|
| 21 |
+
def reset(self, episode_id):
|
| 22 |
+
if episode_id is None:
|
| 23 |
+
raise ValueError("An explicit episode identity is required")
|
| 24 |
+
self._rows.clear()
|
| 25 |
+
self.episode_id = episode_id
|
| 26 |
+
self.completed_steps = 0
|
| 27 |
+
|
| 28 |
+
def record_completed(self, commands, *, episode_id, start_step):
|
| 29 |
+
if self.episode_id is None or episode_id != self.episode_id:
|
| 30 |
+
raise ValueError("Reset history before recording a different episode")
|
| 31 |
+
if isinstance(start_step, bool) or not isinstance(start_step, int) or start_step != self.completed_steps:
|
| 32 |
+
raise ValueError("Completed control rows must be contiguous, without duplicates or gaps")
|
| 33 |
+
values = np.asarray(commands, dtype=np.float32)
|
| 34 |
+
if values.ndim != 2 or values.shape[1] != self.action_dim:
|
| 35 |
+
raise ValueError("Expected [completed_control_rows, 14] raw command array")
|
| 36 |
+
if not np.isfinite(values).all():
|
| 37 |
+
raise ValueError("Completed commands must be finite")
|
| 38 |
+
# Copy: caller may reuse/mutate the prediction buffer after execution.
|
| 39 |
+
for value in values:
|
| 40 |
+
self._rows.append(value.copy())
|
| 41 |
+
self.completed_steps += len(values)
|
| 42 |
+
|
| 43 |
+
def observation_fields(self):
|
| 44 |
+
if self.episode_id is None:
|
| 45 |
+
raise ValueError("Reset history before creating an observation")
|
| 46 |
+
raw = np.zeros((self.length, self.action_dim), dtype=np.float32)
|
| 47 |
+
mask = np.zeros(self.length, dtype=bool)
|
| 48 |
+
if self._rows:
|
| 49 |
+
raw[-len(self._rows):] = np.stack(self._rows)
|
| 50 |
+
mask[-len(self._rows):] = True
|
| 51 |
+
return {"action_history_raw": {self.action_key: raw}, "action_history_mask": mask}
|
third_party/lingbot-vla-v2/deploy/image_tools.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
from PIL import Image
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def convert_to_uint8(img: np.ndarray) -> np.ndarray:
|
| 6 |
+
"""Converts an image to uint8 if it is a float image.
|
| 7 |
+
|
| 8 |
+
This is important for reducing the size of the image when sending it over the network.
|
| 9 |
+
"""
|
| 10 |
+
if np.issubdtype(img.dtype, np.floating):
|
| 11 |
+
img = (255 * img).astype(np.uint8)
|
| 12 |
+
return img
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def resize_with_pad(images: np.ndarray, height: int, width: int, method=Image.BILINEAR) -> np.ndarray:
|
| 16 |
+
"""Replicates tf.image.resize_with_pad for multiple images using PIL. Resizes a batch of images to a target height.
|
| 17 |
+
|
| 18 |
+
Args:
|
| 19 |
+
images: A batch of images in [..., height, width, channel] format.
|
| 20 |
+
height: The target height of the image.
|
| 21 |
+
width: The target width of the image.
|
| 22 |
+
method: The interpolation method to use. Default is bilinear.
|
| 23 |
+
|
| 24 |
+
Returns:
|
| 25 |
+
The resized images in [..., height, width, channel].
|
| 26 |
+
"""
|
| 27 |
+
# If the images are already the correct size, return them as is.
|
| 28 |
+
if images.shape[-3:-1] == (height, width):
|
| 29 |
+
return images
|
| 30 |
+
|
| 31 |
+
original_shape = images.shape
|
| 32 |
+
|
| 33 |
+
images = images.reshape(-1, *original_shape[-3:])
|
| 34 |
+
resized = np.stack([_resize_with_pad_pil(Image.fromarray(im), height, width, method=method) for im in images])
|
| 35 |
+
return resized.reshape(*original_shape[:-3], *resized.shape[-3:])
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def _resize_with_pad_pil(image: Image.Image, height: int, width: int, method: int) -> Image.Image:
|
| 39 |
+
"""Replicates tf.image.resize_with_pad for one image using PIL. Resizes an image to a target height and
|
| 40 |
+
width without distortion by padding with zeros.
|
| 41 |
+
|
| 42 |
+
Unlike the jax version, note that PIL uses [width, height, channel] ordering instead of [batch, h, w, c].
|
| 43 |
+
"""
|
| 44 |
+
cur_width, cur_height = image.size
|
| 45 |
+
if cur_width == width and cur_height == height:
|
| 46 |
+
return image # No need to resize if the image is already the correct size.
|
| 47 |
+
|
| 48 |
+
ratio = max(cur_width / width, cur_height / height)
|
| 49 |
+
resized_height = int(cur_height / ratio)
|
| 50 |
+
resized_width = int(cur_width / ratio)
|
| 51 |
+
resized_image = image.resize((resized_width, resized_height), resample=method)
|
| 52 |
+
|
| 53 |
+
zero_image = Image.new(resized_image.mode, (width, height), 0)
|
| 54 |
+
pad_height = max(0, int((height - resized_height) / 2))
|
| 55 |
+
pad_width = max(0, int((width - resized_width) / 2))
|
| 56 |
+
zero_image.paste(resized_image, (pad_width, pad_height))
|
| 57 |
+
assert zero_image.size == (width, height)
|
| 58 |
+
return zero_image
|
third_party/lingbot-vla-v2/deploy/lingbot_vla_v2_policy.py
ADDED
|
@@ -0,0 +1,700 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 3 |
+
import time
|
| 4 |
+
import yaml
|
| 5 |
+
from types import SimpleNamespace
|
| 6 |
+
|
| 7 |
+
from glob import glob
|
| 8 |
+
from tqdm import tqdm
|
| 9 |
+
from safetensors import safe_open
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
| 13 |
+
if str(PROJECT_ROOT) not in sys.path:
|
| 14 |
+
sys.path.insert(0, str(PROJECT_ROOT))
|
| 15 |
+
|
| 16 |
+
from transformers.models.auto.tokenization_auto import AutoTokenizer
|
| 17 |
+
from transformers import (
|
| 18 |
+
AutoConfig,
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
from typing import Dict, List, Optional, Type, Union, Tuple
|
| 22 |
+
import numpy as np
|
| 23 |
+
from torch import Tensor
|
| 24 |
+
from safetensors.torch import load_file
|
| 25 |
+
import torch
|
| 26 |
+
from torchvision.transforms.v2 import Resize
|
| 27 |
+
import torch.nn.functional as F
|
| 28 |
+
from lingbotvla.models.vla.lingbot_vla.configuration_lingbot_vla import LingbotVLAV2Config
|
| 29 |
+
from lingbotvla.models.vla.lingbot_vla.modeling_lingbot_vla_v2 import LingbotVlaV2Policy
|
| 30 |
+
from lingbotvla.models.vla.lingbot_vla.qwen3vl_in_vla import apply_lingbot_qwen3_vl_patch
|
| 31 |
+
|
| 32 |
+
from lingbotvla.data.vla_data.utils import FeatureTransform
|
| 33 |
+
from lingbotvla.models import build_processor
|
| 34 |
+
import time
|
| 35 |
+
import random
|
| 36 |
+
|
| 37 |
+
def set_seed_everywhere(seed: int):
|
| 38 |
+
"""Sets the random seed for Python, NumPy, and PyTorch functions."""
|
| 39 |
+
torch.manual_seed(seed)
|
| 40 |
+
torch.cuda.manual_seed_all(seed)
|
| 41 |
+
np.random.seed(seed)
|
| 42 |
+
random.seed(seed)
|
| 43 |
+
torch.backends.cudnn.deterministic = True
|
| 44 |
+
torch.backends.cudnn.benchmark = False
|
| 45 |
+
os.environ["PYTHONHASHSEED"] = str(seed)
|
| 46 |
+
|
| 47 |
+
set_seed_everywhere(42)
|
| 48 |
+
|
| 49 |
+
BASE_MODEL_PATH = {
|
| 50 |
+
'qwen3vl': os.environ.get(
|
| 51 |
+
'QWEN3VL_PATH',
|
| 52 |
+
'Qwen/Qwen3-VL-4B-Instruct/',
|
| 53 |
+
),
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
class PolicyPreprocessMixin:
|
| 57 |
+
@staticmethod
|
| 58 |
+
def _to_device_image_grid_thw(image_grid_thw, device):
|
| 59 |
+
if image_grid_thw is None:
|
| 60 |
+
return None
|
| 61 |
+
return image_grid_thw.to(device=device, dtype=torch.long)
|
| 62 |
+
|
| 63 |
+
def _history_kwargs(self, observation, device, dtype):
|
| 64 |
+
action_mode = getattr(self.config, "action_history_mode", "none")
|
| 65 |
+
state_mode = getattr(self.config, "state_history_mode", "none")
|
| 66 |
+
if state_mode == "tokens" and action_mode not in ("none", "summary"):
|
| 67 |
+
raise ValueError("Only E5 action summary can combine with state history")
|
| 68 |
+
result = {}
|
| 69 |
+
for prefix, enabled in (("action_history", action_mode in ("summary", "tokens")),
|
| 70 |
+
("state_history", state_mode == "tokens")):
|
| 71 |
+
if not enabled:
|
| 72 |
+
if prefix in observation or prefix + "_mask" in observation:
|
| 73 |
+
raise ValueError(f"{prefix} supplied to a disabled branch")
|
| 74 |
+
continue
|
| 75 |
+
history = observation.get(prefix)
|
| 76 |
+
mask = observation.get(prefix + "_mask")
|
| 77 |
+
if history is None or mask is None:
|
| 78 |
+
raise ValueError(f"History model requires explicit {prefix} and validity mask")
|
| 79 |
+
if mask.dtype != torch.bool:
|
| 80 |
+
raise ValueError(f"{prefix}_mask must be boolean")
|
| 81 |
+
if history.ndim == 2:
|
| 82 |
+
history = history.unsqueeze(0)
|
| 83 |
+
if mask.ndim == 1:
|
| 84 |
+
mask = mask.unsqueeze(0)
|
| 85 |
+
result.update({prefix: history.to(device=device, dtype=dtype),
|
| 86 |
+
prefix + "_mask": mask.to(device=device)})
|
| 87 |
+
if getattr(self.config, "visual_history_mode", "none") == "pooled_tokens":
|
| 88 |
+
pixels = observation.get("visual_history_images")
|
| 89 |
+
grid = observation.get("visual_history_grid_thw")
|
| 90 |
+
valid = observation.get("visual_history_mask")
|
| 91 |
+
if pixels is None or grid is None or valid is None:
|
| 92 |
+
raise ValueError("E4 inference requires explicit processed visual history")
|
| 93 |
+
if valid.dtype != torch.bool:
|
| 94 |
+
raise ValueError("visual_history_mask must be boolean")
|
| 95 |
+
if pixels.ndim == 4:
|
| 96 |
+
pixels = pixels.unsqueeze(0)
|
| 97 |
+
grid = grid.unsqueeze(0)
|
| 98 |
+
if valid.ndim == 1:
|
| 99 |
+
valid = valid.unsqueeze(0)
|
| 100 |
+
if not torch.equal(valid.to(device=device), result["state_history_mask"]):
|
| 101 |
+
raise ValueError("Visual and state history masks must match")
|
| 102 |
+
result.update(visual_history_images=pixels.to(device=device, dtype=dtype),
|
| 103 |
+
visual_history_grid_thw=grid.to(device=device, dtype=torch.long),
|
| 104 |
+
visual_history_mask=valid.to(device=device))
|
| 105 |
+
return result
|
| 106 |
+
|
| 107 |
+
@torch.no_grad
|
| 108 |
+
def select_action(
|
| 109 |
+
self, observation: dict[str, Tensor], use_bf16: bool = False
|
| 110 |
+
):
|
| 111 |
+
self.eval()
|
| 112 |
+
device = 'cuda'
|
| 113 |
+
if use_bf16:
|
| 114 |
+
dtype = torch.bfloat16
|
| 115 |
+
else:
|
| 116 |
+
dtype = torch.float32
|
| 117 |
+
s1 = time.time()
|
| 118 |
+
|
| 119 |
+
if len(observation['images'].shape) == 4:
|
| 120 |
+
observation['images'] = observation['images'].unsqueeze(0)
|
| 121 |
+
observation['img_masks'] = observation['img_masks'].unsqueeze(0)
|
| 122 |
+
|
| 123 |
+
actions = self.model.sample_actions(
|
| 124 |
+
observation['images'].to(dtype=dtype, device=device),
|
| 125 |
+
observation['img_masks'].to(device=device),
|
| 126 |
+
observation['lang_tokens'].unsqueeze(0).to(device=device),
|
| 127 |
+
observation['lang_masks'].unsqueeze(0).to(device=device),
|
| 128 |
+
observation['state'].unsqueeze(0).to(dtype=dtype, device=device),
|
| 129 |
+
image_grid_thw=self._to_device_image_grid_thw(observation.get('image_grid_thw'), device),
|
| 130 |
+
**self._history_kwargs(observation, device, dtype),
|
| 131 |
+
)
|
| 132 |
+
delta_time = time.time() - s1
|
| 133 |
+
print(f'sample_actions cost {delta_time} s')
|
| 134 |
+
observation['actions'] = actions.squeeze(0).to(dtype=torch.float32, device='cpu')
|
| 135 |
+
if use_bf16:
|
| 136 |
+
observation['state'] = observation['state'].to(dtype=torch.float32)
|
| 137 |
+
data = self.feature_transform.unapply(observation)
|
| 138 |
+
return data
|
| 139 |
+
|
| 140 |
+
@torch.no_grad
|
| 141 |
+
def sample_actions_batch(
|
| 142 |
+
self,
|
| 143 |
+
observation: dict[str, Tensor],
|
| 144 |
+
use_bf16: bool = False,
|
| 145 |
+
use_compile: bool = False,
|
| 146 |
+
capture_time: bool = False,
|
| 147 |
+
sample_compile_fn: callable = None,
|
| 148 |
+
) -> Tensor:
|
| 149 |
+
"""Run one model forward for a batch of already-transformed observations.
|
| 150 |
+
|
| 151 |
+
Single-sample inference in ``select_action`` builds a leading batch
|
| 152 |
+
dimension just before calling ``sample_actions``. For Robocasa vector
|
| 153 |
+
envs we already collate that dimension in the websocket server, so this
|
| 154 |
+
method keeps the tensors batched and returns normalized action chunks
|
| 155 |
+
with shape ``(B, chunk, joint_max_dim)``.
|
| 156 |
+
"""
|
| 157 |
+
self.eval()
|
| 158 |
+
device = "cuda"
|
| 159 |
+
dtype = torch.bfloat16 if use_bf16 else torch.float32
|
| 160 |
+
s1 = time.time()
|
| 161 |
+
|
| 162 |
+
images = observation["images"]
|
| 163 |
+
img_masks = observation["img_masks"]
|
| 164 |
+
lang_tokens = observation["lang_tokens"]
|
| 165 |
+
lang_masks = observation["lang_masks"]
|
| 166 |
+
state = observation["state"]
|
| 167 |
+
image_grid_thw = observation.get("image_grid_thw", None)
|
| 168 |
+
|
| 169 |
+
has_batch_dim = img_masks.ndim >= 2
|
| 170 |
+
if not has_batch_dim:
|
| 171 |
+
images = images.unsqueeze(0)
|
| 172 |
+
img_masks = img_masks.unsqueeze(0)
|
| 173 |
+
if lang_tokens.ndim == 1:
|
| 174 |
+
lang_tokens = lang_tokens.unsqueeze(0)
|
| 175 |
+
lang_masks = lang_masks.unsqueeze(0)
|
| 176 |
+
if state.ndim == 1:
|
| 177 |
+
state = state.unsqueeze(0)
|
| 178 |
+
|
| 179 |
+
if capture_time:
|
| 180 |
+
with torch.inference_mode():
|
| 181 |
+
for _ in range(3):
|
| 182 |
+
_ = sample_compile_fn(
|
| 183 |
+
images.to(dtype=dtype, device=device),
|
| 184 |
+
img_masks.to(device=device),
|
| 185 |
+
lang_tokens.to(device=device),
|
| 186 |
+
lang_masks.to(device=device),
|
| 187 |
+
state.to(dtype=dtype, device=device),
|
| 188 |
+
image_grid_thw=self._to_device_image_grid_thw(image_grid_thw, device),
|
| 189 |
+
**self._history_kwargs(observation, device, dtype),
|
| 190 |
+
)
|
| 191 |
+
torch.cuda.synchronize()
|
| 192 |
+
|
| 193 |
+
iters = 5
|
| 194 |
+
starts = [torch.cuda.Event(enable_timing=True) for _ in range(iters)]
|
| 195 |
+
ends = [torch.cuda.Event(enable_timing=True) for _ in range(iters)]
|
| 196 |
+
for i in range(iters):
|
| 197 |
+
starts[i].record()
|
| 198 |
+
actions = sample_compile_fn(
|
| 199 |
+
images.to(dtype=dtype, device=device),
|
| 200 |
+
img_masks.to(device=device),
|
| 201 |
+
lang_tokens.to(device=device),
|
| 202 |
+
lang_masks.to(device=device),
|
| 203 |
+
state.to(dtype=dtype, device=device),
|
| 204 |
+
image_grid_thw=self._to_device_image_grid_thw(image_grid_thw, device),
|
| 205 |
+
**self._history_kwargs(observation, device, dtype),
|
| 206 |
+
)
|
| 207 |
+
ends[i].record()
|
| 208 |
+
torch.cuda.synchronize()
|
| 209 |
+
gpu_times = [starts[i].elapsed_time(ends[i]) for i in range(iters)]
|
| 210 |
+
print(f"sample_actions avg time: {sum(gpu_times)/len(gpu_times):.4f} ms, min time: {min(gpu_times):.4f} ms, max time: {max(gpu_times):.4f} ms")
|
| 211 |
+
else:
|
| 212 |
+
actions = sample_compile_fn(
|
| 213 |
+
images.to(dtype=dtype, device=device),
|
| 214 |
+
img_masks.to(device=device),
|
| 215 |
+
lang_tokens.to(device=device),
|
| 216 |
+
lang_masks.to(device=device),
|
| 217 |
+
state.to(dtype=dtype, device=device),
|
| 218 |
+
image_grid_thw=self._to_device_image_grid_thw(image_grid_thw, device),
|
| 219 |
+
**self._history_kwargs(observation, device, dtype),
|
| 220 |
+
)
|
| 221 |
+
|
| 222 |
+
delta_time = time.time() - s1
|
| 223 |
+
print(f"sample_actions batch={actions.shape[0]} cost {delta_time} s")
|
| 224 |
+
if use_bf16:
|
| 225 |
+
observation["state"] = observation["state"].to(dtype=torch.float32)
|
| 226 |
+
return actions.to(dtype=torch.float32, device="cpu")
|
| 227 |
+
|
| 228 |
+
class LingBotVlaV2InferencePolicy(PolicyPreprocessMixin, LingbotVlaV2Policy):
|
| 229 |
+
pass # Only combine necessary functions
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
class LingbotVLAv2Server:
|
| 233 |
+
'''
|
| 234 |
+
policy wrapper to support action ensemble or chunk execution
|
| 235 |
+
'''
|
| 236 |
+
def __init__(
|
| 237 |
+
self,
|
| 238 |
+
path_to_pi_model="",
|
| 239 |
+
robot_norm_path=None,
|
| 240 |
+
adaptive_ensemble_alpha=0.1,
|
| 241 |
+
action_ensemble_horizon=8,
|
| 242 |
+
use_length=1,
|
| 243 |
+
chunk_ret=False,
|
| 244 |
+
use_bf16=True,
|
| 245 |
+
use_fp32=False,
|
| 246 |
+
use_compile=False,
|
| 247 |
+
) -> None:
|
| 248 |
+
assert not (use_bf16 and use_fp32), 'Bfloat16 or Float32!!!'
|
| 249 |
+
self.adaptive_ensemble_alpha = adaptive_ensemble_alpha
|
| 250 |
+
self.action_ensemble_horizon = action_ensemble_horizon
|
| 251 |
+
self.use_length = use_length
|
| 252 |
+
self.chunk_ret = chunk_ret
|
| 253 |
+
self.robot_norm_path = robot_norm_path
|
| 254 |
+
|
| 255 |
+
self.task_description = None
|
| 256 |
+
|
| 257 |
+
self.use_compile = use_compile
|
| 258 |
+
apply_lingbot_qwen3_vl_patch()
|
| 259 |
+
|
| 260 |
+
self.vla = self.load_vla(path_to_pi_model)
|
| 261 |
+
if use_bf16:
|
| 262 |
+
self.vla = self.vla.to(torch.bfloat16).cuda().eval()
|
| 263 |
+
else:
|
| 264 |
+
# fp32
|
| 265 |
+
self.vla.model.float()
|
| 266 |
+
self.vla = self.vla.cuda().eval()
|
| 267 |
+
|
| 268 |
+
self.global_step = 0
|
| 269 |
+
self.last_action_chunk = None
|
| 270 |
+
self.last_normalized_action_chunk = None
|
| 271 |
+
self.use_bf16 = use_bf16
|
| 272 |
+
self.use_fp32 = use_fp32
|
| 273 |
+
self.action_key: str= "action"
|
| 274 |
+
|
| 275 |
+
def load_model_weights(self, path_to_pi_model, strict=True):
|
| 276 |
+
all_safetensors = glob(os.path.join(path_to_pi_model, "*.safetensors"))
|
| 277 |
+
merged_weights = {}
|
| 278 |
+
|
| 279 |
+
for file_path in tqdm(all_safetensors):
|
| 280 |
+
with safe_open(file_path, framework="pt", device="cpu") as f:
|
| 281 |
+
for key in f.keys():
|
| 282 |
+
merged_weights[key] = f.get_tensor(key)
|
| 283 |
+
self.vla.load_state_dict(merged_weights, strict=strict)
|
| 284 |
+
|
| 285 |
+
def merge_qwen_config(self, qwen_config):
|
| 286 |
+
if hasattr(qwen_config, 'to_dict'):
|
| 287 |
+
config_dict = qwen_config.to_dict()
|
| 288 |
+
else:
|
| 289 |
+
config_dict = qwen_config
|
| 290 |
+
|
| 291 |
+
text_keys = {
|
| 292 |
+
"hidden_size",
|
| 293 |
+
"intermediate_size",
|
| 294 |
+
"num_hidden_layers",
|
| 295 |
+
"num_attention_heads",
|
| 296 |
+
"num_key_value_heads",
|
| 297 |
+
"rms_norm_eps",
|
| 298 |
+
"rope_theta",
|
| 299 |
+
"vocab_size",
|
| 300 |
+
"max_position_embeddings",
|
| 301 |
+
"hidden_act",
|
| 302 |
+
"tie_word_embeddings",
|
| 303 |
+
"tokenizer_path",
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
text_config = config_dict.get("text_config", {})
|
| 307 |
+
for key in text_keys:
|
| 308 |
+
if key in text_config:
|
| 309 |
+
setattr(self.config, key, text_config[key])
|
| 310 |
+
print(f"✅ Merged Qwen3-VL text: {key} = {text_config[key]}")
|
| 311 |
+
elif key in config_dict:
|
| 312 |
+
setattr(self.config, key, config_dict[key])
|
| 313 |
+
print(f"✅ Merged LLM: {key} = {config_dict[key]}")
|
| 314 |
+
|
| 315 |
+
if "vision_config" in config_dict:
|
| 316 |
+
self.config.vision_config = qwen_config.vision_config
|
| 317 |
+
else:
|
| 318 |
+
print("⚠️ Warning: 'vision_config' not found in qwen_config!")
|
| 319 |
+
|
| 320 |
+
def load_vla(self, path_to_pi_model) -> LingbotVlaV2Policy:
|
| 321 |
+
print(f"loading model from: {path_to_pi_model}")
|
| 322 |
+
|
| 323 |
+
# load training config
|
| 324 |
+
training_config_path = Path(path_to_pi_model)/'training_config.yaml'
|
| 325 |
+
with open(training_config_path, 'r') as f:
|
| 326 |
+
training_config = yaml.safe_load(f)
|
| 327 |
+
f.close()
|
| 328 |
+
|
| 329 |
+
# update model config according to training config
|
| 330 |
+
training_model_config = training_config['model']
|
| 331 |
+
training_model_config.update(training_config['train'])
|
| 332 |
+
config = LingbotVLAV2Config(**training_model_config)
|
| 333 |
+
for key, value in training_model_config.items():
|
| 334 |
+
if not hasattr(config, key):
|
| 335 |
+
setattr(config, key, value)
|
| 336 |
+
|
| 337 |
+
# Set attention_implementation to 'eager' to speed up evaluation.
|
| 338 |
+
config.attention_implementation = 'eager'
|
| 339 |
+
|
| 340 |
+
# set base model according to training config
|
| 341 |
+
training_base_model = training_config['model']['tokenizer_path']
|
| 342 |
+
if 'qwen3' in training_base_model.lower() and 'vl' in training_base_model.lower():
|
| 343 |
+
model_name = 'qwen3vl'
|
| 344 |
+
else:
|
| 345 |
+
raise ValueError(f"Unsupported base model of {path_to_pi_model}")
|
| 346 |
+
base_model_path = os.environ.get('QWEN3VL_PATH', training_base_model) or BASE_MODEL_PATH[model_name]
|
| 347 |
+
config.tokenizer_path = base_model_path
|
| 348 |
+
self.model_name = model_name
|
| 349 |
+
|
| 350 |
+
self.config = config
|
| 351 |
+
qwen_config = AutoConfig.from_pretrained(base_model_path)
|
| 352 |
+
self.merge_qwen_config(qwen_config)
|
| 353 |
+
config = self.config
|
| 354 |
+
|
| 355 |
+
if 'vocab_size' in training_config['model'] and training_config['model']['vocab_size'] != 0:
|
| 356 |
+
config.vocab_size = training_config['model']['vocab_size']
|
| 357 |
+
# config.num_steps = 4
|
| 358 |
+
config.use_cache = True # is necessary in inference
|
| 359 |
+
# load processors
|
| 360 |
+
self.processor = build_processor(base_model_path)
|
| 361 |
+
self.language_tokenizer = self.processor.tokenizer
|
| 362 |
+
data_config = SimpleNamespace(**training_config['data'])
|
| 363 |
+
|
| 364 |
+
print('Initializing model ... ')
|
| 365 |
+
|
| 366 |
+
self.vla = LingBotVlaV2InferencePolicy(config, eval=True)
|
| 367 |
+
|
| 368 |
+
self.load_model_weights(path_to_pi_model, strict=True)
|
| 369 |
+
|
| 370 |
+
self.vla.feature_transform = None
|
| 371 |
+
self.data_config = data_config
|
| 372 |
+
self.config = config
|
| 373 |
+
self.vla.model._use_compile_predict_velocity = bool(self.use_compile)
|
| 374 |
+
self.vla.model._compiled_predict_velocity = None
|
| 375 |
+
self.sample_actions_fn = self.vla.model.sample_actions
|
| 376 |
+
if self.use_compile:
|
| 377 |
+
self.vla.model.qwenvl_with_expert = torch.compile(self.vla.model.qwenvl_with_expert)
|
| 378 |
+
self.sample_actions_fn = torch.compile(self.vla.model.sample_actions)
|
| 379 |
+
|
| 380 |
+
if self.robot_norm_path is None:
|
| 381 |
+
self.robot_norm_path = data_config.norm_stats_file
|
| 382 |
+
|
| 383 |
+
print('Model initialized ... ')
|
| 384 |
+
|
| 385 |
+
return self.vla
|
| 386 |
+
|
| 387 |
+
def reset(self, robo_name, path_to_pi_model = None) -> None:
|
| 388 |
+
if path_to_pi_model is not None:
|
| 389 |
+
self.vla = self.load_vla(path_to_pi_model)
|
| 390 |
+
if self.use_bf16:
|
| 391 |
+
self.vla = self.vla.to(torch.bfloat16).cuda().eval()
|
| 392 |
+
else:
|
| 393 |
+
#fp32
|
| 394 |
+
self.vla.model.float()
|
| 395 |
+
self.vla = self.vla.cuda().eval()
|
| 396 |
+
|
| 397 |
+
self.global_step = 0
|
| 398 |
+
self.last_action_chunk = None
|
| 399 |
+
self.last_normalized_action_chunk = None
|
| 400 |
+
|
| 401 |
+
robot_config = f'configs/robot_configs/{robo_name}.yaml'
|
| 402 |
+
|
| 403 |
+
with open(robot_config, 'r') as f:
|
| 404 |
+
self.robot_config = yaml.safe_load(f)
|
| 405 |
+
|
| 406 |
+
feature_transform = FeatureTransform(robot_config, self.data_config, self.config, self.processor,\
|
| 407 |
+
chunk_size=self.config.chunk_size, norm_stats_path=self.robot_norm_path)
|
| 408 |
+
# Load data processors
|
| 409 |
+
self.vla.feature_transform = feature_transform
|
| 410 |
+
self.action_key = feature_transform.org_features["actions"]
|
| 411 |
+
def resize_image(self, observation):
|
| 412 |
+
image_features = self.vla.feature_transform.org_features['images']
|
| 413 |
+
image_size = getattr(self.data_config, 'img_size', 256)
|
| 414 |
+
resize = Resize((image_size, image_size))
|
| 415 |
+
for image_feature in image_features:
|
| 416 |
+
assert image_feature in observation
|
| 417 |
+
assert len(observation[image_feature].shape)==3 and observation[image_feature].shape[-1] == 3
|
| 418 |
+
image = torch.as_tensor(observation[image_feature]).permute(2, 0, 1).contiguous()
|
| 419 |
+
image = image.to(dtype=torch.float32)
|
| 420 |
+
observation[image_feature] = resize(image)
|
| 421 |
+
|
| 422 |
+
def _unapply_batched_actions(self, transformed_observations, actions):
|
| 423 |
+
action_chunk = {}
|
| 424 |
+
for action in self.action_key:
|
| 425 |
+
action_chunk[action] = []
|
| 426 |
+
|
| 427 |
+
outputs = []
|
| 428 |
+
for transformed, action in zip(transformed_observations, actions):
|
| 429 |
+
single = dict(transformed)
|
| 430 |
+
single['actions'] = action.to(dtype=torch.float32, device='cpu')
|
| 431 |
+
if self.use_bf16 and 'state' in single:
|
| 432 |
+
single['state'] = single['state'].to(dtype=torch.float32)
|
| 433 |
+
data = self.vla.feature_transform.unapply(single)
|
| 434 |
+
|
| 435 |
+
for action in self.action_key:
|
| 436 |
+
# keep action keys after unapply
|
| 437 |
+
value = data[action]
|
| 438 |
+
if isinstance(value, torch.Tensor):
|
| 439 |
+
value = value.float().cpu().numpy()
|
| 440 |
+
else:
|
| 441 |
+
value = np.asarray(value, dtype=np.float32)
|
| 442 |
+
action_chunk[action].append(value)
|
| 443 |
+
|
| 444 |
+
for action_key in action_chunk.keys():
|
| 445 |
+
action_chunk[action_key] = np.stack(action_chunk[action_key], axis=0)
|
| 446 |
+
|
| 447 |
+
return action_chunk
|
| 448 |
+
|
| 449 |
+
def _prepare_model_input(self, observation):
|
| 450 |
+
# Public history fields are raw reported states or completed actions;
|
| 451 |
+
# normalize using the same fitted features as their current counterparts.
|
| 452 |
+
observation = dict(observation)
|
| 453 |
+
action_mode = getattr(self.vla.config, "action_history_mode", "none")
|
| 454 |
+
state_mode = getattr(self.vla.config, "state_history_mode", "none")
|
| 455 |
+
if state_mode != "none" and action_mode not in ("none", "summary"):
|
| 456 |
+
raise ValueError("Only E5 action summary can combine with state history")
|
| 457 |
+
visual_mode = getattr(self.vla.config, "visual_history_mode", "none")
|
| 458 |
+
visual_raw = observation.pop("visual_history_raw", None)
|
| 459 |
+
visual_mask = observation.pop("visual_history_mask", None)
|
| 460 |
+
if "visual_history_images" in observation or "visual_history_grid_thw" in observation:
|
| 461 |
+
raise ValueError("Public inference requires raw camera history, not preprocessed pixels")
|
| 462 |
+
if visual_mode == "pooled_tokens":
|
| 463 |
+
if visual_raw is None or visual_mask is None or not isinstance(visual_raw, dict):
|
| 464 |
+
raise ValueError("E4 inference requires explicit raw visual history and mask at reset and every decision")
|
| 465 |
+
elif visual_raw is not None or visual_mask is not None:
|
| 466 |
+
raise ValueError("Visual history supplied to a disabled branch")
|
| 467 |
+
histories = {}
|
| 468 |
+
for prefix, enabled in (("action_history", action_mode in ("summary", "tokens")),
|
| 469 |
+
("state_history", state_mode == "tokens")):
|
| 470 |
+
raw = observation.pop(prefix + "_raw", None)
|
| 471 |
+
mask = observation.pop(prefix + "_mask", None)
|
| 472 |
+
if prefix in observation:
|
| 473 |
+
raise ValueError(f"Public inference takes raw {prefix}, not normalized history")
|
| 474 |
+
if enabled and (raw is None or mask is None):
|
| 475 |
+
raise ValueError(f"History inference requires explicit raw {prefix}; use empty masked history at reset")
|
| 476 |
+
if not enabled and (raw is not None or mask is not None):
|
| 477 |
+
raise ValueError(f"{prefix} inputs supplied to a model without that history branch enabled")
|
| 478 |
+
if enabled:
|
| 479 |
+
if not isinstance(raw, dict):
|
| 480 |
+
raise TypeError(f"{prefix}_raw must map original features to strictly past rows")
|
| 481 |
+
histories[prefix] = (raw, mask)
|
| 482 |
+
self.resize_image(observation)
|
| 483 |
+
for k, v in list(observation.items()):
|
| 484 |
+
if isinstance(v, np.ndarray):
|
| 485 |
+
observation[k] = torch.from_numpy(v)
|
| 486 |
+
observation = self.vla.feature_transform.apply(observation, policy_eval=True)
|
| 487 |
+
for prefix, (raw, mask) in histories.items():
|
| 488 |
+
raw = {key: torch.as_tensor(value, dtype=torch.float32) for key, value in raw.items()}
|
| 489 |
+
normalize = getattr(self.vla.feature_transform, "normalize_" + prefix)
|
| 490 |
+
history, valid = normalize(raw, torch.as_tensor(mask))
|
| 491 |
+
observation[prefix] = history
|
| 492 |
+
observation[prefix + "_mask"] = valid
|
| 493 |
+
if visual_mode == "pooled_tokens":
|
| 494 |
+
pixels, grid, valid = self.vla.feature_transform.prepare_visual_history(
|
| 495 |
+
visual_raw, torch.as_tensor(visual_mask), policy_eval=True,
|
| 496 |
+
)
|
| 497 |
+
if not torch.equal(valid, observation["state_history_mask"]):
|
| 498 |
+
raise ValueError("Visual and state history validity masks must match")
|
| 499 |
+
observation.update(visual_history_images=pixels, visual_history_grid_thw=grid,
|
| 500 |
+
visual_history_mask=valid)
|
| 501 |
+
if self.use_bf16:
|
| 502 |
+
observation['state'] = observation['state'].to(torch.bfloat16)
|
| 503 |
+
return observation
|
| 504 |
+
|
| 505 |
+
@staticmethod
|
| 506 |
+
def _pad_and_stack_tensors(values):
|
| 507 |
+
shapes = [tuple(value.shape) for value in values]
|
| 508 |
+
if len(set(shapes)) == 1:
|
| 509 |
+
return torch.stack(values, dim=0)
|
| 510 |
+
|
| 511 |
+
if all(value.ndim == 1 for value in values):
|
| 512 |
+
max_len = max(value.shape[0] for value in values)
|
| 513 |
+
fill_value = False if values[0].dtype == torch.bool else 0
|
| 514 |
+
padded = []
|
| 515 |
+
for value in values:
|
| 516 |
+
out = torch.full(
|
| 517 |
+
(max_len,),
|
| 518 |
+
fill_value,
|
| 519 |
+
dtype=value.dtype,
|
| 520 |
+
device=value.device,
|
| 521 |
+
)
|
| 522 |
+
out[: value.shape[0]] = value
|
| 523 |
+
padded.append(out)
|
| 524 |
+
return torch.stack(padded, dim=0)
|
| 525 |
+
|
| 526 |
+
raise ValueError(f"Cannot batch tensors with different shapes: {shapes}")
|
| 527 |
+
def _infer_batch(self, observations, return_normalized=False):
|
| 528 |
+
if not isinstance(observations, (list, tuple)) or len(observations) == 0:
|
| 529 |
+
raise ValueError("batch observation must be a non-empty list")
|
| 530 |
+
applied = [self._prepare_model_input(obs) for obs in observations] # bsize, dict{key }
|
| 531 |
+
batch_observation = {}
|
| 532 |
+
for key in applied[0].keys():
|
| 533 |
+
values = [item[key] for item in applied]
|
| 534 |
+
if isinstance(values[0], torch.Tensor):
|
| 535 |
+
# Pad different 1d tokens to the max length: language, language mask
|
| 536 |
+
batch_observation[key] = self._pad_and_stack_tensors(values)
|
| 537 |
+
else:
|
| 538 |
+
batch_observation[key] = values
|
| 539 |
+
|
| 540 |
+
actions = self.vla.sample_actions_batch(
|
| 541 |
+
batch_observation,
|
| 542 |
+
self.use_bf16,
|
| 543 |
+
self.use_compile,
|
| 544 |
+
capture_time=False,
|
| 545 |
+
sample_compile_fn = self.sample_actions_fn,
|
| 546 |
+
)
|
| 547 |
+
|
| 548 |
+
unnormalized_actions = self._unapply_batched_actions(applied, actions)
|
| 549 |
+
if return_normalized:
|
| 550 |
+
return unnormalized_actions, actions
|
| 551 |
+
return unnormalized_actions
|
| 552 |
+
|
| 553 |
+
def infer(self, observation, center_crop=True, return_normalized=False):
|
| 554 |
+
"""Generates an action with the VLA policy."""
|
| 555 |
+
# (If trained with image augmentations) Center crop image and then resize back up to original size.
|
| 556 |
+
# IMPORTANT: Let's say crop scale == 0.9. To get the new height and width (post-crop), multiply
|
| 557 |
+
# the original height and width by sqrt(0.9) -- not 0.9!
|
| 558 |
+
if 'reset' in observation and observation['reset']:
|
| 559 |
+
self.reset(robo_name=observation['robo_name'], path_to_pi_model=observation['path_to_pi_model'] if 'path_to_pi_model' in observation else None)
|
| 560 |
+
return dict(action = None)
|
| 561 |
+
|
| 562 |
+
is_batch = 'batch' in observation
|
| 563 |
+
observations = observation['batch'] if is_batch else [observation]
|
| 564 |
+
if not self.chunk_ret and self.use_length <= 0:
|
| 565 |
+
raise ValueError(f"use_length must be > 0 when chunk_ret=False, got {self.use_length}")
|
| 566 |
+
should_forward = (
|
| 567 |
+
self.chunk_ret
|
| 568 |
+
or self.last_action_chunk is None
|
| 569 |
+
or (return_normalized and self.last_normalized_action_chunk is None)
|
| 570 |
+
or self.global_step % self.use_length == 0
|
| 571 |
+
or self.use_length == -1
|
| 572 |
+
)
|
| 573 |
+
|
| 574 |
+
if should_forward:
|
| 575 |
+
if return_normalized:
|
| 576 |
+
unnormalized_actions, normalized_actions = self._infer_batch(
|
| 577 |
+
observations,
|
| 578 |
+
return_normalized=True,
|
| 579 |
+
)
|
| 580 |
+
else:
|
| 581 |
+
unnormalized_actions = self._infer_batch(observations)
|
| 582 |
+
normalized_actions = None
|
| 583 |
+
if self.use_length > 0:
|
| 584 |
+
for output_key in unnormalized_actions.keys():
|
| 585 |
+
assert self.use_length <= unnormalized_actions[output_key].shape[1]
|
| 586 |
+
unnormalized_actions[output_key] = unnormalized_actions[output_key][:, :self.use_length]
|
| 587 |
+
if normalized_actions is not None:
|
| 588 |
+
assert self.use_length <= normalized_actions.shape[1]
|
| 589 |
+
normalized_actions = normalized_actions[:, :self.use_length]
|
| 590 |
+
|
| 591 |
+
self.last_action_chunk = unnormalized_actions # always (B, chunk, dim)
|
| 592 |
+
self.last_normalized_action_chunk = normalized_actions
|
| 593 |
+
|
| 594 |
+
if self.chunk_ret:
|
| 595 |
+
action = self.last_action_chunk # (B, chunk, dim)
|
| 596 |
+
normalized_action = self.last_normalized_action_chunk
|
| 597 |
+
else:
|
| 598 |
+
step_idx = self.global_step % self.use_length
|
| 599 |
+
action = {}
|
| 600 |
+
for action_key in self.last_action_chunk.keys():
|
| 601 |
+
action[action_key] = self.last_action_chunk[action_key][:, step_idx]
|
| 602 |
+
normalized_action = (
|
| 603 |
+
self.last_normalized_action_chunk[:, step_idx]
|
| 604 |
+
if self.last_normalized_action_chunk is not None
|
| 605 |
+
else None
|
| 606 |
+
)
|
| 607 |
+
|
| 608 |
+
if not is_batch:
|
| 609 |
+
for action_key in action:
|
| 610 |
+
action[action_key] = action[action_key][0]
|
| 611 |
+
if normalized_action is not None:
|
| 612 |
+
normalized_action = normalized_action[0]
|
| 613 |
+
|
| 614 |
+
result = action
|
| 615 |
+
if return_normalized:
|
| 616 |
+
result = dict(result)
|
| 617 |
+
result["_normalized_actions"] = normalized_action
|
| 618 |
+
|
| 619 |
+
self.global_step += 1
|
| 620 |
+
|
| 621 |
+
return result
|
| 622 |
+
|
| 623 |
+
def str2bool(v):
|
| 624 |
+
if isinstance(v, bool):
|
| 625 |
+
return v
|
| 626 |
+
if v.lower() in ("yes", "true", "t", "1"):
|
| 627 |
+
return True
|
| 628 |
+
elif v.lower() in ("no", "false", "f", "0"):
|
| 629 |
+
return False
|
| 630 |
+
raise argparse.ArgumentTypeError("Boolean value expected.")
|
| 631 |
+
|
| 632 |
+
import argparse
|
| 633 |
+
try:
|
| 634 |
+
from .websocket_policy_server import WebsocketPolicyServer
|
| 635 |
+
except ImportError:
|
| 636 |
+
from deploy.websocket_policy_server import WebsocketPolicyServer
|
| 637 |
+
|
| 638 |
+
def main():
|
| 639 |
+
parser = argparse.ArgumentParser(description="Launch the Qwen3VL LingbotVlaV2 WebSocket policy server")
|
| 640 |
+
|
| 641 |
+
parser.add_argument(
|
| 642 |
+
"--model_path",
|
| 643 |
+
type=str,
|
| 644 |
+
)
|
| 645 |
+
|
| 646 |
+
parser.add_argument(
|
| 647 |
+
"--use_length",
|
| 648 |
+
type=int,
|
| 649 |
+
default=50,
|
| 650 |
+
help="chunk length to use"
|
| 651 |
+
)
|
| 652 |
+
|
| 653 |
+
parser.add_argument(
|
| 654 |
+
"--chunk_ret",
|
| 655 |
+
type=str2bool,
|
| 656 |
+
default=True,
|
| 657 |
+
help="chunk length to use"
|
| 658 |
+
)
|
| 659 |
+
|
| 660 |
+
parser.add_argument(
|
| 661 |
+
"--port",
|
| 662 |
+
type=int,
|
| 663 |
+
default=8006,
|
| 664 |
+
help="WebSocket server port"
|
| 665 |
+
)
|
| 666 |
+
|
| 667 |
+
parser.add_argument(
|
| 668 |
+
"--use_bf16",
|
| 669 |
+
type=str2bool,
|
| 670 |
+
default=True,
|
| 671 |
+
)
|
| 672 |
+
|
| 673 |
+
parser.add_argument(
|
| 674 |
+
"--use_fp32",
|
| 675 |
+
type=str2bool,
|
| 676 |
+
default=False,
|
| 677 |
+
)
|
| 678 |
+
|
| 679 |
+
parser.add_argument(
|
| 680 |
+
"--use_compile",
|
| 681 |
+
type=str2bool,
|
| 682 |
+
default=True,
|
| 683 |
+
)
|
| 684 |
+
|
| 685 |
+
args = parser.parse_args()
|
| 686 |
+
|
| 687 |
+
model = LingbotVLAv2Server(
|
| 688 |
+
args.model_path,
|
| 689 |
+
use_length=args.use_length,
|
| 690 |
+
chunk_ret=args.chunk_ret,
|
| 691 |
+
use_bf16=args.use_bf16,
|
| 692 |
+
use_fp32=args.use_fp32,
|
| 693 |
+
use_compile=args.use_compile,
|
| 694 |
+
)
|
| 695 |
+
model_server = WebsocketPolicyServer(model, port=args.port)
|
| 696 |
+
model_server.serve_forever()
|
| 697 |
+
|
| 698 |
+
|
| 699 |
+
if __name__ == "__main__":
|
| 700 |
+
main()
|