introvoyz041 chrisvoncsefalvay commited on
Commit
a456468
·
0 Parent(s):

Duplicate from chrisvoncsefalvay/cosmos3-nanoh-surgical-dvrk

Browse files

Co-authored-by: Chris von Csefalvay <chrisvoncsefalvay@users.noreply.huggingface.co>

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +55 -0
  2. README.md +231 -0
  3. checkpoints/iter_000000500/model/.metadata +3 -0
  4. checkpoints/iter_000000500/model/__0_0.distcp +3 -0
  5. checkpoints/iter_000000500/model/__1_0.distcp +3 -0
  6. checkpoints/iter_000000500/model/__2_0.distcp +3 -0
  7. checkpoints/iter_000000500/model/__3_0.distcp +3 -0
  8. checkpoints/iter_000000500/model/__4_0.distcp +3 -0
  9. checkpoints/iter_000000500/model/__5_0.distcp +3 -0
  10. checkpoints/iter_000000500/model/__6_0.distcp +3 -0
  11. checkpoints/iter_000000500/model/__7_0.distcp +3 -0
  12. checkpoints/iter_000000500/optim/.metadata +3 -0
  13. checkpoints/iter_000000500/optim/__0_0.distcp +3 -0
  14. checkpoints/iter_000000500/optim/__1_0.distcp +3 -0
  15. checkpoints/iter_000000500/optim/__2_0.distcp +3 -0
  16. checkpoints/iter_000000500/optim/__3_0.distcp +3 -0
  17. checkpoints/iter_000000500/optim/__4_0.distcp +3 -0
  18. checkpoints/iter_000000500/optim/__5_0.distcp +3 -0
  19. checkpoints/iter_000000500/optim/__6_0.distcp +3 -0
  20. checkpoints/iter_000000500/optim/__7_0.distcp +3 -0
  21. checkpoints/iter_000000500/scheduler/.metadata +0 -0
  22. checkpoints/iter_000000500/scheduler/__0_0.distcp +0 -0
  23. checkpoints/iter_000000500/scheduler/__1_0.distcp +0 -0
  24. checkpoints/iter_000000500/scheduler/__2_0.distcp +0 -0
  25. checkpoints/iter_000000500/scheduler/__3_0.distcp +0 -0
  26. checkpoints/iter_000000500/scheduler/__4_0.distcp +0 -0
  27. checkpoints/iter_000000500/scheduler/__5_0.distcp +0 -0
  28. checkpoints/iter_000000500/scheduler/__6_0.distcp +0 -0
  29. checkpoints/iter_000000500/scheduler/__7_0.distcp +0 -0
  30. checkpoints/iter_000000500/trainer/.metadata +0 -0
  31. checkpoints/iter_000000500/trainer/__0_0.distcp +0 -0
  32. checkpoints/iter_000000500/trainer/__1_0.distcp +0 -0
  33. checkpoints/iter_000000500/trainer/__2_0.distcp +0 -0
  34. checkpoints/iter_000000500/trainer/__3_0.distcp +0 -0
  35. checkpoints/iter_000000500/trainer/__4_0.distcp +0 -0
  36. checkpoints/iter_000000500/trainer/__5_0.distcp +0 -0
  37. checkpoints/iter_000000500/trainer/__6_0.distcp +0 -0
  38. checkpoints/iter_000000500/trainer/__7_0.distcp +0 -0
  39. checkpoints/latest_checkpoint.txt +1 -0
  40. config.yaml +579 -0
  41. eval/panel_split_eval.json +67 -0
  42. eval/panel_split_pairs.json +32 -0
  43. eval/renders/cosmos3_nanoh_dvrk_iter500_rollout_grid.mp4 +3 -0
  44. eval/renders/cosmos3_nanoh_dvrk_iter500_rollout_grid_poster.jpg +3 -0
  45. metadata/dvrk_registry.json +22 -0
  46. metadata/remote_dryrun_config.txt +102 -0
  47. model/checkpoint.json +17 -0
  48. model/config.json +182 -0
  49. model/model-00001-of-00007.safetensors +3 -0
  50. model/model-00002-of-00007.safetensors +3 -0
.gitattributes ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoints/iter_000000500/model/.metadata filter=lfs diff=lfs merge=lfs -text
37
+ checkpoints/iter_000000500/model/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
38
+ checkpoints/iter_000000500/model/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
39
+ checkpoints/iter_000000500/model/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
40
+ checkpoints/iter_000000500/model/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
41
+ checkpoints/iter_000000500/model/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
42
+ checkpoints/iter_000000500/model/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
43
+ checkpoints/iter_000000500/model/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
44
+ checkpoints/iter_000000500/model/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
45
+ checkpoints/iter_000000500/optim/.metadata filter=lfs diff=lfs merge=lfs -text
46
+ checkpoints/iter_000000500/optim/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
47
+ checkpoints/iter_000000500/optim/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
48
+ checkpoints/iter_000000500/optim/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
49
+ checkpoints/iter_000000500/optim/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
50
+ checkpoints/iter_000000500/optim/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
51
+ checkpoints/iter_000000500/optim/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
52
+ checkpoints/iter_000000500/optim/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
53
+ checkpoints/iter_000000500/optim/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
54
+ eval/renders/cosmos3_nanoh_dvrk_iter500_rollout_grid.mp4 filter=lfs diff=lfs merge=lfs -text
55
+ eval/renders/cosmos3_nanoh_dvrk_iter500_rollout_grid_poster.jpg filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: openmdw-1.1
3
+ base_model:
4
+ - nvidia/Cosmos3-Nano
5
+ datasets:
6
+ - chrisvoncsefalvay/openembodiment-dvrk-subset
7
+ - nvidia/PhysicalAI-Robotics-Open-H-Embodiment
8
+ tags:
9
+ - cosmos3
10
+ - surgical-robotics
11
+ - dvrk
12
+ - surgical-kinematics
13
+ - motion-prediction
14
+ - inverse-dynamics
15
+ - forward-dynamics
16
+ - action-conditioned
17
+ - world-model
18
+ - lerobot
19
+ - robotics
20
+ library_name: cosmos3
21
+ private: true
22
+ ---
23
+ # Cosmos 3 Nano-H surgical dVRK
24
+
25
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/6515c41e4256270d6fa09259/6A4LQihXfQD2bbsF7_tO8.gif)
26
+
27
+
28
+
29
+
30
+ Cosmos 3 Nano-0H Surgical dVRK is a domain-specific post-trained Cosmos 3 Nano
31
+ checkpoint for short-horizon surgical kinematics prediction and dVRK motion
32
+ simulation. It adapts the Nano-scale Cosmos world model to dVRK/da Vinci
33
+ endoscopic scenes and uses a native dVRK action representation that is
34
+ compatible with GR00T-H-style dual-arm end-effector control.
35
+
36
+ The model is intended as a research world model for surgical robotics:
37
+ predicting and comparing near-future tool motion, recovering action-like
38
+ kinematic structure from short video clips, validating action interfaces and
39
+ studying low-latency motion simulation behaviour in visually constrained robotic
40
+ manipulation settings.
41
+
42
+ Video is a secondary diagnostic channel in this limited NanoH run, not the main
43
+ product. The video objective remains much harder than the action/kinematic
44
+ objectives: generated video quality is substantially weaker than the
45
+ kinematics outputs even when the rollout is conditioned. Use this checkpoint as
46
+ a compact surgical motion model, not as a surgical video generator.
47
+
48
+ It is not intended for clinical decision-making, autonomous surgery, medical
49
+ diagnosis or patient-facing deployment.
50
+
51
+ ## Model details
52
+
53
+ - **Base model:** `nvidia/Cosmos3-Nano`
54
+ - **Adaptation:** supervised post-training on dVRK surgical windows
55
+ - **Primary task:** surgical kinematics prediction and short-horizon dVRK motion simulation
56
+ - **Secondary task:** action-conditioned visual rollout for context and diagnostics
57
+ - **Prediction horizon:** short-horizon 16-frame chunks
58
+ - **Visual input:** single endoscopic camera stream
59
+ - **Action input:** dual-PSM dVRK tensor, relative EEF motion with rot6D
60
+ - **Training objective:** mixed forward dynamics, inverse dynamics and policy
61
+ - **Precision:** bfloat16 training
62
+ - **Distributed strategy:** single-node FSDP
63
+ - **Checkpoint format:** Cosmos DCP checkpoints plus optional HF export
64
+
65
+ ## Action space
66
+
67
+ The model registers dVRK as a first-class Cosmos embodiment rather than mapping
68
+ it onto an existing robot id.
69
+
70
+ ```text
71
+ embodiment: dvrk
72
+ domain_id: 22
73
+ raw_action_dim: 20
74
+ chunk_length: 16
75
+ ```
76
+
77
+ Native dVRK tensor:
78
+
79
+ ```text
80
+ actions_dvrk: (16, 20)
81
+
82
+ left_xyz_rel(3), left_rot6d_rel(6), left_jaw_abs(1),
83
+ right_xyz_rel(3), right_rot6d_rel(6), right_jaw_abs(1)
84
+ ```
85
+
86
+ Surgical simulator bridge:
87
+
88
+ ```text
89
+ actions_unified44: (16, 44)
90
+ actions_unified44[..., :20] == actions_dvrk
91
+ actions_unified44[..., 20:44] == 0
92
+ ```
93
+
94
+ Cosmos action head:
95
+
96
+ ```text
97
+ actions_cosmos3: (16, 64)
98
+ raw_action_dim: 20
99
+ ```
100
+
101
+ The 20D native tensor is padded to the Cosmos 3 64D action head while preserving
102
+ the raw dimension for action-channel masking. A 44D zero-padded bridge is
103
+ included for surgical simulator interoperability.
104
+
105
+ ## Training data
106
+
107
+ Training uses
108
+ [`chrisvoncsefalvay/openembodiment-dvrk-subset`](https://huggingface.co/datasets/chrisvoncsefalvay/openembodiment-dvrk-subset),
109
+ a convenience subset of
110
+ [`nvidia/PhysicalAI-Robotics-Open-H-Embodiment`](https://huggingface.co/datasets/nvidia/PhysicalAI-Robotics-Open-H-Embodiment).
111
+
112
+ The subset mirrors dVRK/da Vinci records and
113
+ associated metadata so training machines can stream from one stable
114
+ HF/Xet-backed repository. The underlying source data and credit remain with
115
+ NVIDIA and the Open-H Embodiment contributors.
116
+
117
+ ## Training recipe
118
+
119
+ The release recipe is designed for a single 8xH100 node:
120
+
121
+ - FSDP over 8 GPUs
122
+ - bfloat16 precision
123
+ - activation checkpointing
124
+ - 16-frame action chunks
125
+ - single-camera video stream
126
+ - all-objective sampling across forward dynamics, inverse dynamics and policy
127
+ - checkpoint save interval of 100 iterations
128
+ - W&B metrics and qualitative visual logging
129
+ - interrupt-tolerant DCP checkpoints
130
+ - final artefact upload to a private Hugging Face model repository
131
+
132
+ The recipe demonstrates that useful domain adaptation of Cosmos 3 Nano does not
133
+ require enterprise-scale cluster choreography. Larger runs remain valuable, but
134
+ the single-node path is already strong enough to reveal meaningful surgical
135
+ domain improvement.
136
+
137
+ ## Evaluation
138
+
139
+ Evaluation emphasises short-horizon kinematic consistency and action-space
140
+ validity. Video metrics are retained as diagnostics, but kinematic and toolpath
141
+ checks are the primary success criteria for this run:
142
+
143
+ - tensor validation for dVRK, 44D simulator bridge and Cosmos 64D padded action
144
+ - held-out episode splits
145
+ - FDS-L1 over short rollouts
146
+ - toolpath and end-effector trajectory comparison against ground truth
147
+ - inverse-kinematics consistency on held-out motion snippets
148
+ - action-space normalization and scale audits
149
+ - qualitative W&B panels with context, prediction, actual, error strip and
150
+ action norms
151
+ - GR00T-H interop samples in native, 44D and 64D action formats
152
+ - PSNR, lightweight global SSIM and temporal frame-difference L1 as secondary
153
+ video diagnostics
154
+
155
+ Latency and smoothness are first-class evaluation concerns. A short rollout that
156
+ keeps motion coherent and fast is more valuable for this use case than a long
157
+ rollout that looks impressive only until the simulator has to respond.
158
+
159
+ ## Intended use
160
+
161
+ Appropriate use:
162
+
163
+ - research on surgical robotics world models
164
+ - short-horizon dVRK kinematics and toolpath prediction
165
+ - action-space validation and interop work
166
+ - simulation prototyping and qualitative model comparison
167
+ - non-clinical robotics research demos
168
+
169
+ Out-of-scope use:
170
+
171
+ - clinical decision support
172
+ - autonomous surgical control
173
+ - diagnosis, treatment planning or patient triage
174
+ - safety-critical deployment
175
+ - replacing a validated simulator or physical robot test
176
+
177
+ ## Limitations
178
+
179
+ - The model is specialised to dVRK-like endoscopic surgical scenes.
180
+ - It is optimised for short-horizon consistency, not indefinite rollout length.
181
+ - It may hallucinate tool geometry, tissue response, lighting or contact
182
+ effects.
183
+ - Video rollouts are weaker than the kinematics outputs and should be treated
184
+ as qualitative diagnostics rather than photorealistic surgical video.
185
+ - It should not be treated as a calibrated dynamics oracle.
186
+ - Single-camera training limits viewpoint disentanglement.
187
+ - Dataset coverage reflects the dVRK subset available in Open-H Embodiment.
188
+
189
+ ## Safety
190
+
191
+ This checkpoint is a research artefact. Predicted toolpaths, actions and
192
+ generated video should be interpreted as learned simulation outputs, not as
193
+ measured surgical reality. Any downstream robotics use requires independent
194
+ validation, simulator checks, hardware safety systems and domain-expert review.
195
+
196
+ ## Citation
197
+
198
+ Please cite the upstream Open-H Embodiment dataset and NVIDIA Cosmos materials
199
+ when using this model or the associated dataset subset. Cite this checkpoint
200
+ repository for the dVRK action mapping, kinematics-focused training recipe and
201
+ released weights.
202
+
203
+ ```bibtex
204
+ @misc{voncsefalvay2026cosmos3nanohsurgicaldvrk,
205
+ title = {Cosmos 3 NanoH surgical dVRK},
206
+ author = {von Csefalvay, Chris},
207
+ year = {2026},
208
+ publisher = {Hugging Face},
209
+ journal = {Hugging Face model repository},
210
+ url = {https://huggingface.co/chrisvoncsefalvay/cosmos3-nanoh-surgical-dvrk}
211
+ }
212
+ ```
213
+
214
+ ## Artefacts
215
+
216
+ Expected repository contents after release:
217
+
218
+ ```text
219
+ model/ exported HF checkpoint
220
+ checkpoints/ resumable Cosmos DCP checkpoints
221
+ eval/ quantitative reports and qualitative references
222
+ interop/ dVRK, 44D simulator and 64D Cosmos action samples
223
+ README.md this model card
224
+ ```
225
+
226
+ ## License
227
+
228
+ Released model materials are licensed under OpenMDW-1.1. Model code and adapter
229
+ utilities in the source repository remain Apache-2.0. Dataset files retain the
230
+ terms of the upstream Open-H Embodiment release. Base model usage is subject to
231
+ the terms of the upstream Cosmos 3 Nano release.
checkpoints/iter_000000500/model/.metadata ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:952ef2cc0e756e72fd631ce203fd62fc88a6b84506a58aaa0da2de871aba6ae2
3
+ size 1357257
checkpoints/iter_000000500/model/__0_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d9b125d1fc7ceee1707322ac40f40e3b50164fe8927c4b6ec637249b49c2bcb
3
+ size 3794555281
checkpoints/iter_000000500/model/__1_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:beb7b2b04eb095c8da11ae5e3f75c11671d6dd00883961d9527c51851f06e7e7
3
+ size 3794555281
checkpoints/iter_000000500/model/__2_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bbc3a28b39205c0eb659cc2632c00e366b97689da570f083c74fb0dd583773b
3
+ size 3794555281
checkpoints/iter_000000500/model/__3_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f25089b30ba4e6dbef869133c8e5830ab71ea5e225bbf6b91055f3257a40628
3
+ size 3794555281
checkpoints/iter_000000500/model/__4_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45e1602ca6eff43ae815f81d2b4e70f6854404d046ecba8ed340561113a40588
3
+ size 3794555281
checkpoints/iter_000000500/model/__5_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ad6fc67f0f4f73a37e317a218117cd193cf2b760333bd056dcc7a84248c9701
3
+ size 3794555281
checkpoints/iter_000000500/model/__6_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db328c384f9d89217f9c12222db0ddc57eb3cbe82976fa3f7348842d5512e01d
3
+ size 3794555281
checkpoints/iter_000000500/model/__7_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fbdc9a67fd7224a63a99aaee2807a5cd0268eebd42650fac552d553e40a8faf
3
+ size 3794555281
checkpoints/iter_000000500/optim/.metadata ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd07efdd961dd11564e296cad95a40298653106a100357f6c9df4a5ca857d9bd
3
+ size 3408305
checkpoints/iter_000000500/optim/__0_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56ff9cdb0a817ae8ab4ebdb0f2f65de12b7e416b1416a1fe3d8e744737bb1018
3
+ size 3499392214
checkpoints/iter_000000500/optim/__1_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:563a388b5fe8af3e1dbcb3ca690c1ef3f4255658313144f4e65756f1454c4ef7
3
+ size 3492489044
checkpoints/iter_000000500/optim/__2_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c0f13703bf3dcf416f924a7e98f00af95432d7c963d2c00f8728f85fa45bd98
3
+ size 3492489044
checkpoints/iter_000000500/optim/__3_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:273549fceb585f19932832e9ea6e1562b0b17a4b7d2ca67a848fc3648f731739
3
+ size 3492489044
checkpoints/iter_000000500/optim/__4_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b359b763d72657cb7fa97835f52c82d1669c5a1f23e1caaa7ae366ddc99de877
3
+ size 3492489044
checkpoints/iter_000000500/optim/__5_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c1d8ea73293349c06e752081b4f78adf569625d48b39fcf029bcb416df40230
3
+ size 3492489044
checkpoints/iter_000000500/optim/__6_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:216940b970768b897ec1ab80abd5884c625dbbb99a1b83f2869a068688d0ab1a
3
+ size 3492489044
checkpoints/iter_000000500/optim/__7_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ed6c7b7bc460dd8dfa47c5cab90f7516ce97997410a418dc30b1d927bbf7ed3
3
+ size 3492489044
checkpoints/iter_000000500/scheduler/.metadata ADDED
Binary file (1.2 kB). View file
 
checkpoints/iter_000000500/scheduler/__0_0.distcp ADDED
Binary file (7.69 kB). View file
 
checkpoints/iter_000000500/scheduler/__1_0.distcp ADDED
File without changes
checkpoints/iter_000000500/scheduler/__2_0.distcp ADDED
File without changes
checkpoints/iter_000000500/scheduler/__3_0.distcp ADDED
File without changes
checkpoints/iter_000000500/scheduler/__4_0.distcp ADDED
File without changes
checkpoints/iter_000000500/scheduler/__5_0.distcp ADDED
File without changes
checkpoints/iter_000000500/scheduler/__6_0.distcp ADDED
File without changes
checkpoints/iter_000000500/scheduler/__7_0.distcp ADDED
File without changes
checkpoints/iter_000000500/trainer/.metadata ADDED
Binary file (12.7 kB). View file
 
checkpoints/iter_000000500/trainer/__0_0.distcp ADDED
Binary file (24 kB). View file
 
checkpoints/iter_000000500/trainer/__1_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/iter_000000500/trainer/__2_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/iter_000000500/trainer/__3_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/iter_000000500/trainer/__4_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/iter_000000500/trainer/__5_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/iter_000000500/trainer/__6_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/iter_000000500/trainer/__7_0.distcp ADDED
Binary file (22.7 kB). View file
 
checkpoints/latest_checkpoint.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ iter_000000500
config.yaml ADDED
@@ -0,0 +1,579 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ checkpoint:
2
+ broadcast_via_filesystem: false
3
+ dcp_async_mode_enabled: false
4
+ enable_gcs_patch_in_boto3: true
5
+ hf_export:
6
+ enabled: false
7
+ export_every_n: 1
8
+ hf_repo_id: null
9
+ upload_to_object_store:
10
+ bucket: ''
11
+ credentials: ''
12
+ enabled: false
13
+ jit:
14
+ device: cuda
15
+ dtype: bfloat16
16
+ enabled: false
17
+ input_shape: null
18
+ strict: true
19
+ keys_not_to_resume: []
20
+ keys_to_skip_loading:
21
+ - net_ema.
22
+ load_ema_to_reg: false
23
+ load_from_object_store:
24
+ bucket: ''
25
+ credentials: ''
26
+ enabled: false
27
+ load_path: /workspace/cosmos/checkpoints/Cosmos3-Nano-DCP
28
+ load_training_state: false
29
+ only_load_scheduler_state: false
30
+ save_iter: 100
31
+ save_to_object_store:
32
+ bucket: ''
33
+ credentials: ''
34
+ enabled: false
35
+ strict_resume: true
36
+ type:
37
+ _target_: cosmos_framework.checkpoint.dcp.DistributedCheckpointer
38
+ callbacks: null
39
+ disable_async: false
40
+ verbose: true
41
+ data_setting:
42
+ qwen_max_video_token_length: 8192
43
+ dataloader_train:
44
+ _target_: cosmos_framework.data.vfm.joint_dataloader.PackingDataLoader
45
+ audio_sample_rate: 48000
46
+ dataloader:
47
+ _target_: cosmos_framework.data.vfm.joint_dataloader.RankPartitionedDataLoader
48
+ batch_size: 1
49
+ datasets:
50
+ dvrk_openh:
51
+ dataset:
52
+ _target_: cosmos3_nanoh_surgical.dataset.OpenHDVRKLeRobotDataset
53
+ apply_cosmos_transform: true
54
+ cfg_dropout_rate: 0.1
55
+ chunk_length: 16
56
+ fps: null
57
+ load_video: true
58
+ local_root: /workspace/cosmos-3-NanoH-Surgical/data/openh_snapshot
59
+ manifest_path: /workspace/cosmos-3-NanoH-Surgical/artifacts/manifests/openh_dvrk_manifest.train.json
60
+ max_action_dim: 64
61
+ max_roots: 0
62
+ max_windows_per_root: 0
63
+ mode: all
64
+ mode_weights:
65
+ forward_dynamics: 1.0
66
+ inverse_dynamics: 1.0
67
+ policy: 1.0
68
+ normalization_path: /workspace/cosmos-3-NanoH-Surgical/artifacts/manifests/dvrk_action_stats.json
69
+ normalize_action: true
70
+ resolution: '256'
71
+ shard_rank: 0
72
+ shard_world_size: 1
73
+ tokenizer_config:
74
+ _target_: cosmos_framework.configs.base.defaults.vlm.create_qwen2_tokenizer_with_download
75
+ config_variant: hf
76
+ pretrained_model_name: Qwen/Qwen3-VL-8B-Instruct
77
+ video_key: auto
78
+ ratio: 1
79
+ in_order: true
80
+ num_workers: 4
81
+ persistent_workers: true
82
+ pin_memory: true
83
+ prefetch_factor: 4
84
+ sampler: null
85
+ dataset_name: dvrk_openh
86
+ lookahead_limit: 10
87
+ max_samples_per_batch: null
88
+ max_sequence_length: 32768
89
+ patch_spatial: 2
90
+ sound_latent_fps: 0
91
+ tokenizer_spatial_compression_factor: 16
92
+ tokenizer_temporal_compression_factor: 4
93
+ dataloader_val: null
94
+ defaults:
95
+ - _self_
96
+ - model: mot_fsdp
97
+ - data_train: null
98
+ - data_val: null
99
+ - optimizer: adamw
100
+ - scheduler: warmup_cosine_lr
101
+ - checkpoint: s3
102
+ - callbacks:
103
+ - basic
104
+ - optimization
105
+ - job_monitor
106
+ - generation
107
+ - ema: power
108
+ - tokenizer: wan2pt2_tokenizer
109
+ - sound_tokenizer: null
110
+ - cluster: default
111
+ - vlm_config: null
112
+ - ckpt_type: dcp
113
+ - experiment: null
114
+ job:
115
+ cluster: null
116
+ group: dvrk-openh
117
+ name: cosmos3_nanoh_dvrk_all_objective_chunk16_singlecam
118
+ project: cosmos3-nanoh-surgical
119
+ wandb_mode: online
120
+ model:
121
+ _recursive_: false
122
+ _target_: cosmos_framework.model.vfm.omni_mot_model.OmniMoTModel
123
+ config:
124
+ action_gen: true
125
+ activation_checkpointing:
126
+ determinism_check: default
127
+ mode: full
128
+ preserve_rng_state: true
129
+ save_ops_regex:
130
+ - fmha
131
+ causal_training_strategy: none
132
+ compile:
133
+ compile_dynamic: true
134
+ compiled_region: language
135
+ coordinate_descent_tuning: false
136
+ enabled: false
137
+ max_autotune_pointwise: false
138
+ use_cuda_graphs: false
139
+ diffusion_expert_config:
140
+ base_fps: 24
141
+ enable_fps_modulation: true
142
+ load_weights_from_pretrained: true
143
+ max_vae_latent_side_after_patchify: 20
144
+ patch_spatial: 2
145
+ position_embedding_type: unified_3d_mrope
146
+ rope_h_extrapolation_ratio: 1.0
147
+ rope_t_extrapolation_ratio: 1.0
148
+ rope_w_extrapolation_ratio: 1.0
149
+ timestep_range: 1.0
150
+ unified_3d_mrope_reset_spatial_ids: true
151
+ unified_3d_mrope_temporal_modality_margin: 15000
152
+ ema:
153
+ enabled: false
154
+ iteration_shift: 0
155
+ rate: 0.1
156
+ fixed_step_sampler_config: null
157
+ input_caption_key: ai_caption
158
+ input_image_key: images
159
+ input_video_key: video
160
+ joint_attn_implementation: flex
161
+ latent_downsample_factor: 16
162
+ lbl:
163
+ coeff_gen: null
164
+ coeff_und: null
165
+ method: local
166
+ log_enc_time_every_n: 100
167
+ lora_alpha: 32
168
+ lora_enabled: false
169
+ lora_rank: 16
170
+ lora_target_modules: q_proj_moe_gen,k_proj_moe_gen,v_proj_moe_gen,o_proj_moe_gen
171
+ max_action_dim: 64
172
+ max_num_tokens_after_packing: 32768
173
+ natten_parameter_list: null
174
+ net: null
175
+ num_embodiment_domains: 32
176
+ parallelism:
177
+ cfg_parallel_shard_degree: 1
178
+ context_parallel_shard_degree: 1
179
+ data_parallel_replicate_degree: 1
180
+ data_parallel_shard_degree: -1
181
+ enable_inference_mode: false
182
+ fsdp_master_dtype: float32
183
+ precision: bfloat16
184
+ rectified_flow_inference_config:
185
+ num_train_timesteps: 1000
186
+ scheduler_type: unipc
187
+ shift: 1
188
+ use_dynamic_shifting: false
189
+ rectified_flow_training_config:
190
+ action_loss_weight: 10.0
191
+ high_sigma_ratio: 0.05
192
+ high_sigma_timesteps_max: 1000
193
+ high_sigma_timesteps_min: 995
194
+ image_loss_scale: 1.0
195
+ independent_action_schedule: false
196
+ independent_sound_schedule: false
197
+ loss_scale: 1.0
198
+ normalize_loss_by_active: false
199
+ shift:
200
+ '256': 3
201
+ '480': 5
202
+ '720': 10
203
+ shift_action: null
204
+ shift_sound: null
205
+ sound_loss_scale: null
206
+ train_time_action_distribution: logitnormal
207
+ train_time_image_distribution: logitnormal
208
+ train_time_sound_distribution: logitnormal
209
+ train_time_video_distribution: waver
210
+ train_time_weight: uniform
211
+ use_discrete_rf: false
212
+ use_dynamic_shift: false
213
+ use_high_sigma_strategy: false
214
+ use_high_sigma_strategy_action: false
215
+ use_high_sigma_strategy_sound: false
216
+ resolution: '256'
217
+ sound_dim: null
218
+ sound_gen: false
219
+ sound_latent_fps: 25
220
+ sound_tokenizer: null
221
+ state_ch: 48
222
+ state_t: 300
223
+ tokenizer:
224
+ _target_: cosmos_framework.model.vfm.tokenizers.wan2pt2_vae_4x16x16.Wan2pt2VAEInterface
225
+ bucket_name: ''
226
+ chunk_duration: 93
227
+ encode_bucket_multiple: null
228
+ encode_chunk_frames:
229
+ '256': 68
230
+ '480': 24
231
+ '720': 12
232
+ encode_exact_durations: null
233
+ keep_decoder_cache: false
234
+ object_store_credential_path_pretrained: ''
235
+ spatial_compression_factor: 16
236
+ temporal_compression_factor: 4
237
+ temporal_window: null
238
+ use_streaming_encode: false
239
+ vae_path: /workspace/cosmos/checkpoints/wan22_vae/Wan2.2_VAE.pth
240
+ video_temporal_causal: false
241
+ vision_gen: true
242
+ vlm_config:
243
+ layer_module: Qwen2MoTDecoderLayer
244
+ model_instance:
245
+ _target_: cosmos_framework.model.vfm.mot.unified_mot.Qwen3VLTextForCausalLM
246
+ config:
247
+ _target_: cosmos_framework.configs.base.defaults.vlm.create_vlm_config
248
+ base_config:
249
+ _target_: cosmos_framework.model.vfm.mot.unified_mot.Qwen3VLMoTConfig.from_json_file
250
+ json_file: cosmos_framework/model/vfm/vlm/qwen3_vl/configs/Qwen3-VL-8B-Instruct.json
251
+ freeze_und: false
252
+ layer_module: MoTDecoderLayer
253
+ qk_norm_for_text: true
254
+ tie_word_embeddings: true
255
+ model_name: Qwen/Qwen3-VL-8B-Instruct
256
+ pretrained_weights:
257
+ backbone_path: s3://bucket0/cosmos3/pretrained/huggingface/Qwen/Qwen3-VL-8B-Instruct/
258
+ checkpoint_format: null
259
+ credentials_path: ''
260
+ enable_gcs_patch_in_boto3: true
261
+ enabled: false
262
+ qk_norm: false
263
+ safetensors_path: ''
264
+ tie_word_embeddings: false
265
+ tokenizer:
266
+ _target_: cosmos_framework.configs.base.defaults.vlm.create_qwen2_tokenizer_with_download
267
+ config_variant: hf
268
+ pretrained_model_name: Qwen/Qwen3-VL-8B-Instruct
269
+ use_system_prompt: false
270
+ model_parallel:
271
+ _cpu_offloading_context: null
272
+ async_tensor_model_parallel_allreduce: false
273
+ autocast_dtype: torch.float32
274
+ barrier_with_L1_time: true
275
+ batch_p2p_comm: true
276
+ batch_p2p_sync: true
277
+ bf16: false
278
+ context_parallel_size: 1
279
+ cpu_offloading: false
280
+ cpu_offloading_activations: true
281
+ cpu_offloading_double_buffering: false
282
+ cpu_offloading_num_layers: 0
283
+ cpu_offloading_weights: false
284
+ cross_entropy_fusion_impl: native
285
+ cross_entropy_loss_fusion: false
286
+ deallocate_pipeline_outputs: false
287
+ defer_embedding_wgrad_compute: false
288
+ delay_wgrad_compute: false
289
+ deterministic_mode: false
290
+ enable_autocast: false
291
+ ep_overlap_early_attn_memory_release: false
292
+ expert_model_parallel_size: 1
293
+ expert_tensor_parallel_size: 1
294
+ finalize_model_grads_func: null
295
+ fp16: false
296
+ grad_scale_func: null
297
+ grad_sync_func: null
298
+ gradient_accumulation_fusion: false
299
+ hierarchical_context_parallel_sizes: null
300
+ microbatch_group_size_per_vp_stage: 1
301
+ moe_extended_tp: false
302
+ no_sync_func: null
303
+ num_microbatches_with_partial_activation_checkpoints: null
304
+ overlap_moe_expert_parallel_comm: false
305
+ overlap_p2p_comm: false
306
+ overlap_p2p_comm_warmup_flush: false
307
+ param_sync_func: null
308
+ params_dtype: torch.float32
309
+ perform_initialization: true
310
+ pipeline_dtype: null
311
+ pipeline_model_parallel_comm_backend: null
312
+ pipeline_model_parallel_size: 1
313
+ sequence_parallel: false
314
+ tensor_model_parallel_size: 1
315
+ timers: null
316
+ tp_comm_atomic_ag: false
317
+ tp_comm_atomic_rs: false
318
+ tp_comm_bootstrap_backend: nccl
319
+ tp_comm_bulk_dgrad: true
320
+ tp_comm_bulk_wgrad: true
321
+ tp_comm_overlap: false
322
+ tp_comm_overlap_ag: true
323
+ tp_comm_overlap_disable_fc1: false
324
+ tp_comm_overlap_disable_qkv: false
325
+ tp_comm_overlap_rs: true
326
+ tp_comm_overlap_rs_dgrad: false
327
+ tp_comm_split_ag: true
328
+ tp_comm_split_rs: true
329
+ use_cpu_initialization: false
330
+ use_ring_exchange_p2p: false
331
+ use_te_rng_tracker: false
332
+ variable_seq_lengths: false
333
+ virtual_pipeline_model_parallel_size: null
334
+ wgrad_deferral_limit: 0
335
+ optimizer:
336
+ _target_: cosmos_framework.utils.vfm.optimizer.build_optimizer
337
+ betas:
338
+ - 0.9
339
+ - 0.95
340
+ disable_weight_decay_for_1d_params: false
341
+ eps: 1.0e-06
342
+ fused: true
343
+ keys_to_select:
344
+ - moe_gen
345
+ - time_embedder
346
+ - vae2llm
347
+ - llm2vae
348
+ - action2llm
349
+ - llm2action
350
+ - action_modality_embed
351
+ - q_proj_moe_gen
352
+ - k_proj_moe_gen
353
+ - v_proj_moe_gen
354
+ - o_proj_moe_gen
355
+ lr: 2.0e-05
356
+ lr_multipliers: {}
357
+ model: null
358
+ optimizer_type: AdamW
359
+ weight_decay: 0
360
+ scheduler:
361
+ _target_: cosmos_framework.utils.vfm.optimizer.build_lr_scheduler
362
+ cycle_lengths:
363
+ - 1000
364
+ f_max:
365
+ - 1.0
366
+ f_min:
367
+ - 0.0
368
+ f_start:
369
+ - 0.0
370
+ lr_scheduler_type: LambdaCosine
371
+ optimizer: null
372
+ verbosity_interval: 0
373
+ warm_up_steps:
374
+ - 50
375
+ trainer:
376
+ callbacks:
377
+ compile_tokenizer:
378
+ _target_: cosmos_framework.callbacks.compile_tokenizer.CompileTokenizer
379
+ compile_after_iterations: 3
380
+ enabled: false
381
+ warmup_resolutions: null
382
+ dataloader_speed:
383
+ every_n: 100
384
+ save_s3: false
385
+ step_size: 1
386
+ device_monitor:
387
+ _target_: cosmos_framework.callbacks.device_monitor.DeviceMonitor
388
+ every_n: 100
389
+ log_memory_detail: true
390
+ save_s3: false
391
+ step_size: 1
392
+ upload_every_n_mul: 5
393
+ every_n_sample_ema:
394
+ _target_: cosmos_framework.callbacks.every_n_draw_sample.EveryNDrawSample
395
+ do_x0_prediction: false
396
+ every_n: 100
397
+ fps: 16
398
+ guidance:
399
+ - 0.0
400
+ - 3.0
401
+ - 7.0
402
+ is_ema: true
403
+ n_sample_to_save: 128
404
+ n_sigmas_for_x0_prediction: 4
405
+ n_viz_sample: 2
406
+ num_sampling_step: 35
407
+ prompt_type: t5_xxl
408
+ run_at_start: false
409
+ save_local: false
410
+ save_s3: false
411
+ step_size: 1
412
+ use_negative_prompt: false
413
+ every_n_sample_reg:
414
+ _target_: cosmos_framework.callbacks.every_n_draw_sample.EveryNDrawSample
415
+ do_x0_prediction: false
416
+ every_n: 100
417
+ fps: 16
418
+ guidance:
419
+ - 3.0
420
+ is_ema: false
421
+ n_sample_to_save: 8
422
+ n_sigmas_for_x0_prediction: 4
423
+ n_viz_sample: 1
424
+ num_sampling_step: 16
425
+ prompt_type: t5_xxl
426
+ run_at_start: false
427
+ save_local: true
428
+ save_s3: false
429
+ step_size: 1
430
+ use_negative_prompt: false
431
+ expert_heatmap:
432
+ _target_: cosmos_framework.callbacks.expert_heatmap.ExpertHeatmap
433
+ every_n: 1000
434
+ grad_clip:
435
+ _target_: cosmos_framework.callbacks.grad_clip.GradClip
436
+ clip_norm: 0.1
437
+ force_finite: true
438
+ track_per_modality: true
439
+ heart_beat:
440
+ _target_: cosmos_framework.callbacks.heart_beat.HeartBeat
441
+ every_n: 100
442
+ save_s3: false
443
+ step_size: 1
444
+ update_interval_in_minute: 10
445
+ iter_speed:
446
+ _target_: cosmos_framework.callbacks.iter_speed.IterSpeed
447
+ every_n: 1
448
+ hit_thres: 50
449
+ save_s3: false
450
+ save_s3_every_log_n: 500
451
+ load_pretrained:
452
+ _target_: cosmos_framework.callbacks.load_pretrained.LoadPretrained
453
+ config: null
454
+ trainer: null
455
+ low_precision:
456
+ _target_: cosmos_framework.utils.callback.LowPrecisionCallback
457
+ config: null
458
+ trainer: null
459
+ update_iter: 1
460
+ manual_gc:
461
+ _target_: cosmos_framework.callbacks.manual_gc.ManualGarbageCollection
462
+ every_n: 5
463
+ gc_level: 1
464
+ warm_up: 1
465
+ mfu:
466
+ _target_: cosmos_framework.callbacks.mfu.MFUCallback
467
+ backwardpass_ratio: 2.0
468
+ every_n: 1
469
+ grad_accum_iter: 2
470
+ hit_thres: 5
471
+ include_padding: true
472
+ include_vae_encoder: true
473
+ moe_specialization:
474
+ _target_: cosmos_framework.callbacks.moe_specialization_callback.MoESpecializationCallback
475
+ every_n: 250
476
+ moe_stability:
477
+ _target_: cosmos_framework.callbacks.moe_stability_callback.MoEStabilityCallback
478
+ every_n: 250
479
+ norm_monitor:
480
+ _target_: cosmos_framework.callbacks.norm_monitor.NormMonitor
481
+ every_n: 100
482
+ layer_norm_only: false
483
+ log_stat_wandb: false
484
+ model_key: null
485
+ save_s3: false
486
+ step_size: 1
487
+ track_activations: false
488
+ ofu:
489
+ _target_: cosmos_framework.callbacks.ofu.OFUCallback
490
+ every_n: 1
491
+ hit_thres: 5
492
+ param_count:
493
+ _target_: cosmos_framework.callbacks.param_count.ParamCount
494
+ save_s3: false
495
+ sequence_packing_padding:
496
+ _target_: cosmos_framework.callbacks.sequence_packing_padding.SequencePackingPadding
497
+ every_n: 50
498
+ sigma_loss_analysis:
499
+ _target_: cosmos_framework.callbacks.sigma_loss_analysis.SigmaLossAnalysis
500
+ every_n: 250
501
+ every_n_viz: 250
502
+ save_s3: false
503
+ skip_nan_step:
504
+ _target_: cosmos_framework.callbacks.skip_nan_step.SkipNaNStep
505
+ max_consecutive_nan: 20
506
+ termination_signal_checkpoint:
507
+ _target_: cosmos_framework.callbacks.termination_signal_checkpoint.TerminationSignalCheckpoint
508
+ min_save_fraction: 0.3333333333333333
509
+ training_stats:
510
+ log_freq: 50
511
+ wandb:
512
+ _target_: cosmos_framework.utils.callback.WandBCallback
513
+ config: null
514
+ trainer: null
515
+ wandb_2x:
516
+ _target_: cosmos_framework.callbacks.wandb_log.WandbCallback
517
+ logging_iter_multipler: 2
518
+ save_logging_iter_multipler: 1
519
+ save_s3: false
520
+ wandb_val:
521
+ _target_: cosmos_framework.callbacks.wandb_log_eval.WandbCallback
522
+ save_s3: false
523
+ compile_config:
524
+ recompile_limit: 8
525
+ use_duck_shape: false
526
+ cudnn:
527
+ benchmark: true
528
+ deterministic: false
529
+ ddp:
530
+ broadcast_buffers: true
531
+ find_unused_parameters: false
532
+ static_graph: true
533
+ distributed_parallelism: fsdp
534
+ grad_accum_iter: 2
535
+ grad_scaler_args:
536
+ enabled: false
537
+ logging_iter: 1
538
+ max_iter: 500
539
+ max_val_iter: null
540
+ memory_format: torch.preserve_format
541
+ profiling:
542
+ enable_memory_snapshot: false
543
+ enable_nsys: false
544
+ enable_profiling: false
545
+ profile_freq: 1
546
+ profile_memory: false
547
+ profile_warmup: 3
548
+ record_shape: false
549
+ save_s3: false
550
+ target_ranks:
551
+ - 0
552
+ - 1
553
+ - 2
554
+ - 3
555
+ - 4
556
+ - 5
557
+ - 6
558
+ - 7
559
+ with_modules: true
560
+ with_stack: true
561
+ run_validation: false
562
+ run_validation_on_start: false
563
+ save_zero_checkpoint: false
564
+ seed: 42
565
+ straggler_detection:
566
+ analyze_backward: true
567
+ analyze_dataloading: true
568
+ analyze_forward: true
569
+ analyze_optimizer: true
570
+ enabled: false
571
+ max_diff: 2.0
572
+ profile_freq: 1
573
+ raise_error: true
574
+ report_freq: 100
575
+ save_s3: false
576
+ timeout_period: 999999999
577
+ type: cosmos_framework.trainer.ImaginaireTrainer
578
+ validation_iter: 100
579
+ upload_reproducible_setup: false
eval/panel_split_eval.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "summary": {
3
+ "pairs": 6,
4
+ "frames": 96,
5
+ "fds_l1": 0.10825488654275735,
6
+ "psnr": 19.834633774834757,
7
+ "ssim": 0.6973526945771075,
8
+ "temporal_l1_pred": 0.0020766207211030028,
9
+ "temporal_l1_gt": 0.0025864716541642943
10
+ },
11
+ "pairs": [
12
+ {
13
+ "id": "iter500_sample_01_panel_split_proxy",
14
+ "frames": 16,
15
+ "fds_l1": 0.10898986458778381,
16
+ "psnr": 19.792528995507503,
17
+ "ssim": 0.6962122157515572,
18
+ "temporal_l1_pred": 0.0014819849748164415,
19
+ "temporal_l1_gt": 0.0020682814065366983
20
+ },
21
+ {
22
+ "id": "iter500_sample_02_panel_split_proxy",
23
+ "frames": 16,
24
+ "fds_l1": 0.11207861406728625,
25
+ "psnr": 19.54693375318002,
26
+ "ssim": 0.6829663959966971,
27
+ "temporal_l1_pred": 0.0015497386921197176,
28
+ "temporal_l1_gt": 0.002178129041567445
29
+ },
30
+ {
31
+ "id": "iter500_sample_03_panel_split_proxy",
32
+ "frames": 16,
33
+ "fds_l1": 0.10882424796000123,
34
+ "psnr": 19.80114020931804,
35
+ "ssim": 0.6956879705140837,
36
+ "temporal_l1_pred": 0.0015882906736806035,
37
+ "temporal_l1_gt": 0.0020795464515686035
38
+ },
39
+ {
40
+ "id": "iter500_sample_04_panel_split_proxy",
41
+ "frames": 16,
42
+ "fds_l1": 0.10796697996556759,
43
+ "psnr": 19.894510024031884,
44
+ "ssim": 0.7000528106018877,
45
+ "temporal_l1_pred": 0.001966457813978195,
46
+ "temporal_l1_gt": 0.002264966955408454
47
+ },
48
+ {
49
+ "id": "iter500_sample_05_panel_split_proxy",
50
+ "frames": 16,
51
+ "fds_l1": 0.10611114325001836,
52
+ "psnr": 19.990045384028463,
53
+ "ssim": 0.7056552884656669,
54
+ "temporal_l1_pred": 0.002712992485612631,
55
+ "temporal_l1_gt": 0.0031864845659583807
56
+ },
57
+ {
58
+ "id": "iter500_sample_06_panel_split_proxy",
59
+ "frames": 16,
60
+ "fds_l1": 0.10555846942588687,
61
+ "psnr": 19.982644282942633,
62
+ "ssim": 0.7035414861327526,
63
+ "temporal_l1_pred": 0.003160259686410427,
64
+ "temporal_l1_gt": 0.003741421503946185
65
+ }
66
+ ]
67
+ }
eval/panel_split_pairs.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "iter500_sample_01_panel_split_proxy",
4
+ "prediction": "artifacts/final_renders/iter_000000500/eval_pairs/sample_01_pred_top.mp4",
5
+ "ground_truth": "artifacts/final_renders/iter_000000500/eval_pairs/sample_01_ref_bottom.mp4"
6
+ },
7
+ {
8
+ "id": "iter500_sample_02_panel_split_proxy",
9
+ "prediction": "artifacts/final_renders/iter_000000500/eval_pairs/sample_02_pred_top.mp4",
10
+ "ground_truth": "artifacts/final_renders/iter_000000500/eval_pairs/sample_02_ref_bottom.mp4"
11
+ },
12
+ {
13
+ "id": "iter500_sample_03_panel_split_proxy",
14
+ "prediction": "artifacts/final_renders/iter_000000500/eval_pairs/sample_03_pred_top.mp4",
15
+ "ground_truth": "artifacts/final_renders/iter_000000500/eval_pairs/sample_03_ref_bottom.mp4"
16
+ },
17
+ {
18
+ "id": "iter500_sample_04_panel_split_proxy",
19
+ "prediction": "artifacts/final_renders/iter_000000500/eval_pairs/sample_04_pred_top.mp4",
20
+ "ground_truth": "artifacts/final_renders/iter_000000500/eval_pairs/sample_04_ref_bottom.mp4"
21
+ },
22
+ {
23
+ "id": "iter500_sample_05_panel_split_proxy",
24
+ "prediction": "artifacts/final_renders/iter_000000500/eval_pairs/sample_05_pred_top.mp4",
25
+ "ground_truth": "artifacts/final_renders/iter_000000500/eval_pairs/sample_05_ref_bottom.mp4"
26
+ },
27
+ {
28
+ "id": "iter500_sample_06_panel_split_proxy",
29
+ "prediction": "artifacts/final_renders/iter_000000500/eval_pairs/sample_06_pred_top.mp4",
30
+ "ground_truth": "artifacts/final_renders/iter_000000500/eval_pairs/sample_06_ref_bottom.mp4"
31
+ }
32
+ ]
eval/renders/cosmos3_nanoh_dvrk_iter500_rollout_grid.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8faf7cb8f6ed3472af571afdff3811642d06ade4cf32a305d8b9c6ca3f91d0f
3
+ size 66224
eval/renders/cosmos3_nanoh_dvrk_iter500_rollout_grid_poster.jpg ADDED

Git LFS Details

  • SHA256: 9d6e6bb749a87c2c0a02a1d140b4ee560300eed6880604ff7444613330ecc040
  • Pointer size: 130 Bytes
  • Size of remote file: 72.4 kB
metadata/dvrk_registry.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cosmos_root": "/workspace/cosmos/packages/cosmos3",
3
+ "was_registered": false,
4
+ "dvrk": {
5
+ "dvrk": {
6
+ "domain_id": 22,
7
+ "raw_action_dim": 20
8
+ },
9
+ "dvrk_dual_psm": {
10
+ "domain_id": 22,
11
+ "raw_action_dim": 20
12
+ },
13
+ "dvrk_lerobot": {
14
+ "domain_id": 22,
15
+ "raw_action_dim": 20
16
+ },
17
+ "open_h_dvrk": {
18
+ "domain_id": 22,
19
+ "raw_action_dim": 20
20
+ }
21
+ }
22
+ }
metadata/remote_dryrun_config.txt ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * model: {'config': {'tokenizer': {'bucket_name': '', 'object_store_credential_path_pretrained': '', 'vae_path': '/workspace/cosmos/checkpoints/wan22_vae/Wan2.2_VAE.pth', 'chunk_duration': 93, 'keep_decoder_cache': False, 'use_streaming_encode': False, 'encode_chunk_frames': {'256': 68, '480': 24, '720': 12}, 'encode_exact_durations': None, 'spatial_compression_factor': 16, 'temporal_compression_factor': 4, 'temporal_window': None, 'encode_bucket_multiple': None, '_target_': <class 'cosmos_framework.model.vfm.tokenizers.wan2pt2_vae_4x16x16.Wan2pt2VAEInterface'>}, 'net': None, 'ema': {'enabled': False, 'rate': 0.1, 'iteration_shift': 0}, 'parallelism': {'data_parallel_shard_degree': -1, 'data_parallel_replicate_degree': 1, 'context_parallel_shard_degree': 1, 'cfg_parallel_shard_degree': 1, 'enable_inference_mode': False, 'fsdp_master_dtype': 'float32'}, 'compile': {'enabled': False, 'compiled_region': 'language', 'compile_dynamic': True, 'use_cuda_graphs': False, 'max_autotune_pointwise': False, 'coordinate_descent_tuning': False}, 'activation_checkpointing': {'mode': 'full', 'save_ops_regex': ['fmha'], 'preserve_rng_state': True, 'determinism_check': 'default'}, 'precision': 'bfloat16', 'lora_enabled': False, 'lora_rank': 16, 'lora_alpha': 32, 'lora_target_modules': 'q_proj_moe_gen,k_proj_moe_gen,v_proj_moe_gen,o_proj_moe_gen', 'rectified_flow_training_config': {'shift': {'256': 3, '480': 5, '720': 10}, 'use_dynamic_shift': False, 'train_time_image_distribution': 'logitnormal', 'train_time_video_distribution': 'waver', 'train_time_action_distribution': 'logitnormal', 'train_time_sound_distribution': 'logitnormal', 'train_time_weight': 'uniform', 'loss_scale': 1.0, 'image_loss_scale': 1.0, 'sound_loss_scale': None, 'use_high_sigma_strategy': False, 'high_sigma_ratio': 0.05, 'high_sigma_timesteps_min': 995, 'high_sigma_timesteps_max': 1000, 'use_discrete_rf': False, 'action_loss_weight': 10.0, 'independent_action_schedule': False, 'shift_action': None, 'use_high_sigma_strategy_action': False, 'independent_sound_schedule': False, 'shift_sound': None, 'use_high_sigma_strategy_sound': False, 'normalize_loss_by_active': False}, 'rectified_flow_inference_config': {'scheduler_type': 'unipc', 'num_train_timesteps': 1000, 'shift': 1, 'use_dynamic_shifting': False}, 'fixed_step_sampler_config': None, 'vlm_config': {'model_name': 'Qwen/Qwen3-VL-8B-Instruct', 'safetensors_path': '', 'pretrained_weights': {'enabled': False, 'backbone_path': 's3://bucket0/cosmos3/pretrained/huggingface/Qwen/Qwen3-VL-8B-Instruct/', 'credentials_path': '', 'enable_gcs_patch_in_boto3': True, 'checkpoint_format': None}, 'model_instance': {'config': {'base_config': {'json_file': 'cosmos_framework/model/vfm/vlm/qwen3_vl/configs/Qwen3-VL-8B-Instruct.json', '_target_': <bound method _MoTConfigBase.from_json_file of <class 'cosmos_framework.model.vfm.mot.unified_mot.Qwen3VLMoTConfig'>>}, 'freeze_und': False, 'layer_module': 'MoTDecoderLayer', 'qk_norm_for_text': True, 'tie_word_embeddings': True, '_target_': <function create_vlm_config at 0x7fc4c2ecc860>}, '_target_': <class 'cosmos_framework.model.vfm.mot.unified_mot.Qwen3VLTextForCausalLM'>}, 'tokenizer': {'config_variant': 'hf', 'pretrained_model_name': 'Qwen/Qwen3-VL-8B-Instruct', '_target_': <function create_qwen2_tokenizer_with_download at 0x7fc4608ffba0>}, 'layer_module': 'Qwen2MoTDecoderLayer', 'qk_norm': False, 'tie_word_embeddings': False, 'use_system_prompt': False}, 'diffusion_expert_config': {'timestep_range': 1.0, 'load_weights_from_pretrained': True, 'patch_spatial': 2, 'max_vae_latent_side_after_patchify': 20, 'position_embedding_type': 'unified_3d_mrope', 'rope_h_extrapolation_ratio': 1.0, 'rope_w_extrapolation_ratio': 1.0, 'rope_t_extrapolation_ratio': 1.0, 'enable_fps_modulation': True, 'base_fps': 24, 'unified_3d_mrope_reset_spatial_ids': True, 'unified_3d_mrope_temporal_modality_margin': 15000}, 'input_video_key': 'video', 'input_image_key': 'images', 'input_caption_key': 'ai_caption', 'state_ch': 48, 'state_t': 300, 'latent_downsample_factor': 16, 'resolution': '256', 'max_num_tokens_after_packing': 32768, 'joint_attn_implementation': 'flex', 'natten_parameter_list': None, 'video_temporal_causal': False, 'causal_training_strategy': 'none', 'lbl': {'method': 'local', 'coeff_und': None, 'coeff_gen': None}, 'vision_gen': True, 'action_gen': True, 'max_action_dim': 64, 'num_embodiment_domains': 32, 'sound_gen': False, 'sound_tokenizer': None, 'sound_dim': None, 'sound_latent_fps': 25, 'log_enc_time_every_n': 100}, '_recursive_': False, '_target_': <class 'cosmos_framework.model.vfm.omni_mot_model.OmniMoTModel'>}
2
+ * optimizer: {'model': None, 'optimizer_type': 'AdamW', 'lr': 2e-05, 'weight_decay': 0, 'betas': [0.9, 0.95], 'eps': 1e-06, 'fused': True, 'keys_to_select': ['moe_gen', 'time_embedder', 'vae2llm', 'llm2vae', 'action2llm', 'llm2action', 'action_modality_embed', 'q_proj_moe_gen', 'k_proj_moe_gen', 'v_proj_moe_gen', 'o_proj_moe_gen'], 'lr_multipliers': {}, 'disable_weight_decay_for_1d_params': False, '_target_': <function build_optimizer at 0x7fc45f832700>}
3
+ * scheduler: {'optimizer': None, 'lr_scheduler_type': 'LambdaCosine', 'warm_up_steps': [50], 'cycle_lengths': [1000], 'f_start': [0.0], 'f_max': [1.0], 'f_min': [0.0], 'verbosity_interval': 0, '_target_': <function build_lr_scheduler at 0x7fc45f832ca0>}
4
+ * dataloader_train: {'max_sequence_length': 32768, 'max_samples_per_batch': None, 'sound_latent_fps': 0, 'audio_sample_rate': 48000, 'dataset_name': 'dvrk_openh', 'lookahead_limit': 10, 'patch_spatial': 2, 'tokenizer_spatial_compression_factor': 16, 'tokenizer_temporal_compression_factor': 4, 'dataloader': {'batch_size': 1, 'in_order': True, 'num_workers': 4, 'persistent_workers': True, 'pin_memory': True, 'prefetch_factor': 4, 'sampler': None, 'datasets': {'dvrk_openh': {'ratio': 1, 'dataset': {'fps': None, 'chunk_length': 16, 'mode': 'all', 'resolution': '256', 'video_key': 'auto', 'normalization_path': '/workspace/cosmos-3-NanoH-Surgical/artifacts/manifests/dvrk_action_stats.json', 'normalize_action': True, 'mode_weights': {'forward_dynamics': 1.0, 'inverse_dynamics': 1.0, 'policy': 1.0}, 'load_video': True, 'apply_cosmos_transform': True, 'tokenizer_config': {'config_variant': 'hf', 'pretrained_model_name': 'Qwen/Qwen3-VL-8B-Instruct', '_target_': <function create_qwen2_tokenizer_with_download at 0x7fc4608ffba0>}, 'cfg_dropout_rate': 0.1, 'max_action_dim': 64, 'max_roots': 0, 'max_windows_per_root': 0, 'shard_world_size': 1, 'shard_rank': 0, 'local_root': '/workspace/cosmos-3-NanoH-Surgical/data/openh_snapshot', 'manifest_path': '/workspace/cosmos-3-NanoH-Surgical/artifacts/manifests/openh_dvrk_manifest.train.json', '_target_': <class 'cosmos3_nanoh_surgical.dataset.OpenHDVRKLeRobotDataset'>}}}, '_target_': <class 'cosmos_framework.data.vfm.joint_dataloader.RankPartitionedDataLoader'>}, '_target_': <class 'cosmos_framework.data.vfm.joint_dataloader.PackingDataLoader'>}
5
+ * dataloader_val: None
6
+ * job:
7
+ * project: cosmos3-nanoh-surgical
8
+ * group: dvrk-openh
9
+ * name: cosmos3_nanoh_dvrk_all_objective_chunk16_singlecam
10
+ * wandb_mode: online
11
+ * cluster: None
12
+ * trainer:
13
+ * type: <class 'cosmos_framework.trainer.ImaginaireTrainer'>
14
+ * callbacks: {'iter_speed': {'hit_thres': 50, 'save_s3': False, 'save_s3_every_log_n': 500, 'every_n': 1, '_target_': <class 'cosmos_framework.callbacks.iter_speed.IterSpeed'>}, 'manual_gc': {'warm_up': 1, 'gc_level': 1, 'every_n': 5, '_target_': <class 'cosmos_framework.callbacks.manual_gc.ManualGarbageCollection'>}, 'wandb': {'config': None, 'trainer': None, '_target_': <class 'cosmos_framework.utils.callback.WandBCallback'>}, 'wandb_2x': {'logging_iter_multipler': 2, 'save_logging_iter_multipler': 1, 'save_s3': False, '_target_': <class 'cosmos_framework.callbacks.wandb_log.WandbCallback'>}, 'param_count': {'save_s3': False, '_target_': <class 'cosmos_framework.callbacks.param_count.ParamCount'>}, 'wandb_val': {'save_s3': False, '_target_': <class 'cosmos_framework.callbacks.wandb_log_eval.WandbCallback'>}, 'moe_stability': {'every_n': 250, '_target_': <class 'cosmos_framework.callbacks.moe_stability_callback.MoEStabilityCallback'>}, 'moe_specialization': {'every_n': 250, '_target_': <class 'cosmos_framework.callbacks.moe_specialization_callback.MoESpecializationCallback'>}, 'expert_heatmap': {'every_n': 1000, '_target_': <class 'cosmos_framework.callbacks.expert_heatmap.ExpertHeatmap'>}, 'load_pretrained': {'config': None, 'trainer': None, '_target_': <class 'cosmos_framework.callbacks.load_pretrained.LoadPretrained'>}, 'compile_tokenizer': {'enabled': False, 'compile_after_iterations': 3, 'warmup_resolutions': None, '_target_': <class 'cosmos_framework.callbacks.compile_tokenizer.CompileTokenizer'>}, 'norm_monitor': {'every_n': 100, 'step_size': 1, 'layer_norm_only': False, 'model_key': None, 'log_stat_wandb': False, 'save_s3': False, 'track_activations': False, '_target_': <class 'cosmos_framework.callbacks.norm_monitor.NormMonitor'>}, 'sigma_loss_analysis': {'every_n': 250, 'every_n_viz': 250, 'save_s3': False, '_target_': <class 'cosmos_framework.callbacks.sigma_loss_analysis.SigmaLossAnalysis'>}, 'sequence_packing_padding': {'every_n': 50, '_target_': <class 'cosmos_framework.callbacks.sequence_packing_padding.SequencePackingPadding'>}, 'mfu': {'backwardpass_ratio': 2.0, 'hit_thres': 5, 'include_vae_encoder': True, 'include_padding': True, 'grad_accum_iter': 2, 'every_n': 1, '_target_': <class 'cosmos_framework.callbacks.mfu.MFUCallback'>}, 'ofu': {'hit_thres': 5, 'every_n': 1, '_target_': <class 'cosmos_framework.callbacks.ofu.OFUCallback'>}, 'skip_nan_step': {'max_consecutive_nan': 20, '_target_': <class 'cosmos_framework.callbacks.skip_nan_step.SkipNaNStep'>}, 'grad_clip': {'clip_norm': 0.1, 'force_finite': True, 'track_per_modality': True, '_target_': <class 'cosmos_framework.callbacks.grad_clip.GradClip'>}, 'low_precision': {'update_iter': 1, 'config': None, 'trainer': None, '_target_': <class 'cosmos_framework.utils.callback.LowPrecisionCallback'>}, 'heart_beat': {'step_size': 1, 'update_interval_in_minute': 10, 'save_s3': False, 'every_n': 100, '_target_': <class 'cosmos_framework.callbacks.heart_beat.HeartBeat'>}, 'device_monitor': {'every_n': 100, 'step_size': 1, 'save_s3': False, 'upload_every_n_mul': 5, 'log_memory_detail': True, '_target_': <class 'cosmos_framework.callbacks.device_monitor.DeviceMonitor'>}, 'termination_signal_checkpoint': {'min_save_fraction': 0.3333333333333333, '_target_': <class 'cosmos_framework.callbacks.termination_signal_checkpoint.TerminationSignalCheckpoint'>}, 'every_n_sample_reg': {'step_size': 1, 'n_viz_sample': 1, 'n_sample_to_save': 8, 'num_sampling_step': 16, 'guidance': [3.0], 'do_x0_prediction': False, 'n_sigmas_for_x0_prediction': 4, 'save_s3': False, 'save_local': True, 'is_ema': False, 'use_negative_prompt': False, 'prompt_type': 't5_xxl', 'fps': 16, 'run_at_start': False, 'every_n': 100, '_target_': <class 'cosmos_framework.callbacks.every_n_draw_sample.EveryNDrawSample'>}, 'every_n_sample_ema': {'step_size': 1, 'n_viz_sample': 2, 'n_sample_to_save': 128, 'num_sampling_step': 35, 'guidance': [0.0, 3.0, 7.0], 'do_x0_prediction': False, 'n_sigmas_for_x0_prediction': 4, 'save_s3': False, 'save_local': False, 'is_ema': True, 'use_negative_prompt': False, 'prompt_type': 't5_xxl', 'fps': 16, 'run_at_start': False, 'every_n': 100, '_target_': <class 'cosmos_framework.callbacks.every_n_draw_sample.EveryNDrawSample'>}, 'dataloader_speed': {'every_n': 100, 'save_s3': False, 'step_size': 1}, 'training_stats': {'log_freq': 50}}
15
+ * distributed_parallelism: fsdp
16
+ * ddp:
17
+ * find_unused_parameters: False
18
+ * static_graph: True
19
+ * broadcast_buffers: True
20
+ * cudnn:
21
+ * deterministic: False
22
+ * benchmark: True
23
+ * seed: 42
24
+ * grad_scaler_args: {'enabled': False}
25
+ * max_iter: 500
26
+ * max_val_iter: None
27
+ * logging_iter: 1
28
+ * run_validation: False
29
+ * validation_iter: 100
30
+ * run_validation_on_start: False
31
+ * timeout_period: 999999999
32
+ * memory_format: torch.preserve_format
33
+ * grad_accum_iter: 2
34
+ * straggler_detection:
35
+ * enabled: False
36
+ * report_freq: 100
37
+ * profile_freq: 1
38
+ * max_diff: 2.0
39
+ * raise_error: True
40
+ * analyze_forward: True
41
+ * analyze_backward: True
42
+ * analyze_optimizer: True
43
+ * analyze_dataloading: True
44
+ * save_s3: False
45
+ * profiling:
46
+ * enable_profiling: False
47
+ * enable_nsys: False
48
+ * enable_memory_snapshot: False
49
+ * save_s3: False
50
+ * profile_freq: 1
51
+ * profile_warmup: 3
52
+ * target_ranks: [0, 1, 2, 3, 4, 5, 6, 7]
53
+ * record_shape: False
54
+ * profile_memory: False
55
+ * with_stack: True
56
+ * with_modules: True
57
+ * compile_config:
58
+ * recompile_limit: 8
59
+ * use_duck_shape: False
60
+ * save_zero_checkpoint: False
61
+ * model_parallel: ModelParallelConfig(tensor_model_parallel_size=1, pipeline_model_parallel_comm_backend=None, pipeline_model_parallel_size=1, virtual_pipeline_model_parallel_size=None, sequence_parallel=False, context_parallel_size=1, hierarchical_context_parallel_sizes=None, expert_model_parallel_size=1, expert_tensor_parallel_size=1, moe_extended_tp=False, perform_initialization=True, use_cpu_initialization=False, fp16=False, bf16=False, params_dtype=torch.float32, timers=None, finalize_model_grads_func=None, grad_scale_func=None, no_sync_func=None, grad_sync_func=None, param_sync_func=None, deterministic_mode=False, enable_autocast=False, autocast_dtype=torch.float32, num_microbatches_with_partial_activation_checkpoints=None, gradient_accumulation_fusion=False, async_tensor_model_parallel_allreduce=False, use_te_rng_tracker=False, tp_comm_overlap=False, tp_comm_bulk_wgrad=True, tp_comm_bulk_dgrad=True, tp_comm_overlap_ag=True, tp_comm_overlap_rs=True, tp_comm_overlap_rs_dgrad=False, tp_comm_split_ag=True, tp_comm_atomic_ag=False, tp_comm_split_rs=True, tp_comm_atomic_rs=False, cross_entropy_loss_fusion=False, cross_entropy_fusion_impl='native', tp_comm_overlap_disable_qkv=False, tp_comm_overlap_disable_fc1=False, tp_comm_bootstrap_backend='nccl', overlap_moe_expert_parallel_comm=False, delay_wgrad_compute=False, ep_overlap_early_attn_memory_release=False, pipeline_dtype=None, variable_seq_lengths=False, overlap_p2p_comm=False, batch_p2p_comm=True, batch_p2p_sync=True, use_ring_exchange_p2p=False, deallocate_pipeline_outputs=False, defer_embedding_wgrad_compute=False, wgrad_deferral_limit=0, overlap_p2p_comm_warmup_flush=False, microbatch_group_size_per_vp_stage=1, cpu_offloading=False, cpu_offloading_num_layers=0, _cpu_offloading_context=None, cpu_offloading_activations=True, cpu_offloading_weights=False, cpu_offloading_double_buffering=False, barrier_with_L1_time=True)
62
+ * checkpoint:
63
+ * type: {'callbacks': None, 'disable_async': False, '_target_': <class 'cosmos_framework.checkpoint.dcp.DistributedCheckpointer'>}
64
+ * dcp_async_mode_enabled: False
65
+ * save_to_object_store:
66
+ * enabled: False
67
+ * credentials:
68
+ * bucket:
69
+ * save_iter: 100
70
+ * strict_resume: True
71
+ * load_from_object_store:
72
+ * enabled: False
73
+ * credentials:
74
+ * bucket:
75
+ * load_path: /workspace/cosmos/checkpoints/Cosmos3-Nano-DCP
76
+ * load_training_state: False
77
+ * only_load_scheduler_state: False
78
+ * keys_to_skip_loading: ['net_ema.']
79
+ * jit:
80
+ * enabled: False
81
+ * input_shape: None
82
+ * device: cuda
83
+ * dtype: bfloat16
84
+ * strict: True
85
+ * verbose: True
86
+ * keys_not_to_resume: []
87
+ * broadcast_via_filesystem: False
88
+ * load_ema_to_reg: False
89
+ * enable_gcs_patch_in_boto3: True
90
+ * hf_export:
91
+ * enabled: False
92
+ * hf_repo_id: None
93
+ * upload_to_object_store:
94
+ * enabled: False
95
+ * credentials:
96
+ * bucket:
97
+ * export_every_n: 1
98
+ * upload_reproducible_setup: False
99
+ * data_setting:
100
+ * qwen_max_video_token_length: 8192
101
+ * defaults: ['_self_', {'model': 'mot_fsdp'}, {'data_train': None}, {'data_val': None}, {'optimizer': 'adamw'}, {'scheduler': 'warmup_cosine_lr'}, {'checkpoint': 's3'}, {'callbacks': ['basic', 'optimization', 'job_monitor', 'generation']}, {'ema': 'power'}, {'tokenizer': 'wan2pt2_tokenizer'}, {'sound_tokenizer': None}, {'cluster': 'default'}, {'vlm_config': None}, {'ckpt_type': 'dcp'}, {'experiment': None}]
102
+ /workspace/cosmos-3-NanoH-Surgical/outputs/cosmos3-nanoh-surgical/dvrk-openh/cosmos3_nanoh_dvrk_all_objective_chunk16_singlecam/config.dryrun.txt
model/checkpoint.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "checkpoint_cache_dir": null,
3
+ "checkpoint_hf": null,
4
+ "checkpoint_path": "/workspace/cosmos-3-NanoH-Surgical/outputs/cosmos3-nanoh-surgical/dvrk-openh/cosmos3_nanoh_dvrk_all_objective_chunk16_singlecam/checkpoints/iter_000000500/model",
5
+ "checkpoint_type": "dcp",
6
+ "config_file": "/workspace/cosmos-3-NanoH-Surgical/outputs/cosmos3-nanoh-surgical/dvrk-openh/cosmos3_nanoh_dvrk_all_objective_chunk16_singlecam/config.yaml",
7
+ "config_file_type": "yaml",
8
+ "credential_path": "credentials/gcp_checkpoint.secret",
9
+ "experiment": "",
10
+ "experiment_overrides": [
11
+ "model.config.diffusion_expert_config.load_weights_from_pretrained=False",
12
+ "model.config.vlm_config.pretrained_weights.enabled=False",
13
+ "checkpoint.load_from_object_store.enabled=False"
14
+ ],
15
+ "model_memory_bytes": null,
16
+ "use_ema_weights": false
17
+ }
model/config.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Cosmos3OmniModel"
4
+ ],
5
+ "auto_map": {
6
+ "AutoConfig": "cosmos3.model.Cosmos3OmniConfig",
7
+ "AutoModel": "cosmos3.model.Cosmos3OmniModel"
8
+ },
9
+ "dtype": "bfloat16",
10
+ "model": {
11
+ "_recursive_": false,
12
+ "_target": "omni_mot_model",
13
+ "config": {
14
+ "action_gen": true,
15
+ "activation_checkpointing": {
16
+ "determinism_check": "default",
17
+ "mode": "full",
18
+ "preserve_rng_state": true,
19
+ "save_ops_regex": [
20
+ "fmha"
21
+ ]
22
+ },
23
+ "causal_training_strategy": "none",
24
+ "compile": {
25
+ "compile_dynamic": true,
26
+ "compiled_region": "language",
27
+ "coordinate_descent_tuning": false,
28
+ "enabled": false,
29
+ "max_autotune_pointwise": false,
30
+ "use_cuda_graphs": false
31
+ },
32
+ "diffusion_expert_config": {
33
+ "base_fps": 24,
34
+ "enable_fps_modulation": true,
35
+ "load_weights_from_pretrained": true,
36
+ "max_vae_latent_side_after_patchify": 20,
37
+ "patch_spatial": 2,
38
+ "position_embedding_type": "unified_3d_mrope",
39
+ "rope_h_extrapolation_ratio": 1.0,
40
+ "rope_t_extrapolation_ratio": 1.0,
41
+ "rope_w_extrapolation_ratio": 1.0,
42
+ "timestep_range": 1.0,
43
+ "unified_3d_mrope_reset_spatial_ids": true,
44
+ "unified_3d_mrope_temporal_modality_margin": 15000
45
+ },
46
+ "ema": {
47
+ "enabled": false,
48
+ "iteration_shift": 0,
49
+ "rate": 0.1
50
+ },
51
+ "fixed_step_sampler_config": null,
52
+ "input_caption_key": "ai_caption",
53
+ "input_image_key": "images",
54
+ "input_video_key": "video",
55
+ "joint_attn_implementation": "flex",
56
+ "latent_downsample_factor": 16,
57
+ "lbl": {
58
+ "coeff_gen": null,
59
+ "coeff_und": null,
60
+ "method": "local"
61
+ },
62
+ "log_enc_time_every_n": 100,
63
+ "lora_alpha": 32,
64
+ "lora_enabled": false,
65
+ "lora_rank": 16,
66
+ "lora_target_modules": "q_proj_moe_gen,k_proj_moe_gen,v_proj_moe_gen,o_proj_moe_gen",
67
+ "max_action_dim": 64,
68
+ "max_num_tokens_after_packing": 32768,
69
+ "natten_parameter_list": null,
70
+ "net": null,
71
+ "num_embodiment_domains": 32,
72
+ "parallelism": {
73
+ "cfg_parallel_shard_degree": 1,
74
+ "context_parallel_shard_degree": 1,
75
+ "data_parallel_replicate_degree": 1,
76
+ "data_parallel_shard_degree": -1,
77
+ "enable_inference_mode": false,
78
+ "fsdp_master_dtype": "float32"
79
+ },
80
+ "precision": "bfloat16",
81
+ "rectified_flow_inference_config": {
82
+ "num_train_timesteps": 1000,
83
+ "scheduler_type": "unipc",
84
+ "shift": 1,
85
+ "use_dynamic_shifting": false
86
+ },
87
+ "rectified_flow_training_config": {
88
+ "action_loss_weight": 10.0,
89
+ "high_sigma_ratio": 0.05,
90
+ "high_sigma_timesteps_max": 1000,
91
+ "high_sigma_timesteps_min": 995,
92
+ "image_loss_scale": 1.0,
93
+ "independent_action_schedule": false,
94
+ "independent_sound_schedule": false,
95
+ "loss_scale": 1.0,
96
+ "normalize_loss_by_active": false,
97
+ "shift": {
98
+ "256": 3,
99
+ "480": 5,
100
+ "720": 10
101
+ },
102
+ "shift_action": null,
103
+ "shift_sound": null,
104
+ "sound_loss_scale": null,
105
+ "train_time_action_distribution": "logitnormal",
106
+ "train_time_image_distribution": "logitnormal",
107
+ "train_time_sound_distribution": "logitnormal",
108
+ "train_time_video_distribution": "waver",
109
+ "train_time_weight": "uniform",
110
+ "use_discrete_rf": false,
111
+ "use_dynamic_shift": false,
112
+ "use_high_sigma_strategy": false,
113
+ "use_high_sigma_strategy_action": false,
114
+ "use_high_sigma_strategy_sound": false
115
+ },
116
+ "resolution": "256",
117
+ "sound_dim": null,
118
+ "sound_gen": false,
119
+ "sound_latent_fps": 25,
120
+ "sound_tokenizer": null,
121
+ "state_ch": 48,
122
+ "state_t": 300,
123
+ "tokenizer": {
124
+ "_target": "wan2pt2_vae_interface",
125
+ "bucket_name": "",
126
+ "chunk_duration": 93,
127
+ "encode_bucket_multiple": null,
128
+ "encode_chunk_frames": {
129
+ "256": 68,
130
+ "480": 24,
131
+ "720": 12
132
+ },
133
+ "encode_exact_durations": null,
134
+ "keep_decoder_cache": false,
135
+ "object_store_credential_path_pretrained": "",
136
+ "spatial_compression_factor": 16,
137
+ "temporal_compression_factor": 4,
138
+ "temporal_window": null,
139
+ "use_streaming_encode": false,
140
+ "vae_path": "/workspace/cosmos/checkpoints/wan22_vae/Wan2.2_VAE.pth"
141
+ },
142
+ "video_temporal_causal": false,
143
+ "vision_gen": true,
144
+ "vlm_config": {
145
+ "layer_module": "Qwen2MoTDecoderLayer",
146
+ "model_instance": {
147
+ "_target": "qwen3_vl_text_for_causal_lm",
148
+ "config": {
149
+ "_target": "create_vlm_config",
150
+ "base_config": {
151
+ "_target": "qwen3_vl_mot_config_from_json_file",
152
+ "json_file": "cosmos3://vfm/models/vlm/qwen3_vl/configs/Qwen3-VL-8B-Instruct.json"
153
+ },
154
+ "freeze_und": false,
155
+ "layer_module": "MoTDecoderLayer",
156
+ "qk_norm_for_text": true,
157
+ "tie_word_embeddings": true
158
+ }
159
+ },
160
+ "model_name": "Qwen/Qwen3-VL-8B-Instruct",
161
+ "pretrained_weights": {
162
+ "backbone_path": "s3://bucket0/cosmos3/pretrained/huggingface/Qwen/Qwen3-VL-8B-Instruct/",
163
+ "checkpoint_format": null,
164
+ "credentials_path": "",
165
+ "enable_gcs_patch_in_boto3": true,
166
+ "enabled": false
167
+ },
168
+ "qk_norm": false,
169
+ "safetensors_path": "",
170
+ "tie_word_embeddings": false,
171
+ "tokenizer": {
172
+ "_target": "create_qwen2_tokenizer_with_download",
173
+ "config_variant": "hf",
174
+ "pretrained_model_name": "Qwen/Qwen3-VL-8B-Instruct"
175
+ },
176
+ "use_system_prompt": false
177
+ }
178
+ }
179
+ },
180
+ "model_type": "cosmos3_omni",
181
+ "transformers_version": "4.57.6"
182
+ }
model/model-00001-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea35780c9fc04900a44ae9960c4ee4d346f9beb69175e8dba398a32c41f1e72e
3
+ size 4902252400
model/model-00002-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53aab3a41653c8d285ce143997c65bebb6582d46ba2042523ec019d2ca3bd1b7
3
+ size 4999868488