Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Commit 50e7770

Browse files
committed
undo
Signed-off-by: Pablo Garay <pagaray@nvidia.com>
1 parent 2bbd043 commit 50e7770

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

nemo_vfm/diffusion/readme.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ We support image diffusion training. Video training incoming.
2323
+---------------------------+------------------+
2424
| Parallelism | Status |
2525
+===========================+==================+
26-
| FSDP | ✅ Supported |
26+
| FSDP | Supported |
2727
+---------------------------+------------------+
28-
| CP+TP+SP+distopt | ✅ Supported |
28+
| CP+TP+SP+distopt | Supported |
2929
+---------------------------+------------------+
30-
| CP+TP+SP+PP+distopt | ✅ Supported |
30+
| CP+TP+SP+PP+distopt | Supported |
3131
+---------------------------+------------------+
32-
| CP+TP+SP+FSDP | 🕒 Coming Soon |
32+
| CP+TP+SP+FSDP | 🕐 Coming Soon |
3333
+---------------------------+------------------+
3434

3535

@@ -44,11 +44,11 @@ We support image diffusion training. Video training incoming.
4444
+--------------+-------------------+-----------------+
4545
| Model Size | Modality | Status |
4646
+==============+===================+=================+
47-
| DiT 30B+ | 256px image | ✅ Supported |
47+
| DiT 30B+ | 256px image | Supported |
4848
+--------------+-------------------+-----------------+
49-
| DiT 30B+ | 256px image+video | 🕒 Coming Soon |
49+
| DiT 30B+ | 256px image+video | 🕐 Coming Soon |
5050
+--------------+-------------------+-----------------+
51-
| DiT 30B+ | 768px image+video | 🕒 Coming Soon |
51+
| DiT 30B+ | 768px image+video | 🕐 Coming Soon |
5252
+--------------+-------------------+-----------------+
5353

5454

@@ -116,13 +116,13 @@ this will generate a folder a tar files. .pth contains image/video latent repres
116116
.. code-block:: bash
117117
118118
shard_000.tar
119-
├── samples/sample_0000.pth
120-
├── samples/sample_0000.pickle
121-
├── samples/sample_0000.json
122-
├── samples/sample_0001.pth
123-
├── samples/sample_0001.pickle
124-
├── samples/sample_0001.json
125-
└── ...
119+
├── samples/sample_0000.pth
120+
├── samples/sample_0000.pickle
121+
├── samples/sample_0000.json
122+
├── samples/sample_0001.pth
123+
├── samples/sample_0001.pickle
124+
├── samples/sample_0001.json
125+
└── ...
126126
shard_001.tar
127127
128128
The following is a sample command to prepare prepare webdataset into energon dataset:

nemo_vfm/diffusion/vae/readme.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Data Preparation
4949
.. code-block:: bash
5050
5151
000000.tar
52-
├── 1.jpg
53-
├── 2.jpg
52+
├── 1.jpg
53+
├── 2.jpg
5454
000001.tar
55-
├── 3.jpg
56-
├── 4.jpg
55+
├── 3.jpg
56+
├── 4.jpg
5757
5858
2. next we need to index the webdataset with `energon <https://nvidia.github.io/Megatron-Energon/>`_. navigate to the dataset directory and run the following command:
5959

nemo_vfm/physicalai/Cosmos/cosmos1/models/autoregressive/nemo/post_training/tokenizer/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ The NeMo Framework supports the following Cosmos Autoregressive (AR) models for
4949

5050
## Why Change Tokenizers?
5151

52-
Cosmos Autoregressive models are typically trained on a specific tokenizer configuration (e.g., 8×16×16). If you’d like to reduce patch size or change compression (e.g., to 4×8×8), you can post-train the existing weights so that the model effectively aligns its internal representations with the new token embeddings—without re-training the tokenizer.
52+
Cosmos Autoregressive models are typically trained on a specific tokenizer configuration (e.g., 8×16×16). If you'd like to reduce patch size or change compression (e.g., to 4×8×8), you can post-train the existing weights so that the model effectively aligns its internal representations with the new token embeddings—without re-training the tokenizer.
5353

5454
## Tutorial: Finetuning Cosmos-4B on 10k Videos with a New Tokenizer
5555

5656
In this tutorial, we will:
57-
- Take a model originally trained on an 8×16×16 tokenizer.
58-
- Post-train it on a 4×8×8 tokenizer.
57+
- Take a model originally trained on an 8×16×16 tokenizer.
58+
- Post-train it on a 4×8×8 tokenizer.
5959
- Demonstrate using a sample dataset of 10 (in production, we recommend using 10k videos from a distribution similar to that of pretraining).
6060

6161
### 1. Calculate Sequence Lengths
6262

63-
- **Original Sequence Length:** 12,800 tokens (33 frames * 640 px width * 1024 px height, when tokenized with an 8×16×16 tokenizer becomes ⌈33/8⌉ * (640/16) * (1024/16) = 5 * 64 * 80 = 12,800 tokens)
64-
- **New Sequence Length:** 12,800 tokens (17 frames * 320 px width * 512 px height, when tokenized with a 4×8×8 tokenizer becomes ⌈17/8⌉ * (320/4) * (512/8) = 5 * 80 * 64 = 12,800 tokens)
65-
- For other resolutions or frame counts, recalculate your maximum tokens to ensure you do not exceed the model’s capacity.
63+
- **Original Sequence Length:** 12,800 tokens (33 frames * 640 px width * 1024 px height, when tokenized with an 8×16×16 tokenizer becomes ⌈33/8⌉ * (640/16) * (1024/16) = 5 * 64 * 80 = 12,800 tokens)
64+
- **New Sequence Length:** 12,800 tokens (17 frames * 320 px width * 512 px height, when tokenized with a 4×8×8 tokenizer becomes ⌈17/8⌉ * (320/4) * (512/8) = 5 * 80 * 64 = 12,800 tokens)
65+
- For other resolutions or frame counts, recalculate your maximum tokens to ensure you do not exceed the model's capacity.
6666

6767
```bash
6868
export WIDTH=512
@@ -137,7 +137,7 @@ torchrun --nproc-per-node=$NUM_GPUS cosmos1/models/autoregressive/nemo/post_trai
137137
```
138138

139139
- Adjust parameters such as `--max_steps`, `--global_batch_size`, and `--lr` to suit your needs.
140-
- Ensure that `--model_path` matches the checkpoint originally trained on an 8×16×16 tokenizer.
140+
- Ensure that `--model_path` matches the checkpoint originally trained on an 8×16×16 tokenizer.
141141
- For an explanation on other configuration options, please see [the general post-training tutorial](https://github.com/NVIDIA/Cosmos/blob/main/cosmos1/models/autoregressive/nemo/post_training/README.md#configuration-options).
142142

143143
### 5. Monitor Quality
@@ -245,7 +245,7 @@ python cosmos1/models/autoregressive/nemo/post_training/video2world_prepare_data
245245

246246
### 3. Training/Finetuning for Video2World
247247

248-
Fine-tune a Video2World–specific checkpoint (or any compatible Cosmos AR model) on your new data. For example, using the 5B Video2World model:
248+
Fine-tune a Video2World—specific checkpoint (or any compatible Cosmos AR model) on your new data. For example, using the 5B Video2World model:
249249

250250
```bash
251251
torchrun --nproc-per-node=$NUM_GPUS cosmos1/models/autoregressive/nemo/post_training/video2world_finetuning.py \

0 commit comments

Comments
 (0)