yslan commited on
Commit
5dd760b
·
verified ·
1 Parent(s): 1bb3650

Add versioned inference guide for cosmos_nano_14700_inference.md

Browse files
inference_guides/20261108/cosmos_nano_14700_inference.md ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Source revision: `2d2f136bdd8b552814375310ffdb8ee7c1d70661` ([GitHub document](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/cosmos_nano_14700_inference.md)). Relative documentation links below are expanded for Hugging Face.
2
+
3
+ # Cosmos Nano 14,700: download and recorded-window inference
4
+
5
+ This is the 21-frame, 22-source Omni4D checkpoint. It is not the later 49-frame
6
+ continuation, the four-source forecasting fine-tune, or the six-stream RoboTwin
7
+ model. Its trainable overlay requires the frozen base and the project adapter.
8
+
9
+ ## Verified download
10
+
11
+ Repository: `yslan/o-intermediate-model`.
12
+ Immutable receipt revision: `c30cee8888cc84a99d05ccda155df152fe7b2627`.
13
+
14
+ ```bash
15
+ MODEL_DIR=/scratch/shared/engs2907/shared_models/nano14700
16
+ HF_PREFIX=cosmos_nano_full20_21frame_update_014700_20261107/attempt01/update_014700
17
+ hf download yslan/o-intermediate-model "$HF_PREFIX/step_014700.safetensors" \
18
+ --revision c30cee8888cc84a99d05ccda155df152fe7b2627 --local-dir "$MODEL_DIR"
19
+ OVERLAY="$MODEL_DIR/$HF_PREFIX/step_014700.safetensors"
20
+ ```
21
+
22
+ Expected bytes: **2,990,807,208**. SHA-256:
23
+ `ae92b4b891df0a6f44e22027139f48f8f6537a43f78a78f92c54a589853209fb`.
24
+ The remote size and LFS checksum were verified against the local payload.
25
+ Verify a new download once on a CPU compute node; do not repeatedly hash the
26
+ same multi-GB file on shared storage.
27
+
28
+ The overlay contains 530 FP32 trainable tensors. Frozen base:
29
+ `nvidia/Cosmos3-Nano@e59a53c25979a090fa8706c9acc0c254a6e89b92`.
30
+ Its required writer identity is:
31
+
32
+ ```text
33
+ cosmos3_nano_omni4d_stage_one_lora_r256_plain_ddp_21_frames_temporal_forcing_full20_plus_cityscapes_and_molmo_motion_from_overlay_global32_lr2p5e5
34
+ ```
35
+
36
+ It includes the video, DINO, pointmap/depth representation, camera and tracking
37
+ representation paths. It does not contain the separate RoboTwin action-video
38
+ stream or a separately validated Omega feature stream. This is weights-only
39
+ continuation, not an exact optimizer/RNG resume checkpoint.
40
+
41
+ ## Executed runtime and assets
42
+
43
+ The recorded-nine inference source is
44
+ `1805dcef5e47d4342266ac5b6eb5e4bdac674c63`, branch
45
+ `integration/cosmos-evaluation-modes-runtime-profiles-20261107` in the VGG
46
+ repository. On Civo its existing checkout is
47
+ `/scratch/shared/engs2907/cosmos_vfd2c_saved_layout_20261107`.
48
+ Do not switch an active training checkout to this revision.
49
+
50
+ | Asset | Recorded Civo path / identity |
51
+ |---|---|
52
+ | Python | `/scratch/shared/engs2907/envs/cosmos3-nano-py313-cu128-001fe183/bin/python` |
53
+ | Frozen base | `/scratch/shared/engs2907/cache/cosmos3_nano/hf_cache/models--nvidia--Cosmos3-Nano/snapshots/e59a53c25979a090fa8706c9acc0c254a6e89b92` |
54
+ | Native VAE | `/scratch/shared/engs2907/cache/cosmos3_nano/vae/Wan2.2_VAE_native_state_dict.pt` |
55
+ | Flex-pi | `/vgg/yushi/Repo/flex-pi`, commit `20c1b2b71ea35a415d5d47c39b04443cfadad7a1` |
56
+ | VGG reader source | `/vgg/yushi/Repo/vgg_forecast_4d_cosmos_pinned_source_20261102` |
57
+ | DINOv3 | `/scratch/shared/shug6902/logs/vgg_forecast_4d/cache/flexpi_official_inference_20261019/huggingface/hub/models--timm--vit_base_patch16_dinov3.lvd1689m/snapshots/c6a5fb7d12bbd3cf3b0079253141c3332aaed7da/model.safetensors` |
58
+ | DINO SHA-256 | `1f9ed8a2378d65e24bb710ba522ac9fa7be4e036d7aefb4384ce022833926332` |
59
+
60
+ The environment uses recorded dependency overlays. The exact working
61
+ environment and command are preserved in:
62
+
63
+ ```text
64
+ /scratch/shared/engs2907/logs/vgg_forecast_4d/tools/cosmos14700_recorded9_empty_caption_full_20261108/attempt01/launch_gpu.sh
65
+ /scratch/shared/engs2907/logs/vgg_forecast_4d/tools/cosmos14700_recorded9_empty_caption_full_20261108/attempt01/cpu_preflight.sh
66
+ ```
67
+
68
+ Those wrappers are full-cohort launchers: do not invoke them to obtain only one
69
+ sample. They also contain frozen Civo dataset/feature paths. Reusing this
70
+ environment is tested; installation on a fresh machine and arbitrary user RGB
71
+ input is not yet independently validated.
72
+
73
+ ## One recorded held-out window
74
+
75
+ Run inside an authorized GPU step with a verified physical UUID and shared GPU
76
+ lock. Register the experiment first. Export the dependencies from the recorded
77
+ wrapper, including its `PYTHONPATH`, then use the existing queue and evaluator
78
+ owners below. `OUT` must be a new directory; preserve previous attempts.
79
+
80
+ ```bash
81
+ RUN_ROOT=/scratch/shared/engs2907/logs/vgg_forecast_4d
82
+ COSMOS=/scratch/shared/engs2907/cosmos_vfd2c_saved_layout_20261107
83
+ PY=/scratch/shared/engs2907/envs/cosmos3-nano-py313-cu128-001fe183/bin/python
84
+ OUT="$RUN_ROOT/eval/shared_nano14700_recorded9/attempt01"
85
+ IDENTITY=cosmos3_nano_omni4d_stage_one_lora_r256_plain_ddp_21_frames_temporal_forcing_full20_plus_cityscapes_and_molmo_motion_from_overlay_global32_lr2p5e5
86
+ cd "$COSMOS"
87
+ mkdir -p "$OUT"
88
+ "$PY" tools/omni4d/cosmos3_nano/prepare_stage_one_eval_queue.py \
89
+ --protocol saved_layout_forecast_empty_caption --cohort recorded_nine_frame \
90
+ --checkpoint-step 14700 --model-overlay "$OVERLAY" \
91
+ --overlay-config-identity "$IDENTITY" \
92
+ --output-root "$OUT/inference" --output "$OUT/queue.json"
93
+
94
+ "$PY" -m cosmos_framework.inference.omni4d_saved_layout_evaluation \
95
+ --queue "$OUT/queue.json" --overlay "$OVERLAY" \
96
+ --output-dir "$OUT/inference" \
97
+ --caption-text-root "$RUN_ROOT/cache/wan_umt5_captions/four_d_window_caption_texts_0134171d8" \
98
+ --raw-rgb-export --preflight-windows 1 \
99
+ --preflight-cohort held_out --preflight-modes v_from_first_frame
100
+ ```
101
+
102
+ The frozen base/VAE/Flex-pi/DINO defaults in this revision point at the recorded
103
+ assets above; override their explicit CLI paths when relocating assets, keeping
104
+ their identities/checksums unchanged. The native Omni sampler is 25-step Euler;
105
+ baseline-native sampling settings are different rows.
106
+
107
+ The registered full run executed 396 mode-window rows, including 242 held-out
108
+ and 154 training rows. Generated-only common22 RGB scoring is separate from
109
+ native inline metrics. New scores use `c0ff59cf4`'s explicit framewise PSNR;
110
+ do not relabel old pooled scores.
111
+
112
+ For 21-frame saved-layout or temporal conditions, compose the corresponding
113
+ `twenty_one_frame` queue and keep its actual frame vector and role masks.
114
+ Prefix conditions and first/last conditions must score only generated cells;
115
+ given endpoints are not forecasts. Do not fabricate a mode name or change the
116
+ queue's encoded masks. The 9-frame and 21-frame cohorts are separate protocols.
117
+
118
+ ## Outputs and verification boundary
119
+
120
+ Check source/checkpoint/config identity, actual input and generated masks,
121
+ finite raw predictions, per-window records, terminal exit and readable MP4s.
122
+ For current visuals use the reviewed input/generated/GT exporter: green borders
123
+ on given frames, banana depth, and GT-fitted common DINO PCA. An older compact
124
+ preview is not proof that every new-layout panel has passed.
125
+
126
+ See [perception protocol](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/perception.md), [generation protocol](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/generation.md)
127
+ and [current baseline readiness](https://github.com/NIRVANALAN/vgg_forecast_4d/blob/2d2f136bdd8b552814375310ffdb8ee7c1d70661/doc/eval/baseline_readiness_20261108.md). A better
128
+ training-window preview does not establish a real-data benefit or causal
129
+ pretraining effect.