Instructions to use zai-org/CogVideoX-5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zai-org/CogVideoX-5b with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zai-org/CogVideoX-5b", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
Error?
#19
by Hansiiiiiii - opened
Cant generate Videos since two days, always instant error message. Is the model down?
no, The Model is running on the space and you can download in this repo
"RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 60 but got size 90 for tensor number 1 in the list." no output after this error message.