Open-source audio and video generation models such as daVinci, MagiHuman, and Sand.ai
daVinci-MagiHuman is an open-source audio and video co-generation foundation model jointly developed by the GAIR Lab at Shanghai Institute of Innovation and Technology and Sand.ai. The model employs a single-stream Transformer architecture with 15 billion parameters, uniformly modeling text,...
What is daVinci-MagiHuman?
daVinci-MagiHuman is an open-source audio and video co-generation foundation model jointly developed by the GAIR Lab at Shanghai Institute of Innovation and Technology and Sand.ai. The model employs a single-stream Transformer architecture with 15 billion parameters, uniformly modeling text, video, and audio modalities without requiring cross-attention mechanisms. It excels at person-centric generation, supports multiple languages including Chinese, English, Japanese, Korean, German, and French, and can generate a 5-second 256p video in just 2 seconds from a single H100 image. Compared to Ovi 1.1 and LTX 2.3, it achieves win rates of 80% and 60.9% respectively. The code, model weights, and online demo are fully open-source.
daVinci-MagiHuman's main functions
-
Audio and video co-generationIt supports the simultaneous generation of videos featuring natural speech and lip-sync, achieving true audio-visual integration.
-
Multilingual supportIt supports voice generation for multiple languages, including Chinese (Mandarin and Cantonese), English, Japanese, Korean, German, and French.
-
Human Image Derivation GenerationFocusing on the central scene of the character, it generates expressive facial expressions, body movements, and emotional communication.
-
Speed ReasoningSupports generating a 5-second 256p video in 2 seconds on a single H100 GPU, meeting real-time interactive needs.
-
High resolution outputThrough latent space super-resolution technology, it can be expanded to 540p or 1080p high-definition video.
The technical principles of daVinci-MagiHuman
- Single-stream unified architecturedaVinci-MagiHuman employs a single-stream Transformer architecture, unifying text, video, and audio into a single 15 billion parameter, 40-layer denoising network. It uses a pure self-attention mechanism for joint modeling, completely eliminating cross-attention or modality-specific branches. Architecturally, it adopts a "sandwich" design, with a few layers at the beginning and end retaining modality-related parameters, while the backbone network shares parameters, achieving a balance between modality specialization and deep fusion. Simultaneously, it introduces mechanisms such as explicit timestep conditional injection and Attention-Head gating to improve training stability and expressive power.
- Latent space super-resolutionThe model employs a two-stage pipeline: the bottom model first generates low-resolution audio and video latent variables, and then performs high-resolution refinement directly in the latent space through latent space super-resolution, avoiding additional VAE encoding and decoding overhead. The audio latent variables will continue to be used as input into the super-resolution model to maintain lip-sync effect.
- Inference acceleration optimizationThe inference stage uses a lightweight Turbo VAE decoder to reduce latency, integrates the self-developed MagiCompiler for full-graph compilation optimization, and brings about 1.2 times speedup through cross-layer operator fusion; combined with DMD-2 distillation technology, it achieves high-quality generation with only 8 steps of denoising.
Key information and usage requirements for daVinci-MagiHuman
-
Model size15 billion parameters, 40 layers of Transformer
-
Architectural featuresSingle-stream unified architecture, purely self-attention, no cross-attention.
-
Generation capabilitySupports text/image-driven joint generation of human portrait audio and video.
-
Supported languagesChinese (Mandarin, Cantonese), English, Japanese, Korean, German, French
-
Reasoning speedA single H100 image can generate a 5-second 256p video in 2 seconds and a 1080p video in 38 seconds.
-
PerformanceCompared to Ovi 1.1, the win rate is 80.0%; compared to LTX 2.3, the win rate is 60.9%.
-
hardwareNVIDIA GPU (H100 recommended), CUDA support required.
-
Software environment: Python 3.12, PyTorch 2.9.0, CUDA 12.x
-
Dependency Components: Flash Attention (Hopper architecture), MagiCompiler (self-developed compiler), Turbo VAE
daVinci-MagiHuman's core advantages
-
Simple and efficient architectureIt adopts a single-stream Transformer to uniformly model text, video, and audio, eliminating cross-attention and modal branches, reducing system complexity, and making training and inference optimization more direct.
-
Precise audio-visual synchronizationNative joint modeling ensures a high degree of coordination between speech, lip movements, facial expressions, and actions, avoiding the problem of insufficient semantic alignment between audio and video in traditional solutions.
-
The generation speed is extremely fast.It supports generating a 5-second 256p video in 2 seconds from a single H100 image, and combines latent space super-resolution, Turbo VAE, full-graph compilation and model distillation to achieve real-time inference.
-
Strong multilingual generalizationSupports multiple languages including Chinese, English, Japanese, Korean, German, French, and Cantonese, meeting the needs of global content generation.
-
Outstanding portrait expressionFocusing on the central scene of the character, it generates emotional facial expressions, natural voice, and realistic body movements to achieve performance-level quality.
How to use daVinci-MagiHuman
- Method 1: Docker
-
Pull the pre-built image:
docker pull sandai/magi-human:latest. -
Start the container and mount the local directory:
docker run -it --gpus all --network host --ipc host -v /path/to/repos:/workspace -v /path/to/checkpoints:/models sandai/magi-human:latest bash. -
After entering the container, install MagiCompiler and clone the daVinci-MagiHuman code repository.
-
Download the model weights from HuggingFace and update the paths in the configuration file.
-
Run the corresponding script to begin generation.
-
- Method 2: Manual installation using Conda
-
Create and activate the Python 3.12 environment:
conda create -n davinci python=3.12 && conda activate davinci. -
Install PyTorch 2.9.0 and related components.
-
Compile and install Flash Attention (Hopper architecture version).
-
Clone and install MagiCompiler with the daVinci-MagiHuman project dependencies.
-
Download external models and project weights such as T5 Gemma, Stable Audio, and Wan2.2 VAE.
-
After updating the model path in the configuration file, run the generation script.
-
- Run script
-
Basic 256p generation: Execution
bash example/base/run.sh. -
Distillation Quick Version 256p (8-step noise reduction, no CFG): Execute
bash example/distill/run.sh. -
Super-resolution to 540p: Execute
bash example/sr_540p/run.sh. -
Super-resolution to 1080p: Execution
bash example/sr_1080p/run.sh.
-
daVinci-MagiHuman's project address
- GitHub repositoryhttps://github.com/GAIR-NLP/daVinci-MagiHuman
- HuggingFace model libraryhttps://huggingface.co/GAIR/daVinci-MagiHuman
- arXiv technical paper: https://arxiv.org/pdf/2603.21986
- Experience the demo onlinehttps://huggingface.co/spaces/SII-GAIR/daVinci-MagiHuman
Comparison of similar products from daVinci-MagiHuman
| Comparison items | daVinci-MagiHuman | LTX 2.3 | Ovi 1.1 |
|---|---|---|---|
| Research and development | Shanghai Innovation Academy GAIR + Sand.ai | Lightricks | Ovi Labs |
| Architecture Design | Single-stream Transformer, no cross-attention | Multi-stream or diffusion architecture | Multi-stream architecture |
| Model size | 15 billion parameters | Not disclosed | Not disclosed |
| Audio and video generation | Native joint modeling, synchronous generation | support | support |
| Generation speed | H100 2 seconds/5 seconds 256p | Slower | Slower |
| Visual quality | 4.80 | 4.76 | 4.73 |
| Text alignment | 4.18 | 4.12 | 4.10 |
| Physical consistency | 4.52 | 4.56 | 4.41 |
| Audio quality (WER) | 14.60% | 19.23% | 40.45% |
| Human evaluation of win rate | benchmark | 60.9% win rate | 80.0% win rate |
| Open source level | Fully open source (code + weights + toolchain) | Partially open source | Partially open source |
| Multilingual support | Chinese, English, Japanese, Korean, German, French + Cantonese | limited | limited |
Application scenarios of daVinci-MagiHuman
-
AI digital human anchorIt automatically generates videos for product promotion or news broadcasts with accurate lip movements and natural facial expressions, and supports multiple languages to adapt to different regional markets.
-
Virtual Customer Service and AssistantTo create an intelligent customer service persona with realistic voice interaction capabilities, thereby enhancing service warmth and user experience.
-
Film and advertising productionQuickly generate close-up shots of characters, dubbing demos, or storyboard previews to reduce pre-production costs and time.
-
Education and training contentGenerate multilingual teaching videos, allowing virtual instructors to explain knowledge points with vivid expressions and clear lip movements.
-
Games and Metaverse CharactersIt enables virtual characters to have real-time voice-driven capabilities, allowing players to have natural dialogue and interaction with NPCs.