Hugging Face 热门模型第 23 名:sand-ai/MAGI-2-preview,255 赞,近期下载 0 次。
标签:safetensors, text-to-video, image-to-video, image-text-to-video, text-to-audio-video, image-to-audio-video, image-text-to-audio-video, audio-video-generation, multimodal, synchronized-audio-video, mixture-of-experts, magi-2-preview
README:

<img alt="Twitter Follow"
src="https://img.shields.io/badge/Twitter-Sand.ai-white?logo=x&logoColor=white"/>
MAGI-2 Preview
Magi-2 Preview is a 114B-parameter unified audio-video generation model that
activates just 6B parameters per token. Built on MagiMoE and co-designed across
architecture, systems, and data, it explores an efficient path to scaling video
generation. The architecture, the training system built around it, and the data
pipeline are described in MAGI-2 Preview: Scaling Video Generation Models
Efficiently; the weights are on Hugging
Face at sand-ai/MAGI-2-preview.
This repository is the inference code. It generates video from a text prompt
(T2V) or from a prompt plus a still image (I2V), with sound generated alongside
the video and muxed into the output file. Clips are 10 seconds long, which is
the only duration the model currently supports. Generation runs in two stages:
magi2_preview denoises the clip at low resolution, and magi2_refiner takes
that result up to 1080p.
Requirements
- NVIDIA Hopper GPUs, 8 of them.
- Python 3.12 and a recent CUDA toolkit.
ffmpeg on PATH, to mux the audio track. Without it the video is still
written, just silently.
Setup
Docker
The published image, sandai/magi-2-preview,
already has the dependencies built, including the ones that need a compiler:
docker pull sandai/magi-2-preview:latest
docker run --gpus all -it -v /path/to/ckpt:/workspace/ckpt sandai/magi-2-preview:latest
There is a tag per commit as well, sandai/magi-2-preview:. Name that
one when reporting a result, because latest moves; the image also records what
it was built from in /etc/magi2-build-info.
Building it yourself is only necessary to change a dependency version, or to
work somewhere the registry is not reachable:
docker build -t magi-2-preview:local .
From source
pip install -r requirements.txt
MAGI-2 also needs MagiAttention
and [MagiCompiler](https://github.com/SandAI-org/MagiCom
原文版权归 Hugging Face 热门模型 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。