Run this model with HF Jobs
Run TencentARC/WorldCrafter-Fast 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/TencentARC/WorldCrafter-Fast. 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/TencentARC/WorldCrafter-Fast 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 TencentARC/WorldCrafter-Fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use TencentARC/WorldCrafter-Fast 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("TencentARC/WorldCrafter-Fast", 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
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("TencentARC/WorldCrafter-Fast", 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")WorldCrafter-Fast
Self-contained weights for WorldCrafter Fast image-to-video, text-to-video, and the interactive image-to-video demo. Use the WorldCrafter inference code and its pinned uv environment.
The two transformer branches have independent DMD LoRA and camera adapters. The RepEncoder, text encoder, tokenizer, VAE, and scheduler are included here. No WorldCrafter-Base files are needed for Fast inference.
From the code repository root, download the complete package, including its model index and both transformer branches:
hf download TencentARC/WorldCrafter-Fast --local-dir weights/WorldCrafter-Fast
Then run inference:
python inference.py --model-type fast --model-path weights/WorldCrafter-Fast --output-path outputs/fast.mp4
Image-to-video uses five high-noise steps and one low-noise step per chunk. Text-to-video uses four high-noise and eight low-noise steps for the first chunk, then two high-noise and four low-noise steps. Compilation is optional with --enable-compile.
model_index.json describes the two transformer branches, their adapters, and the shared components. Loading uses worldcrafter.WorldCrafter.from_pretrained(..., model_type="fast") through the WorldCrafter code; this package is not a standalone diffusers.DiffusionPipeline.from_pretrained checkpoint.
inference_config.json resolves shared components from this directory (shared_components: "."). Keep all component folders together. manifest.json records checkpoint provenance and validation hashes; SHA256SUMS covers the packaged files.
Paper and Resources
- Downloads last month
- 129