Loading...

文章背景图

Step-Video-T2V 保姆级部署教程:阶跃星辰 300 亿参数文生视频模型,多卡并行与单卡量化全流程

2026-11-09
0
- 字
- 分钟
|

Step-Video-T2V

[{"source":{"position":1,"lines":["

Step-Video-T2V(仓库 <a href="https://github.com/stepfun-ai/Step-Video-T2V">stepfun-ai/Step-Video-T2V)是阶跃星辰(StepFun)开源的300 亿参数文生视频预训练模型,最长可生成 204 帧。技术报告(arXiv:2502.10248)显示它采用深压缩 Video-VAE(空间 16×16、时间 8× 压缩)、双语文本编码器、3D 全注意力 DiT(48 层 / 48 头),并在最后阶段用 Video-DPO 做人类偏好优化。它在中文文生视频上对标了开源与商业引擎,2025 年 3 月 17 日还发布了图生视频姊妹版 Step-Video-TI2V。

"]},"target":{"position":1,"lines":["

Step-Video-T2V(仓库 <a href="https://github.com/stepfun-ai/Step-Video-T2V" target="_blank" rel="noopener">stepfun-ai/Step-Video-T2V)是阶跃星辰(StepFun)开源的300 亿参数文生视频预训练模型,最长可生成 204 帧。技术报告(arXiv:2502.10248)显示它采用深压缩 Video-VAE(空间 16×16、时间 8× 压缩)、双语文本编码器、3D 全注意力 DiT(48 层 / 48 头),并在最后阶段用 Video-DPO 做人类偏好优化。它在中文文生视频上对标了开源与商业引擎,2025 年 3 月 17 日还发布了图生视频姊妹版 Step-Video-TI2V。

"]},"type":"CHANGE"},{"source":{"position":27,"lines":["https://github.com/stepfun-ai/Step-Video-T2V"]},"target":{"position":27,"lines":["<a href="https://github.com/stepfun-ai/Step-Video-T2V" target="_blank" rel="noopener">https://github.com/stepfun-ai/Step-Video-T2V"]},"type":"CHANGE"},{"source":{"position":31,"lines":["仓库 README(https://github.com/stepfun-ai/Step-Video-T2V/blob/main/README.md)"]},"target":{"position":31,"lines":["仓库 README(<a href="https://github.com/stepfun-ai/Step-Video-T2V/blob/main/README.md)" target="_blank" rel="noopener">https://github.com/stepfun-ai/Step-Video-T2V/blob/main/README.md)"]},"type":"CHANGE"},{"source":{"position":35,"lines":["跃问视频:https://yuewen.cn/videos"]},"target":{"position":35,"lines":["跃问视频:<a href="https://yuewen.cn/videos" target="_blank" rel="noopener">https://yuewen.cn/videos"]},"type":"CHANGE"},{"source":{"position":109,"lines":["https://huggingface.co/stepfun-ai/stepvideo-t2v","https://www.modelscope.cn/models/stepfun-ai/stepvideo-t2v"]},"target":{"position":109,"lines":["<a href="https://huggingface.co/stepfun-ai/stepvideo-t2v" target="_blank" rel="noopener">https://huggingface.co/stepfun-ai/stepvideo-t2v","<a href="https://www.modelscope.cn/models/stepfun-ai/stepvideo-t2v" target="_blank" rel="noopener">https://www.modelscope.cn/models/stepfun-ai/stepvideo-t2v"]},"type":"CHANGE"},{"source":{"position":114,"lines":["https://huggingface.co/stepfun-ai/stepvideo-t2v-turbo","https://www.modelscope.cn/models/stepfun-ai/stepvideo-t2v-turbo"]},"target":{"position":114,"lines":["<a href="https://huggingface.co/stepfun-ai/stepvideo-t2v-turbo" target="_blank" rel="noopener">https://huggingface.co/stepfun-ai/stepvideo-t2v-turbo","<a href="https://www.modelscope.cn/models/stepfun-ai/stepvideo-t2v-turbo" target="_blank" rel="noopener">https://www.modelscope.cn/models/stepfun-ai/stepvideo-t2v-turbo"]},"type":"CHANGE"},{"source":{"position":136,"lines":["

官方 README 原文:"The open-source project DiffSynth-Studio by ModelScope offers single-GPU inference and quantization support"——单卡方案请看 https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/stepvideo ,本文同系列已写 DiffSynth-Studio 部署教程。

"]},"target":{"position":136,"lines":["

官方 README 原文:"The open-source project DiffSynth-Studio by ModelScope offers single-GPU inference and quantization support"——单卡方案请看 <a href="https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/stepvideo" target="_blank" rel="noopener">https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/stepvideo ,本文同系列已写 DiffSynth-Studio 部署教程。

"]},"type":"CHANGE"},{"source":{"position":263,"lines":["
  • 官方 README:https://github.com/stepfun-ai/Step-Video-T2V/blob/main/README.md
  • ","
  • 论文:https://arxiv.org/abs/2502.10248
  • ","
  • 权重(HF):https://huggingface.co/stepfun-ai/stepvideo-t2v
  • ","
  • 单卡方案:https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/stepvideo
  • "]},"target":{"position":263,"lines":["
  • 官方 README:<a href="https://github.com/stepfun-ai/Step-Video-T2V/blob/main/README.md" target="_blank" rel="noopener">https://github.com/stepfun-ai/Step-Video-T2V/blob/main/README.md
  • ","
  • 论文:<a href="https://arxiv.org/abs/2502.10248" target="_blank" rel="noopener">https://arxiv.org/abs/2502.10248
  • ","
  • 权重(HF):<a href="https://huggingface.co/stepfun-ai/stepvideo-t2v" target="_blank" rel="noopener">https://huggingface.co/stepfun-ai/stepvideo-t2v
  • ","
  • 单卡方案:<a href="https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/stepvideo" target="_blank" rel="noopener">https://github.com/modelscope/DiffSynth-Studio/tree/main/examples/stepvideo
  • "]},"type":"CHANGE"}]

    安装部署(实操步骤)

    1. 前置准备

    • 项目仓库:stepfun-ai/Step-Video-T2V(https://github.com/stepfun-ai/Step-Video-T2V)
    • 需要本机具备 Git;按项目语言准备对应运行时(Python / Node.js / Go / Java 等)
    • 建议先在本机或测试服务器上跑通,再部署到生产环境
    • 遇到依赖版本问题时,以仓库 README 与 Releases 说明为准

    2. 官方安装 / 启动命令(摘自项目 README,可直接复制执行)

    git clone https://github.com/stepfun-ai/Step-Video-T2V.git
    conda create -n stepvideo python=3.10
    conda activate stepvideo
    
    cd Step-Video-T2V
    pip install -e .
    pip install flash-attn --no-build-isolation  ## flash-attn is optional
    python api/call_remote_server.py --model_dir where_you_download_dir &  ## We assume you have more than 4 GPUs available. This command will return the URL for both the caption API and the VAE API. Please use the returned URL in the following command.
    
    parallel=4  # or parallel=8
    url='127.0.0.1'
    model_dir=where_you_download_dir
    
    tp_degree=2
    ulysses_degree=2
    
    # make sure tp_degree x ulysses_degree = parallel
    torchrun --nproc_per_node $parallel run_parallel.py --model_dir $model_dir --vae_url $url --caption_url $url  --ulysses_degree $ulysses_degree --tensor_parallel_degree $tp_degree --prompt "一名宇航员在月球上发现一块石碑,上面印有“stepfun”字样,闪闪发光" --infer_steps 50  --cfg_scale 9.0 --time_shift 13.0

    3. 部署流程

    1. 克隆仓库:git clone https://github.com/stepfun-ai/Step-Video-T2V
    2. 进入目录后按上面的官方命令安装依赖
    3. 参考 README 的配置说明填写配置文件或环境变量
    4. 按官方说明启动服务,确认监听端口与访问地址
    5. 浏览器访问验证功能,确认无报错后再开放外网

    4. 常见问题排查

    • 依赖安装失败:先升级包管理器,再确认运行时版本符合 README 要求
    • 启动报端口占用:修改配置中的端口或释放被占用端口
    • 页面打不开:检查防火墙 / 安全组是否放行对应端口
    • 功能异常:查看运行日志,对照 Issues 中同类问题处理

    5. 官方链接

    评论交流

    文章目录