Image-to-Video
Cosmos
Diffusers
Safetensors
cosmos3_omni
nvidia
cosmos3
vllm-omni
sglang
sglang-diffusion
video-generation
Run this model with HF Jobs
Run nvidia/Cosmos3-Super-Image2Video on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nvidia/Cosmos3-Super-Image2Video. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nvidia/Cosmos3-Super-Image2Video on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use nvidia/Cosmos3-Super-Image2Video with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos3-Super-Image2Video with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Diffusers
How to use nvidia/Cosmos3-Super-Image2Video with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/Cosmos3-Super-Image2Video", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
Commit ·
18c74df
1
Parent(s): b2a1b0d
add sglang to more sections
Browse files167 unmodified lines168169170171172173242 unmodified lines41641741841942042142237 unmodified lines46046146246346446572 unmodified lines538539540541542543544167 unmodified lines- [PyTorch](https://github.com/nvidia/cosmos3)- [vLLM-Omni](https://github.com/vllm-project/vllm-omni)- [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)**Supported Hardware Microarchitecture Compatibility:**242 unmodified lines### SGLangSGLang-Diffusion can serve `nvidia/Cosmos3-Super-Image2Video` through the OpenAI-compatible async video endpoint. Install SGLang from the main branch with diffusion dependencies, then start the server:```bashgit clone --branch main https://github.com/sgl-project/sglang.git37 unmodified lines-o cosmos3_super_i2v_output.mp4```### DiffusersCosmos3 is fully supported within the popular HuggingFace Diffusers package. This integration makes it a supported inference backend, allowing developers to easily incorporate Cosmos3's capabilities - such as text-to-image generation - into their pipelines using the Cosmos3OmniPipeline class, as demonstrated by the provided code examples (see examples for other modalities on the HuggingFace Cosmos3 page).72 unmodified lines## Inference**Acceleration Engine:** [PyTorch](https://pytorch.org/), [vLLM](https://github.com/vllm-project/vllm), [vLLM-Omni](https://github.com/vllm-project/vllm-omni), [Hugging Face Diffusers](https://github.com/huggingface/diffusers)**Test Hardware:** GB200 and H100167 unmodified lines168169170171172173174242 unmodified lines41741841942042142242337 unmodified lines46146246346446546646746872 unmodified lines541542543544545546547167 unmodified lines- [PyTorch](https://github.com/nvidia/cosmos3)- [vLLM-Omni](https://github.com/vllm-project/vllm-omni)- [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)- [SGLang](https://sgl-project.github.io/)**Supported Hardware Microarchitecture Compatibility:**242 unmodified lines### SGLang[SGLang Diffusion](https://sgl-project.github.io/diffusion) can serve `nvidia/Cosmos3-Super-Image2Video` through OpenAI-compatible video generation endpoints. Install SGLang from the main branch with diffusion dependencies, then start the server:```bashgit clone --branch main https://github.com/sgl-project/sglang.git37 unmodified lines-o cosmos3_super_i2v_output.mp4```For complete serving instructions and request examples, see the [Cosmos3 SGLang cookbook](https://lmsysorg.mintlify.app/cookbook/diffusion/Cosmos/Cosmos3).### DiffusersCosmos3 is fully supported within the popular HuggingFace Diffusers package. This integration makes it a supported inference backend, allowing developers to easily incorporate Cosmos3's capabilities - such as text-to-image generation - into their pipelines using the Cosmos3OmniPipeline class, as demonstrated by the provided code examples (see examples for other modalities on the HuggingFace Cosmos3 page).72 unmodified lines## Inference**Acceleration Engine:** [PyTorch](https://pytorch.org/), [vLLM](https://github.com/vllm-project/vllm), [vLLM-Omni](https://github.com/vllm-project/vllm-omni), [Hugging Face Diffusers](https://github.com/huggingface/diffusers), [SGLang](https://sgl-project.github.io/), [SGLang Diffusion](https://sgl-project.github.io/diffusion)**Test Hardware:** GB200 and H100
README.md+5-2