Image-to-Video
Diffusers
Safetensors
video-generation
audio-video-generation
reference-to-video
long-video
multi-shot
dmd
Run this model with HF Jobs
Run jdopensource/JoyAI-Echo 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-Echo. 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-Echo 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-Echo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jdopensource/JoyAI-Echo 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("jdopensource/JoyAI-Echo", 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
update prompts
Browse files11 unmodified lines1213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626711 unmodified lines- dmdlibrary_name: ltx-video---<p align="center"><img src="assets/image.png" alt="JoyAI-Echo generated video gallery" width="100%"></p><div align="center"><h1>JoyAI-Echo</h1><p><strong>π¬ Pushing the Frontier of Long Video Generation</strong></p><p>Standalone, inference-only release for <strong>minute-level multi-shot audio-video generation</strong> with a distilled DMD generator, paired cross-modal memory, and story-level consistency.</p><p><strong>For academic research and non-commercial use only.</strong></p><p><a href="https://github.com/jd-opensource/JoyAI-Echo/blob/main/joyai-echo%20tech%20report.pdf"><b>π Paper</b></a> |<a href="https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/"><b>π Project Page</b></a> |<a href="#quickstart"><b>π Quickstart</b></a> |<a href="#results"><b>π Results</b></a> |<a href="#citation"><b>π Citation</b></a></p><p><img src="https://img.shields.io/badge/Python-3.11-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11"><img src="https://img.shields.io/badge/PyTorch-2.8-EE4C2C?style=flat-square&logo=pytorch&logoColor=white" alt="PyTorch 2.8"><img src="https://img.shields.io/badge/CUDA-12.8-76B900?style=flat-square&logo=nvidia&logoColor=white" alt="CUDA 12.8"><img src="https://img.shields.io/badge/Release-Inference--Only-black?style=flat-square" alt="Inference"><img src="https://img.shields.io/badge/Long%20Video-5%20min-d61f2c?style=flat-square" alt="5 minute long video"></p></div>## AbstractLong video generation still suffers from error accumulation, weak temporal coherence, and prohibitive latency, limiting its applicability to interactive scenarios. We present **JoyAI-Echo**, a framework that breaks these barriers through four key advances.Central to its performance, a cross-modal audio-visual memory bank preserves character appearance and voice timbre consistently over five-minute videos, while a post-training pipeline combines memory-based reinforcement learning with distribution matching distillation for a **7.5Γ speedup** to substantially boost visual quality and alignment.Empowered by these two components, **JoyAI-Echo** decisively outperforms *HappyOyster* (directing mode) on long-form generation and even surpasses the short-video specialist *Wan 2.6* on human-centric tasks.Beyond raw generation quality, an interactive agent enables real-time user editing through conversational instructions, and a lightweight super-resolution module maintains high definition under streaming latency, further elevating the overall experience and delivering instantly editable, conversation-speed video creation.For the first time, **JoyAI-Echo** simultaneously achieves long-range cross-modal consistency, real-time inference for minute-long video, conversational interactivity, and high-resolution output β without compromise, inaugurating a new era of interactive video generation.Codes and weights will be open-sourced.## Highlights- ποΈ **Minute-level multi-shot stories**: generate a sequence of coherent shots from one prompt JSON.- β‘ **DMD-distilled few-step inference**: ~7.5x faster than the original pipeline.- π **Joint audio-video generation**: one pipeline produces synchronized video and audio.- π§ **Paired cross-modal memory bank**: conditions each new shot on prior visual identity and voice context for story-level consistency.## Current Release ScopeJoyAI-Echo currently focuses on **text-to-video (T2V)** and **multi-shot long-video generation with paired audio-video memory**. The memory used in our official pipeline is built from generated T2V shots.Please note that **image-to-video (I2V)** is **not supported in the current release**.We are actively working on I2V support and plan to release it in a future version.## Demo GalleryExplore long-form and short-form JoyAI-Echo cases on the [Project Page](https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/). πΏ## Results### Reported Scale| Item | Value || --- | ---: || π¬ Long-form coherent story length | **5 min** || β‘ Generation speedup over the original multi-step pipeline | **7.5x** || π Benchmark stories | **100** || ποΈ Generated evaluation shots | **3,000** || π Frames per shot | **241 @ 25 fps** |### Human EvaluationGSB user study on long- and short-video generation. The numbers denote the percentage of user preferences.| Aspect<br>(Long Video) | JoyAI-Echo | Tie | HappyOyster<br> (Directing) || --- | ---: | ---: | ---: || Visual aesthetics | **63.6%** | 8.8% | 27.6% || Audio quality | **81.7%** | 6.5% | 11.8% || Prompt following | **80.6%** | 13.5% | 5.9% || IP consistency | **59.4%** | 12.9% | 27.7% || Aspect<br>(Short Video) | JoyAI-Echo | Tie | Wan 2.6 || --- | ---: | ---: | ---: || Visual aesthetics | **58.8%** | 14.7% | 26.5% || Audio quality | 32.3% | 30.9% | 36.8% || Prompt following | 33.8% | 36.8% | 29.4% |## Quickstart### 1. CloneGet the Repo at first!```bashgit clone https://github.com/jd-opensource/JoyAI-Echo.gitcd JoyAI-Echo```### 2. Create the environmentThe reference environment is **Python 3.11 + PyTorch 2.8 + CUDA 12.8**.With conda:```bashconda env create -f environment.ymlconda activate echo-long```With `uv`:```bashuv venv --python 3.11 .venvsource .venv/bin/activateuv pip install --extra-index-url https://download.pytorch.org/whl/cu128 -r requirements.txt```[`ffmpeg`](https://ffmpeg.org/download.html) must be available on `PATH` for shot concatenation. The conda recipe includes it. If you use `uv`, install it with your system package manager:```bashsudo apt install ffmpeg# macOS:brew install ffmpeg```### 3. Download checkpointDownload the JoyAI-Echo release checkpoint and Gemma text encoder:| File | Description | Size | Link || --- | --- | --- | --- || `echo-longvideo-release.safetensors` | Full model (transformer + VAE + vocoder) | ~46 GB |[`JoyAI-Echo`](https://huggingface.co/jdopensource/JoyAI-Echo) || `gemma-3-12b/` | Instruction-tuned model (text encoder) | ~24 GB | [`gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it) |Place them under `checkpoints/`:```textcheckpoints/+-- echo-longvideo-release.safetensors`-- gemma-3-12b/```### 4. Write a story promptCreate a JSON file under `prompts/`.Each string is one complete shot description. A single prompt creates a single shot. Multiple prompts create a multi-shot story conditioned through the paired audio-video memory bank.### 5. Run inference```bashpython inference.py```This loads the model once and processes all prompt files under `prompts/`.> π‘ **Note**: The inference pipeline is optimized to run on lower-VRAM> GPUs. Peak GPU usage is around **46β50 GB**, at the cost of slightly> longer per-shot inference time.Outputs are written to:```textinference_result/outputs/<prompt-name>/inference_<timestamp>/```## ConfigurationAll inference parameters are managed in `configs/inference.yaml`. The file is organized into sections:| Section | Contents || --- | --- || `paths` | Checkpoint path, prompts directory, output root || `video` | Resolution, frame count, FPS, seed || `denoising` | Step list and sigma schedule || `memory` | Memory bank size, save mode, LoRA settings || `audio_memory` | Audio window, mel-spectrogram params || `inference` | Device, dtype, grad scale |### Override via CLIAny YAML parameter can be overridden from the command line:```bashpython inference.py --seed 42 --num-frames 121 --video-height 480 --video-width 832```Use a custom config file:```bashpython inference.py --config configs/my_experiment.yaml```The Python entrypoint exposes the full configuration surface:```bashpython inference.py --help```## HardwarePeak GPU usage is around **46β50 GB** for the default **25 fps x 241 frames x 1280 x 736** setting, so a single H100/A100-class (80 GB) or 48 GB GPU is sufficient.For smaller GPUs, reduce resolution/frames:```bashpython inference.py --num-frames 121 --video-height 480 --video-width 832```## TODO List- [x] Release inference code- [x] Release model checkpoints- [x] Add prompt examples- [ ] Release Director Agent## Links- Project page: [`https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/`](https://echo-team-joy-future-academy-jd.github.io/Echo-LongVideo-Page/)- Repository: [`https://github.com/jd-opensource/JoyAI-Echo`](https://github.com/jd-opensource/JoyAI-Echo)- huggingface: [`https://huggingface.co/jdopensource/JoyAI-Echo`](https://huggingface.co/jdopensource/JoyAI-Echo)## AcknowledgementsWe gratefully acknowledge the open-source projects this work builds upon β in particular [LTX2.3](https://huggingface.co/Lightricks/LTX-2.3) for the base video generator and [Gemma](https://huggingface.co/google/gemma-3-12b-it) for the text encoder. Thanks to the broader research community whose contributions made this release possible.## CitationIf JoyAI-Echo helps your research or products, please cite:```bibtex@techreport{echo2026longvideo,title = {JoyAI-Echo: Pushing the Frontier of Long Video Generation},author = {{Echo Team @ Joy Future Academy, JD}},institution = {Joy Future Academy, JD},year = {2026},month = {May}}```## LicenseThis project is based on LTX-2 by Lightricks Ltd.Portions of the original LTX-2 codebase have been modified by JD.com for academic and research purposes only.This project is not intended for commercial use. For commercial use of LTX-2 or its derivatives, please contact Lightricks Ltd.All original copyright, license, patent, trademark, and attribution notices from LTX-2 are retained.This project remains subject to the LTX-2 Community License Agreement.11 unmodified lines1213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219311 unmodified lines- dmdlibrary_name: ltx-video---<p align="center"><img src="assets/image.png" alt="Echo-LongVideo generated video gallery" width="100%"></p><div align="center"><h1>Echo-LongVideo</h1><p><strong>π¬ Pushing the Frontier of Long Video Generation</strong></p><p>Official model weights for <strong>minute-level multi-shot audio-video generation</strong> with a distilled DMD generator, paired cross-modal memory, and story-level consistency.</p><p><a href="LongVideo_Tech_Report.pdf"><b>π Paper</b></a> |<a href="https://github.com/Echo-Team-Joy-Future-Academy-JD/JoyAI-Echo"><b>π» Inference Code</b></a> |<a href="#model-details"><b>𧬠Model</b></a> |<a href="#usage"><b>π Usage</b></a> |<a href="#results"><b>π Results</b></a> |<a href="#citation"><b>π Citation</b></a></p><p><img src="https://img.shields.io/badge/Task-Text--to--Video-blue?style=flat-square" alt="Text-to-Video"><img src="https://img.shields.io/badge/Modality-Audio%2BVideo-purple?style=flat-square" alt="Audio + Video"><img src="https://img.shields.io/badge/Long%20Video-5%20min-d61f2c?style=flat-square" alt="5 minute long video"><img src="https://img.shields.io/badge/Release-Model%20Weights-black?style=flat-square" alt="Model Weights"></p></div>## Model Summary**Echo-LongVideo** (a.k.a. **JoyAI-Echo**) is a long-form, multi-shot, audio-video generation model. A cross-modal audio-visual memory bank preserves character appearance and voice timbre consistently across up to **five-minute** videos, and a post-training pipeline combining memory-based reinforcement learning with distribution matching distillation (DMD) delivers a **7.5Γ inference speedup** without sacrificing quality.In human evaluation, Echo-LongVideo decisively outperforms *HappyOyster* (directing mode) on long-form generation and surpasses the short-video specialist *Wan 2.6* on human-centric tasks.This repository hosts the **released checkpoint**. Inference code is released separately β see the [Usage](#usage) section.## Model Details- **Developed by:** Echo Team @ Joy Future Academy, JD- **Model type:** Text-to-(Audio+Video) diffusion transformer, DMD 8-step- **Modality:** Text β synchronized video + audio- **Backbone:** Built on top of [LTX-Video](https://github.com/Lightricks/LTX-Video)- **Text encoder:** [`google/gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it) (downloaded separately)- **Resolution / length (by default):** 1280 Γ 736, 241 frames @ 25 fps per shot- **Max story length:** up to 5 minutes (multi-shot)- **License:** LTX-2 Community License Agreement## Highlights- ποΈ **Minute-level multi-shot stories** from a single prompt JSON.- β‘ **DMD-distilled few-step inference**, ~7.5Γ faster than the original pipeline.- π **Joint audio-video generation** in a single pipeline.- π§ **Paired cross-modal memory bank** for story-level identity and voice consistency.## UsageInference is run with the standalone **Echo-LongVideo** inference repository.### 1. Download the checkpoint```bashhuggingface-cli download <org>/Echo-LongVideo \--local-dir checkpoints```Also download the Gemma text encoder:```bashhuggingface-cli download google/gemma-3-12b-it \--local-dir checkpoints/gemma-3-12b```Expected layout:```textcheckpoints/βββ echo-longvideo-release.safetensorsβββ gemma-3-12b/```### 2. Get the inference code```bashgit clone https://github.com/Echo-Team-Joy-Future-Academy-JD/JoyAI-Echo.gitcd JoyAI-Echo```Environment: **Python 3.11 + PyTorch 2.8 + CUDA 12.8** (see the inference repo's `environment.yml` / `requirements.txt`).### 3. Write a story prompt**Enhance your prompt first.** We provide prompt enhancers β system prompts that expand a short story or idea into well-formed shot prompts: **`prompts/long_story_writer_system_prompt.md`** for long, multi-shot video, and **`prompts/short_story_writer_system_prompt.md`** for single-shot short video. We **strongly recommend** running your input through the matching enhancer before inference; un-enhanced prompts tend to produce noticeably weaker results.Create a JSON file under `prompts/`. Each file is a single object with a `prompts` list, where **every string is one complete shot**. A single string produces one shot; multiple strings produce a multi-shot story, with each new shot conditioned on the previous ones through the paired audio-video memory bank.Inside each string, write these parts in order:| Part | What to describe || --- | --- || **Roles & Subjects** | Describe the appearance of all visible people, including age, build, hair, face, wardrobe, and speaking voice timbre when applicable. || **Action & Dialogue** | What the subject does and speaks. || **Style** | The overall visual and emotional aesthetic β e.g. realistic motorsport film language, cool daylight, restrained cinematic tension. || **Camera Movement** | The shot type and framing or movement β e.g. a stable close-up on the face, or a medium shot from the waist up. || **Background** | The setting and scene details behind the subject. || **Sound Effects & BGM** | The sounds in the scene and the background music β e.g. room tone, wind, footsteps and fabric, with a soft low music bed under the dialogue or nobackground music |A more convenient prompt-writing workflow will be released as a **director agent** for everyone to use.### 4. Run```bashpython inference.py```Outputs land in `inference_result/outputs/<prompt-name>/inference_<timestamp>/`.## HardwarePeak GPU memory is **~46β50 GB** at the default 1280 Γ 736 Γ 241 frame setting β a single H100/A100 (80 GB) or 48 GB GPU is sufficient. For smaller GPUs, lower resolution or frame count:```bashpython inference.py --num-frames 121 --video-height 480 --video-width 832```## Results### Reported Scale| Item | Value || --- | ---: || π¬ Long-form coherent story length | **5 min** || β‘ Speedup over the original multi-step pipeline | **7.5Γ** || π Benchmark stories | **100** || ποΈ Generated evaluation shots | **3,000** || π Frames per shot | **241 @ 25 fps** |### Human EvaluationGSB user study. Values are the percentage of user preferences.| Aspect (Long Video) | JoyAI-Echo | Tie | HappyOyster (Directing) || --- | ---: | ---: | ---: || Visual aesthetics | **63.6%** | 8.8% | 27.6% || Audio quality | **81.7%** | 6.5% | 11.8% || Prompt following | **80.6%** | 13.5% | 5.9% || IP consistency | **59.4%** | 12.9% | 27.7% || Aspect (Short Video) | JoyAI-Echo | Tie | Wan 2.6 || --- | ---: | ---: | ---: || Visual aesthetics | **58.8%** | 14.7% | 26.5% || Audio quality | 32.3% | 30.9% | 36.8% || Prompt following | 33.8% | 36.8% | 29.4% |## AcknowledgementsWe gratefully acknowledge [LTX-Video](https://github.com/Lightricks/LTX-Video) for the base video generator and [Gemma](https://huggingface.co/google/gemma-3-12b-it) for the text encoder, along with the broader open-source community.## CitationIf Echo-LongVideo helps your research or products, please cite:```bibtex@techreport{echo2026longvideo,title = {Echo-LongVideo: Pushing the Frontier of Long Video Generation},author = {{Echo Team @ Joy Future Academy, JD}},institution = {Joy Future Academy, JD},year = {2026},month = {June},url = {https://github.com/Echo-Team-Joy-Future-Academy-JD/JoyAI-Echo}}```## LicenseReleased under the [LTX-2 Community License Agreement](https://github.com/Lightricks/LTX-2/blob/main/LICENSE). By downloading or using these weights, you agree to its terms. The bundled Gemma text encoder is governed by Google's separate Gemma license.
README.md+91-165