moojink-nv commited on
Commit
0db312e
·
verified ·
1 Parent(s): 6971aac

Upload folder using huggingface_hub

Browse files
Cosmos-Policy-ALOHA-Planning-Model-Predict2-2B.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01431f69c718861eb7388cb71a47221e1e00cea188294285bca82188dff4e94b
3
+ size 3913017345
README.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cosmos-Policy-ALOHA-Planning-Model-Predict2-2B
2
+
3
+ ## Model Description
4
+
5
+ Cosmos-Policy-ALOHA-Planning-Model-Predict2-2B is a refined world model and value function checkpoint fine-tuned from [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B) on policy rollout data. This checkpoint is designed to be used in conjunction with the base Cosmos Policy checkpoint for model-based planning via best-of-N search, achieving improved performance on challenging manipulation tasks. This checkpoint should NOT be deployed on its own.
6
+
7
+ **Paper**: *Cosmos Policy: Fine-Tuning Video Models for Visuomotor Control and Planning*
8
+
9
+ ### Key Features
10
+
11
+ - **Refined predictions**: Fine-tuned on policy rollout data for more accurate world model and value function predictions
12
+ - **Dual deployment**: Used alongside base Cosmos Policy checkpoint for model-based planning
13
+ - **Improved performance**: Achieves 12.5 percentage point average score increase on challenging ALOHA tasks when used for planning
14
+
15
+ ### Model Architecture
16
+
17
+ This model uses the same architecture as [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B). Please refer to that model card and the [base Cosmos-Predict2-2B model card](https://huggingface.co/nvidia/Cosmos-Predict2-2B-Video2World) for detailed architecture specifications.
18
+
19
+ ## Model Details
20
+
21
+ ### Inputs
22
+
23
+ Same as [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B):
24
+ - **Current state images**: Top-down camera, left wrist camera, right wrist camera (all 224x224 RGB)
25
+ - **Robot proprioception**: 14-dimensional (7 joint angles per arm)
26
+ - **Action chunk**: 50-timestep sequence of 14-dimensional actions (for world model and value prediction)
27
+
28
+ ### Outputs
29
+
30
+ - **Future robot proprioception**: 14-dimensional state at timestep t+50
31
+ - **Future state images**:
32
+ - Top-down third-person camera prediction at timestep t+50
33
+ - Left wrist camera prediction at timestep t+50
34
+ - Right wrist camera prediction at timestep t+50
35
+ - **Future state value**: Expected cumulative reward from future state (V(s'))
36
+
37
+ **Note**: While this checkpoint can technically generate actions like the base policy, it is specifically designed and optimized for world model and value function predictions. For action generation, please use [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B).
38
+
39
+ ### Training Details
40
+
41
+ **Base Checkpoint**: [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B)
42
+
43
+ **Fine-tuning Data**: 648 policy rollout episodes collected from various methods (see paper for details)
44
+ - Includes both successful and failed episodes
45
+ - Covers diverse initial conditions and execution trajectories
46
+ - Enables more accurate modeling of state transitions and value predictions beyond the demonstration distribution
47
+
48
+ **Training Configuration**:
49
+ - **Training steps**: Details in paper
50
+ - **Batch split**: 10/45/45 for policy/world model/value function (emphasis on world model and value function refinement)
51
+ - **GPUs**: 8 H100 GPUs
52
+
53
+ **Training Objective**: Fine-tuned with increased emphasis on world model and value function training (90% of training batches) to improve future state and value prediction accuracy for more effective planning.
54
+
55
+ ## Usage: Dual Deployment for Model-Based Planning
56
+
57
+ This checkpoint is designed for **dual deployment** with the base Cosmos Policy checkpoint:
58
+
59
+ 1. **Policy Model** ([Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B)): Generates N candidate action chunks
60
+ 2. **Planning Model** (this checkpoint): For each candidate action:
61
+ - Predicts future state (world model)
62
+ - Predicts future state value (value function)
63
+ - Averages across ensemble predictions (3 future state predictions × 5 value predictions = 15 total value estimates per action)
64
+ 3. **Selection**: Execute the action chunk with the highest predicted value
65
+
66
+ See the paper for complete implementation details of the best-of-N planning algorithm.
67
+
68
+ ## Performance
69
+
70
+ ### Planning Performance on ALOHA Tasks
71
+
72
+ When used for model-based planning with the base policy checkpoint:
73
+
74
+ | Task | Base Policy Score | With Planning (this checkpoint) | Improvement |
75
+ |------|------------------|--------------------------------|-------------|
76
+ | put candies in bowl | 49.0 | 60.0 | +11.0 |
77
+ | put candy in ziploc bag | 70.0 | 84.0 | +14.0 |
78
+ | **Average** | **60.0** | **72.0** | **+12.5** |
79
+
80
+ Results are on challenging initial conditions for these two tasks. Planning with this checkpoint enables the policy to be more likely to avoid errors (e.g., losing grasp of objects) by selecting higher-quality actions.
81
+
82
+ ## Important Usage Notes
83
+
84
+ **Inference Latency**: Model-based planning with dual deployment has significantly higher inference latency:
85
+ - **Planning mode (dual deployment)**: ~4.9 seconds per action chunk using 8 parallel H100 GPUs
86
+ - **Direct policy mode (base checkpoint only)**: ~0.95 seconds per action chunk using 1 H100 GPU
87
+
88
+ For applications requiring faster inference, we recommend using the base [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B) checkpoint alone without planning.
89
+
90
+ **Hardware Requirements**: Model-based planning requires:
91
+ - Multiple GPUs for parallelized best-of-N search (8 GPUs recommended for N=8)
92
+ - Sufficient compute for ensemble predictions (3 world model queries × 5 value function queries per action)
93
+
94
+ **When to Use Planning**: Planning is most beneficial for:
95
+ - Challenging tasks with high precision requirements
96
+ - Situations where avoiding errors is critical
97
+ - Scenarios where additional compute time is acceptable
98
+
99
+ **Same warnings as base checkpoint apply**: Hardware compatibility, 25 Hz control frequency requirement, and real-world deployment safety considerations. See [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B) model card for details.
100
+
101
+ ## Notes
102
+
103
+ - **Specialized checkpoint**: Optimized specifically for world model and value function predictions, not action generation
104
+ - **Requires base policy**: Must be used in conjunction with Cosmos-Policy-ALOHA-Predict2-2B for planning
105
+ - **Compute-intensive**: Significantly higher computational requirements than direct policy execution
106
+ - **Real-world tested**: Evaluated on real ALOHA 2 hardware in challenging manipulation scenarios
107
+
108
+ ## Citation
109
+
110
+ If you use this model, please cite the Cosmos Policy paper by Kim et al.
111
+ <!-- ```bibtex
112
+ # TODO: Add Cosmos Policy BibTeX
113
+ ``` -->
114
+
115
+ ## License
116
+
117
+ Please refer to the [base model license](https://huggingface.co/nvidia/Cosmos-Predict2-2B-Video2World) for licensing information.
118
+
119
+ ## Related Resources
120
+
121
+ - **Base Policy Checkpoint**: [Cosmos-Policy-ALOHA-Predict2-2B](https://huggingface.co/nvidia/Cosmos-Policy-ALOHA-Predict2-2B) (required for planning)
122
+ - **Base Video Model**: [Cosmos-Predict2-2B-Video2World](https://huggingface.co/nvidia/Cosmos-Predict2-2B-Video2World)
123
+ - **Paper**: *Cosmos Policy: Fine-Tuning Video Models for Visuomotor Control and Planning*