436  
查询码: 00000772
MiniMax-H3-w8a8-adaln部署(vLLM-Omni · SDK 4.5.0 · X86)
专家 2026年09月17日 发布 ,于 2026年11月03日 编辑

一、测试条件

  • SDK版本:4.5.0

  • GPU型号:BI150(BI-V150S)

  • 模型所需最低GPU数量:8

  • 主机内存:建议 ≥192GB

  • CPU架构:x86_64

  • 推理框架:vLLM-Omni(镜像 minimax20261013:v1)

  • 权重:DiT W8A8(minimax-h3-w8a8-adaln/FL2VA)

  • 接口:POST /v1/videos/sync

  • 推荐输出:width=1344 height=768,fps=24


二、安装SDK4.5.0

sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn

密码请咨询天数售后。

get /client_tmp/support/sjw/corex-driver-linux64-4.5.0.20260712_x86_64.run /home
bash /home/corex-driver-linux64-4.5.0.20260712_x86_64.run --disable-dkms

三、创建容器

1、获取镜像(宿主机)

sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn
get /client_tmp/support/sjw/minimax20261013.tar.gz /home
cd /home
gunzip -d minimax20261013.tar.gz
docker load -i /home/minimax20261013.tar

2、下载量化脚本(宿主机)

sftp -P 29880 iluvatar_mr@iftp.iluvatar.com.cn
get /client_tmp/support/kk/quantize_minimax_h3_w8a8.py /home/quantize_minimax_h3_w8a8.py

3、创建容器

docker run -dit \
  -v /usr/src:/usr/src \
  -v /lib/modules:/lib/modules \
  -v /dev:/dev \
  -v /data:/data \
  -v /home:/home \
  --network=host \
  --name=minimax \
  --ipc=host \
  --privileged \
  --cap-add=ALL \
  --pid=host \
  minimax20261013:v1 \
  /bin/bash

四、模型部署

1、进入容器

docker exec -it minimax bash

2、下载 BF16 权重

pip install modelscope
mkdir -p /data/models
cd /data/models
modelscope download --model MiniMax/MiniMax-H3 --local_dir ./MiniMax-H3

3、量化 FL2VA(W8A8 + AdaLN)

python3 /home/quantize_minimax_h3_w8a8.py \
--src /data/models/MiniMax-H3/FL2VA \
--dst /data/models/minimax-h3-w8a8-adaln/FL2VA \
--include-adaln

4、启动服务

以下操作在容器内执行。T2VA 与 FL2VA 共用同一 FL2VA 实例,通过请求里的 extra_params.task 区分。

export MODEL=/data/models/minimax-h3-w8a8-adaln/FL2VA
export PORT=8091
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
export VLLM_WORKER_MULTIPROC_METHOD=spawn
export VLLM_OMNI_VIDEO_SYNC_TIMEOUT=14400
export NUMPY_MADVISE_HUGEPAGE=0
export VLLM_OMNI_DLO_ATTN_OVERLAP=2
export VLLM_OMNI_ILU_H3_INT8_A2A=1
vllm serve "${MODEL}" \
  --omni \
  --trust-remote-code \
  --host 0.0.0.0 \
  --port "${PORT}" \
  --num-gpus 8 \
  --usp 8 \
  --ring 1 \
  --text-encoder-tp-size 8 \
  --enable-distributed-layerwise-offload \
  --vae-parallel-mode tile \
  --vae-use-tiling \
  --vae-patch-parallel-size 8 \
  --diffusion-attention-backend SAGE_ATTN \
  --cache-backend cache_dit \
  --enable-cache-dit-summary

日志出现 Application startup complete 后,另开终端检查:

curl http://127.0.0.1:8091/v1/models

五、测试 demo

另开终端进入同一容器后执行。duration 取值 4–15;num_inference_steps=30、duration=15 时单次约数分钟到十余分钟,curl -m 建议 7200。

docker exec -it minimax bash
export API_URL=http://127.0.0.1:8091/v1/videos/sync
export ASSETS=/data/models/MiniMax-H3/assets
mkdir -p /home/minimax-verify
cd /home/minimax-verify

1、T2VA

curl -sS -m 7200 -X POST "${API_URL}" \
  -F 'prompt=By the river, the elephant splashes in the water and gives itself a bath with its trunk.' \
  -F width=1344 \
  -F height=768 \
  -F fps=24 \
  -F num_inference_steps=30 \
  -F flow_shift=12 \
  -F seed=1101 \
  -F aspect_ratio=16:9 \
  -F 'extra_params={"task":"t2va","duration":15,"audio_flow_shift":3.0}' \
  -o t2va_15s.mp4 \
  -w "HTTP %{http_code} size=%{size_download} time=%{time_total}s\n"

2、FL2VA

与 T2VA 共用同一实例。参考图使用权重包内资源。

curl -sS -m 7200 -X POST "${API_URL}" \
  -F 'prompt=A claymation fox turns its head toward the camera and blinks, warm soft studio light, gentle stop-motion texture.' \
  -F "input_reference=@${ASSETS}/fl2va-clay-fox-reference.png;type=image/png" \
  -F fps=24 \
  -F num_inference_steps=30 \
  -F flow_shift=12 \
  -F seed=42 \
  -F 'extra_params={"task":"fl2va","duration":4.0,"frame_indices":[0],"audio_flow_shift":3.0}' \
  -o fl2va.mp4 \
  -w "HTTP %{http_code} size=%{size_download} time=%{time_total}s\n"

3、结果验证

通过条件为 HTTP 200,且可被 ffprobe / ffmpeg 正常解析。

ffprobe -v error -show_entries \
  stream=index,codec_name,width,height,r_frame_rate,sample_rate,channels \
  -of json t2va_15s.mp4
ffmpeg -v error -i t2va_15s.mp4 -map 0:v:0 -map 0:a:0 -f null -
ffprobe -v error -show_entries \
  stream=index,codec_name,width,height,r_frame_rate,sample_rate,channels \
  -of json fl2va.mp4
ffmpeg -v error -i fl2va.mp4 -map 0:v:0 -map 0:a:0 -f null -
笔记



  目录
    天数智芯知识库系统 -V 5.2.7 -wcp