Instructions to use FastVideo/GEN3C-Cosmos-7B-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FastVideo/GEN3C-Cosmos-7B-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("FastVideo/GEN3C-Cosmos-7B-Diffusers", 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
| { | |
| "_class_name": "Gen3CTransformer3DModel", | |
| "in_channels": 16, | |
| "out_channels": 16, | |
| "num_attention_heads": 32, | |
| "attention_head_dim": 128, | |
| "num_layers": 28, | |
| "mlp_ratio": 4.0, | |
| "text_embed_dim": 1024, | |
| "adaln_lora_dim": 256, | |
| "use_adaln_lora": true, | |
| "add_augment_sigma_embedding": false, | |
| "frame_buffer_max": 2, | |
| "max_size": [ | |
| 128, | |
| 240, | |
| 240 | |
| ], | |
| "patch_size": [ | |
| 1, | |
| 2, | |
| 2 | |
| ], | |
| "rope_scale": [ | |
| 2.0, | |
| 1.0, | |
| 1.0 | |
| ], | |
| "extra_pos_embed_type": "learnable", | |
| "concat_padding_mask": true, | |
| "affine_emb_norm": true, | |
| "qk_norm": "rms_norm", | |
| "eps": 1e-06 | |
| } | |