daVinci-MagiHuman uses a single-stream Transformer that takes text tokens, a reference image latent, and noisy video and audio tokens as input, and jointly denoises the video and audio within a unified token sequence.
1# Pull the MagiCompiler Docker image
2docker pull sandai/magi-compiler:latest
3
4# Launch container
5docker run -it --gpus all \
6 -v /path/to/models:/models \
7 sandai/magi-compiler:latest bash
8
9# Install MagiCompiler
10git clone https://github.com/SandAI-org/MagiCompiler
11cd MagiCompiler
12pip install -e . --no-build-isolation --config-settings editable_mode=compat
13cd ..
14
15# Clone daVinci-MagiHuman
16git clone https://github.com/GAIR-NLP/daVinci-MagiHuman
17cd daVinci-MagiHuman
1# Create environment
2conda create -n davinci python=3.12
3conda activate davinci
4
5# Install PyTorch
6pip install torch==2.9.0 torchvision==0.24.0 torchaudio==2.9.0
7
8# Install Flash Attention (Hopper)
9git clone https://github.com/Dao-AILab/flash-attention
10cd flash-attention/hopper && python setup.py install && cd ../..
11
12# Install MagiCompiler
13git clone https://github.com/SandAI-org/MagiCompiler
14cd MagiCompiler
15pip install -e . --no-build-isolation --config-settings editable_mode=compat
16cd ..
17
18# Clone and install daVinci-MagiHuman
19git clone https://github.com/GAIR-NLP/daVinci-MagiHuman
20cd daVinci-MagiHuman
21pip install -r requirements.txt
Download the complete model stack from
HuggingFace and update the paths in the config files under
example/.
We thank the open-source community, and in particular
Wan2.2 and
Turbo-VAED, for their valuable contributions.
This project is released under the
Apache License 2.0.
1@misc{davinci-magihuman-2026,
2 title = {Speed by Simplicity: A Single-Stream Architecture for Fast Audio-Video Generative Foundation Model},
3 author = {SII-GAIR and Sand.ai},
4 year = {2026},
5 url = {https://github.com/GAIR-NLP/daVinci-MagiHuman}
6}