Run this model with HF Jobs
Run jdopensource/JoyAI-Video-Edit-Diffusers 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/jdopensource/JoyAI-Video-Edit-Diffusers. 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/jdopensource/JoyAI-Video-Edit-Diffusers 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 jdopensource/JoyAI-Video-Edit-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jdopensource/JoyAI-Video-Edit-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("jdopensource/JoyAI-Video-Edit-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
JoyAI-Video-Edit Diffusers
This repository contains the Diffusers-format release of the JoyAI-Video-Edit 0811 checkpoint. It provides the JoyVideoEditPipeline, transformer, causal video VAE, and scheduler in the standard Diffusers directory layout.
The MiMo-VL text/vision encoder is not duplicated in this repository. Load it separately from XiaomiMiMo/MiMo-VL-7B-RL-2508, as shown below.
Links
- Project repository
- Example training scripts
- LongV2VBench β long-form video-to-video editing evaluation benchmark.
- Paper
- Original checkpoint
- Online demo
Installation
The checkpoint requires a Diffusers build containing JoyVideoEditPipeline. Until the implementation is available in a released Diffusers version, install the development branch:
pip install --upgrade torch transformers accelerate safetensors imageio-ffmpeg
pip install --upgrade "git+https://github.com/feice-huang/diffusers.git@add_joyvideoedit"
Usage
import torch
from diffusers import JoyVideoEditPipeline
from diffusers.utils import export_to_video, load_video
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
model_id = "jdopensource/JoyAI-Video-Edit-Diffusers"
mimo_id = "XiaomiMiMo/MiMo-VL-7B-RL-2508"
processor = AutoProcessor.from_pretrained(mimo_id)
text_encoder = Qwen2_5_VLForConditionalGeneration.from_pretrained(
mimo_id,
torch_dtype=torch.bfloat16,
)
pipe = JoyVideoEditPipeline.from_pretrained(
model_id,
text_encoder=text_encoder,
processor=processor,
torch_dtype=torch.bfloat16,
)
pipe.enable_model_cpu_offload()
video = load_video("input.mp4")
result = pipe(
video=video,
prompt="Turn the scene into a watercolor painting.",
num_inference_steps=2,
generator=torch.Generator(device="cuda").manual_seed(0),
output_type="pil",
)
export_to_video(result.frames[0], "output.mp4", fps=16)
Input and output notes
- The pipeline performs flow-matching denoising and does not use classifier-free guidance. It does not accept
negative_promptorguidance_scale. - The source video frame count must be
8 * n + 1after preprocessing. - Output height and width must be divisible by
24. If omitted, they default to the source video dimensions. num_inference_steps=2is the checkpoint's standard inference setting.- Supported
output_typevalues are"pil","np","pt", and"latent". ref_imageis optional and enables reference-image-guided editing.- The repository does not include
text_encoder,tokenizer, orprocessor; these are loaded from MiMo-VL or replaced with precomputed embeddings.
Repository structure
JoyAI-Video-Edit-Diffusers/
βββ model_index.json
βββ scheduler/
β βββ scheduler_config.json
βββ transformer/
β βββ config.json
β βββ diffusion_pytorch_model.safetensors.index.json
β βββ diffusion_pytorch_model-00001-of-00007.safetensors ...
βββ vae/
βββ config.json
βββ diffusion_pytorch_model.safetensors
Citation
@article{xiao2026joyai,
title={JoyAI-Video-Edit: Real-Time Open-Ended Video Editing with Autoregressive Diffusion},
author={Xiao, Yicheng and Dai, Wenxun and Qin, Xinran and Song, Lin and Zhang, Maoquan and Xu, Hang and Chen, Yukang and Li, Yitong and Zhang, Guohui and Zhang, Yuan and Zhang, Xuying and Zhang, Tommy and Yuan, Jianlong and Li, Peihao and Lu, Shuai and Fu, Siming and Zhao, Chuyang and Han, Xin and Huang, Jie and Li, Wenbo and Ma, Guoqing and Huang, Wei and Qi, Xiaojuan and Huang, Haoyang and Duan, Nan},
journal={arXiv preprint arXiv:2608.03974},
year={2026}
}
License
Apache License 2.0. See the original project for details.
- Downloads last month
- 48
Model tree for jdopensource/JoyAI-Video-Edit-Diffusers
Base model
jdopensource/JoyAI-Video-Edit