Instructions to use ccccsc/preview_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ccccsc/preview_model with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ccccsc/preview_model", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add files using upload-large-folder tool
Browse files- README.md +44 -0
- checkpoints/action_model/config.json +33 -0
- checkpoints/action_model/diffusion_pytorch_model.bin +3 -0
- checkpoints/config.json +40 -0
- checkpoints/diffusion_pytorch_model.bin +3 -0
- stats.json +70 -0
- vae/config.json +104 -0
- vae/diffusion_pytorch_model.safetensors +3 -0
- vae/latent_stats.pth +3 -0
README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Preview Model Weights
|
| 2 |
+
|
| 3 |
+
This directory contains the local weights required by the Preview Model.
|
| 4 |
+
|
| 5 |
+
## Weight Mapping
|
| 6 |
+
|
| 7 |
+
| Component | Local path | Description |
|
| 8 |
+
| --- | --- | --- |
|
| 9 |
+
| Video generation model (VGen) | `checkpoints/diffusion_pytorch_model.bin` | Main video diffusion model. |
|
| 10 |
+
| Action Expert | `checkpoints/action_model/diffusion_pytorch_model.bin` | Action prediction model. |
|
| 11 |
+
| VAE | `vae/diffusion_pytorch_model.safetensors` | Video latent encoder and decoder. |
|
| 12 |
+
| VAE latent statistics | `vae/latent_stats.pth` | Latent normalization statistics used by the VAE. |
|
| 13 |
+
| Qwen3.5 VLM | [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B) | Vision-language model used for instruction and image conditioning. |
|
| 14 |
+
|
| 15 |
+
The `config.json` files next to each model define the corresponding model
|
| 16 |
+
architecture.
|
| 17 |
+
|
| 18 |
+
## Expected Layout
|
| 19 |
+
|
| 20 |
+
```text
|
| 21 |
+
preview_model/
|
| 22 |
+
├── checkpoints/
|
| 23 |
+
│ ├── config.json
|
| 24 |
+
│ ├── diffusion_pytorch_model.bin
|
| 25 |
+
│ └── action_model/
|
| 26 |
+
│ ├── config.json
|
| 27 |
+
│ └── diffusion_pytorch_model.bin
|
| 28 |
+
├── vae/
|
| 29 |
+
│ ├── config.json
|
| 30 |
+
│ ├── diffusion_pytorch_model.safetensors
|
| 31 |
+
│ └── latent_stats.pth
|
| 32 |
+
└── stats.json
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
`stats.json` contains the state and action normalization statistics used during
|
| 36 |
+
policy inference.
|
| 37 |
+
|
| 38 |
+
## Runtime Paths
|
| 39 |
+
|
| 40 |
+
Use `preview_model/checkpoints` as the `CKPT` directory, use
|
| 41 |
+
`preview_model/vae` as the configured VAE path, and set the VAE statistics path
|
| 42 |
+
to `preview_model/vae/latent_stats.pth`. Download Qwen3.5-2B from the link above
|
| 43 |
+
and set `vlm_model_id` to its local directory or directly to
|
| 44 |
+
`Qwen/Qwen3.5-2B` when Hugging Face downloads are available.
|
checkpoints/action_model/config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ActionExpert",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
+
"action_attention_head_dim": 72,
|
| 5 |
+
"action_in_channels": 32,
|
| 6 |
+
"action_num_attention_heads": 16,
|
| 7 |
+
"activation_fn": "gelu-approximate",
|
| 8 |
+
"adapter_depth": 4,
|
| 9 |
+
"attention_bias": true,
|
| 10 |
+
"attention_out_bias": true,
|
| 11 |
+
"body_embedding_dim": null,
|
| 12 |
+
"body_embedding_enabled": true,
|
| 13 |
+
"body_embedding_zero_init": true,
|
| 14 |
+
"chunkwise_causal": false,
|
| 15 |
+
"is_causal": false,
|
| 16 |
+
"latent_base_f": 9,
|
| 17 |
+
"latent_base_h": 4,
|
| 18 |
+
"latent_base_w": 6,
|
| 19 |
+
"max_action_length": 64,
|
| 20 |
+
"n_view": 3,
|
| 21 |
+
"norm_elementwise_affine": false,
|
| 22 |
+
"norm_eps": 1e-06,
|
| 23 |
+
"num_body_embeddings": 12,
|
| 24 |
+
"num_layers": 28,
|
| 25 |
+
"num_view_identities": 8,
|
| 26 |
+
"qk_norm": "rms_norm_across_heads",
|
| 27 |
+
"residual_scale": 0.0,
|
| 28 |
+
"state_dim": 30,
|
| 29 |
+
"use_complex_adapter": false,
|
| 30 |
+
"use_state_direct": true,
|
| 31 |
+
"visible_chunk": 32,
|
| 32 |
+
"vision_in_dim": 512
|
| 33 |
+
}
|
checkpoints/action_model/diffusion_pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c18390b9f2344d5aae832b614361373715841290c74a94bd52018407599f9d5d
|
| 3 |
+
size 1127619545
|
checkpoints/config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "LTXVideoTransformer3DModel",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
+
"action_expert": false,
|
| 5 |
+
"activation_fn": "gelu-approximate",
|
| 6 |
+
"attention_bias": true,
|
| 7 |
+
"attention_head_dim": 64,
|
| 8 |
+
"attention_out_bias": true,
|
| 9 |
+
"caption_channels": 4096,
|
| 10 |
+
"cross_attention_dim": 2048,
|
| 11 |
+
"frame_concat_conditioning": false,
|
| 12 |
+
"frame_concat_mode_dim": 32,
|
| 13 |
+
"goal_mode_null_text_tokens": 0,
|
| 14 |
+
"in_channels": 512,
|
| 15 |
+
"max_view": 3,
|
| 16 |
+
"norm_elementwise_affine": false,
|
| 17 |
+
"norm_eps": 1e-06,
|
| 18 |
+
"num_attention_heads": 32,
|
| 19 |
+
"num_layers": 28,
|
| 20 |
+
"num_view_identities": 8,
|
| 21 |
+
"out_channels": 512,
|
| 22 |
+
"patch_size": 1,
|
| 23 |
+
"patch_size_t": 1,
|
| 24 |
+
"qk_norm": "rms_norm_across_heads",
|
| 25 |
+
"spatial_rope_grid_mode": "legacy",
|
| 26 |
+
"t2v_mode": false,
|
| 27 |
+
"time_embed_zero_init": true,
|
| 28 |
+
"use_fla_kernels": false,
|
| 29 |
+
"use_t_and_r_embedding": true,
|
| 30 |
+
"use_view_embed": true,
|
| 31 |
+
"v_head_depth": 8,
|
| 32 |
+
"vlm_fixed_sequence_length": 192,
|
| 33 |
+
"vlm_head_view_index": 0,
|
| 34 |
+
"vlm_head_view_only": true,
|
| 35 |
+
"vlm_interface_class_name": "_QWen3_5_Interface",
|
| 36 |
+
"vlm_interface_class_path": "qwen3_5_interface",
|
| 37 |
+
"vlm_layer_ids": null,
|
| 38 |
+
"vlm_model_id": "path_to_qwen",
|
| 39 |
+
"vlm_text_tokens_only": true
|
| 40 |
+
}
|
checkpoints/diffusion_pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:120016afec1b0cb14de3ad79f3353f4b1620d08f668ef224fd24b6fd41a8d540
|
| 3 |
+
size 9446789131
|
stats.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"action": {
|
| 3 |
+
"mean": [
|
| 4 |
+
-0.2004420601531751,
|
| 5 |
+
0.9262120117772523,
|
| 6 |
+
0.6882954361000175,
|
| 7 |
+
-0.34006418745617895,
|
| 8 |
+
0.06580817732542392,
|
| 9 |
+
0.003968974728993032,
|
| 10 |
+
0.7713835451223373,
|
| 11 |
+
0.17298737841749437,
|
| 12 |
+
0.8228202306896509,
|
| 13 |
+
0.6199237906514526,
|
| 14 |
+
-0.36062264651275594,
|
| 15 |
+
-0.06273007512256647,
|
| 16 |
+
0.003626950967936328,
|
| 17 |
+
0.7859185929400512
|
| 18 |
+
],
|
| 19 |
+
"std": [
|
| 20 |
+
0.34305780933960556,
|
| 21 |
+
0.8880324466803229,
|
| 22 |
+
0.7302225742500484,
|
| 23 |
+
0.6488506207233435,
|
| 24 |
+
0.29892353165157215,
|
| 25 |
+
0.5843509145959764,
|
| 26 |
+
0.3431953795318021,
|
| 27 |
+
0.3199443313159758,
|
| 28 |
+
0.8737035503502114,
|
| 29 |
+
0.7136346533472193,
|
| 30 |
+
0.602901033347034,
|
| 31 |
+
0.28371580003788793,
|
| 32 |
+
0.5371881677566724,
|
| 33 |
+
0.3407068400548113
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
"state": {
|
| 37 |
+
"mean": [
|
| 38 |
+
-0.20040483290933897,
|
| 39 |
+
0.9260306606167603,
|
| 40 |
+
0.6881890325982681,
|
| 41 |
+
-0.34004832067090657,
|
| 42 |
+
0.0657939444619461,
|
| 43 |
+
0.004003346747695903,
|
| 44 |
+
0.7714465980721263,
|
| 45 |
+
0.17299834217648324,
|
| 46 |
+
0.8224942863743043,
|
| 47 |
+
0.6196512620467062,
|
| 48 |
+
-0.3604178425587026,
|
| 49 |
+
-0.06267070852548702,
|
| 50 |
+
0.0037534706356096496,
|
| 51 |
+
0.7860055662365839
|
| 52 |
+
],
|
| 53 |
+
"std": [
|
| 54 |
+
0.3430550244781734,
|
| 55 |
+
0.8880402403847061,
|
| 56 |
+
0.73024171780556,
|
| 57 |
+
0.6487681181343322,
|
| 58 |
+
0.2989095859093467,
|
| 59 |
+
0.5843007967937394,
|
| 60 |
+
0.3431665702891377,
|
| 61 |
+
0.3198980326240298,
|
| 62 |
+
0.8736477837726742,
|
| 63 |
+
0.7135349891495106,
|
| 64 |
+
0.6027222877740273,
|
| 65 |
+
0.2836475806450459,
|
| 66 |
+
0.5368540575417334,
|
| 67 |
+
0.3406558002581584
|
| 68 |
+
]
|
| 69 |
+
}
|
| 70 |
+
}
|
vae/config.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "AutoencoderDC",
|
| 3 |
+
"_diffusers_version": "0.35.2",
|
| 4 |
+
"_name_or_path": "new_tokenizer",
|
| 5 |
+
"attention_head_dim": 32,
|
| 6 |
+
"decoder_act_fns": [
|
| 7 |
+
"relu",
|
| 8 |
+
"relu",
|
| 9 |
+
"relu",
|
| 10 |
+
"silu",
|
| 11 |
+
"silu",
|
| 12 |
+
"silu",
|
| 13 |
+
"silu"
|
| 14 |
+
],
|
| 15 |
+
"decoder_block_out_channels": [
|
| 16 |
+
128,
|
| 17 |
+
256,
|
| 18 |
+
512,
|
| 19 |
+
512,
|
| 20 |
+
1024,
|
| 21 |
+
1024,
|
| 22 |
+
2048
|
| 23 |
+
],
|
| 24 |
+
"decoder_block_types": [
|
| 25 |
+
"ResBlock",
|
| 26 |
+
"ResBlock",
|
| 27 |
+
"ResBlock",
|
| 28 |
+
"EfficientViTBlock",
|
| 29 |
+
"EfficientViTBlock",
|
| 30 |
+
"EfficientViTBlock",
|
| 31 |
+
"EfficientViTBlock"
|
| 32 |
+
],
|
| 33 |
+
"decoder_conv_act_fn": "relu",
|
| 34 |
+
"decoder_in_shortcut": true,
|
| 35 |
+
"decoder_layers_per_block": [
|
| 36 |
+
0,
|
| 37 |
+
5,
|
| 38 |
+
10,
|
| 39 |
+
2,
|
| 40 |
+
2,
|
| 41 |
+
2,
|
| 42 |
+
2
|
| 43 |
+
],
|
| 44 |
+
"decoder_norm_types": [
|
| 45 |
+
"batch_norm",
|
| 46 |
+
"batch_norm",
|
| 47 |
+
"batch_norm",
|
| 48 |
+
"rms_norm",
|
| 49 |
+
"rms_norm",
|
| 50 |
+
"rms_norm",
|
| 51 |
+
"rms_norm"
|
| 52 |
+
],
|
| 53 |
+
"decoder_qkv_multiscales": [
|
| 54 |
+
[],
|
| 55 |
+
[],
|
| 56 |
+
[],
|
| 57 |
+
[],
|
| 58 |
+
[],
|
| 59 |
+
[],
|
| 60 |
+
[]
|
| 61 |
+
],
|
| 62 |
+
"downsample_block_type": "pixel_unshuffle",
|
| 63 |
+
"encoder_block_out_channels": [
|
| 64 |
+
128,
|
| 65 |
+
256,
|
| 66 |
+
512,
|
| 67 |
+
512,
|
| 68 |
+
1024,
|
| 69 |
+
1024,
|
| 70 |
+
2048
|
| 71 |
+
],
|
| 72 |
+
"encoder_block_types": [
|
| 73 |
+
"ResBlock",
|
| 74 |
+
"ResBlock",
|
| 75 |
+
"ResBlock",
|
| 76 |
+
"EfficientViTBlock",
|
| 77 |
+
"EfficientViTBlock",
|
| 78 |
+
"EfficientViTBlock",
|
| 79 |
+
"EfficientViTBlock"
|
| 80 |
+
],
|
| 81 |
+
"encoder_layers_per_block": [
|
| 82 |
+
0,
|
| 83 |
+
4,
|
| 84 |
+
8,
|
| 85 |
+
2,
|
| 86 |
+
2,
|
| 87 |
+
2,
|
| 88 |
+
2
|
| 89 |
+
],
|
| 90 |
+
"encoder_out_shortcut": true,
|
| 91 |
+
"encoder_qkv_multiscales": [
|
| 92 |
+
[],
|
| 93 |
+
[],
|
| 94 |
+
[],
|
| 95 |
+
[],
|
| 96 |
+
[],
|
| 97 |
+
[],
|
| 98 |
+
[]
|
| 99 |
+
],
|
| 100 |
+
"in_channels": 3,
|
| 101 |
+
"latent_channels": 512,
|
| 102 |
+
"scaling_factor": 0.4538,
|
| 103 |
+
"upsample_block_type": "pixel_shuffle"
|
| 104 |
+
}
|
vae/diffusion_pytorch_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3eb0d40d82a05348d90423d30752bfd29c2530547263a1f0d866aaea95c44acb
|
| 3 |
+
size 543278016
|
vae/latent_stats.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b4d8d50eb1145bf1661092f6e522bf2cf7615e24fa3683a125fa6deaafa507f
|
| 3 |
+
size 204804880
|