---
title: Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS
canonical_url: "https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS"
md_url: "https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS.md"
repository: Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS
last_updated: 2026-10-18
license: apache-2.0
pipeline_tag: text-to-video-synthesis
tasks:
  - text-to-video-synthesis
base_model:
  - Wan-AI/Wan2.2-T2V-A14B
base_model_relation: quantized
parameters: 23.0B
tensor_type:
  - BF16
  - U8
  - F32
  - F8_E4M3
library_name:
  - diffusers
  - safetensors
  - pytorch
frameworks:
  - PyTorch
downloads: 369
stars: 0
tags:
  - wan2.2
  - ascend
  - diffusers
  - sglang
  - mxfp4
  - w4a4f4
  - daos
---

# Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS

> Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS - Eco-Tech 在 ModelScope 开源的模型。Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS

Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS 是 ModelScope 魔搭社区上的 23.0B 参数text-to-video-synthesis模型，采用 apache-2.0 许可，基于 Wan-AI/Wan2.2-T2V-A14B 构建。

- **Repository**: Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS
- **License**: apache-2.0
- **Tasks**: text-to-video-synthesis
- **Parameters**: 23.0B
- **Base model**: Wan-AI/Wan2.2-T2V-A14B
- **Tags**: wan2.2, ascend, diffusers, sglang, mxfp4, w4a4f4, daos
- **Downloads**: 369
- **Stars**: 0
- **Last updated**: 2026-10-18

Source: https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS

---

# Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS

本模型基于 [Wan2.2-T2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B)，采用 **DAOS W4A4F4 量化方案**，并转换为 Diffusers 格式，支持通过 **SGLang Diffusion** 在昇腾 Ascend 950 NPU 上进行高效视频生成推理。

模型以 **MXFP4（W4A4）** 为主，使用 **MXFP8（W8A8）** 保护敏感层，同时支持 MXFP4/FP8 混合精度 Self-attention。高噪声专家和低噪声专家分别独立量化。

相比原始量化模型，本仓库提供了适配 SGLang Diffusion 的模型权重及量化描述文件，支持 Cache-DiT 加速、多 NPU 并行推理以及按时间步动态切换量化精度。

## 1. 基本信息

| 项目 | 信息 |
|---|---|
| 原始模型 | [Wan2.2-T2V-A14B](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B) |
| 原始量化模型 | [Wan2.2-T2V-A14B-MXFP-W4A4F4-DAOS](https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-MXFP-W4A4F4-DAOS) |
| 模型架构 | 双专家：`high_noise_model`、`low_noise_model` |
| 模型格式 | Diffusers |
| 量化方案 | DAOS W4A4F4（MXFP4 / MXFP8 混合精度） |
| 量化工具 | [msModelSlim](https://gitcode.com/Ascend/msmodelslim) |
| 测试硬件 | Ascend 950 NPU |
| 推理框架 | [SGLang Diffusion](https://github.com/sgl-project/sglang) |
| SGLang 适配 PR | [#43367](https://github.com/sgl-project/sglang/pull/43367) |
| 模型仓库 | [ModelScope](https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS) |

## 2. 量化方法

本模型使用 msModelSlim 提供的 DAOS 量化方案，通过混合精度量化降低视频生成模型的计算及存储开销。

### 2.1 DAOS 配置

| 组件 | 量化精度 | 作用范围 |
|---|---|---|
| 线性层 | MXFP4（W4A4） | 大部分 Transformer Block |
| 线性层 | MXFP8（W8A8） | `blocks.0–4` |
| Self-attention | MXFP4（F4） | 首层以外的 Block |
| Self-attention | FP8 E4M3 | `blocks.0.self_attn` |

两个专家均采用可训练线性量化（TLQ），通过 `minmax_tune` 和 `round_tune` 优化量化参数。高噪声专家额外对部分 FFN 层采用 OASQ 优化，Self-attention 使用旋转量化技术。

详细量化配置、校准数据以及量化命令请参考：

- [原始 DAOS 量化模型](https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-MXFP-W4A4F4-DAOS)
- [DAOS 量化配置文件](https://gitcode.com/Ascend/msmodelslim/blob/master/lab_practice/wan2_2/wan2_2_w4a4f4_mxfp_daos_t2v.yaml)
- [DAOS 量化使用指南](https://gitcode.com/Ascend/msmodelslim/blob/master/docs/zh/knowledge_base/quantization_algorithms/daos/usage_daos.md)

### 2.2 Diffusers 格式适配

本仓库基于原始 msModelSlim 量化模型转换得到，主要包括：

- 将原始模型权重转换为 Diffusers 格式。
- 将 FP4 权重转换为打包存储格式。
- 保留 MXFP4/MXFP8 量化描述及缩放因子。
- 保留激活平滑参数和 Self-attention 的 Q/K 旋转参数。
- 支持在 SGLang 中自动识别量化配置，无需额外指定 `--quantization` 参数。

SGLang 还支持按去噪时间步动态选择 W4A4/W4A8 精度。默认情况下，前两个和最后两个去噪步骤使用 W4A8，其余步骤使用 W4A4。Cache-DiT 会在精度切换时自动清除不兼容的缓存，以保证后续计算使用对应精度的数据。

相关实现见 [SGLang PR #43367](https://github.com/sgl-project/sglang/pull/43367)。

## 3. SGLang 推理部署

### 3.1 环境准备

推理环境需要：

- Ascend 950 NPU
- 兼容的 CANN、PyTorch 和 `torch_npu`
- 支持 DAOS 离线量化推理的 SGLang Diffusion
- 支持 MXFP4 Attention 的 CANN 实验性量化 FlashAttention 扩展

SGLang DAOS 适配实现参考：

[SGLang PR #43367 — Support Wan2.2-T2V-A14B W4A4F4 DAOS with MXFP4 Attention](https://github.com/sgl-project/sglang/pull/43367)

在该 PR 合并之前，需要使用包含相应实现的 SGLang 开发分支。

### 3.2 模型下载

使用 ModelScope 下载转换后的 Diffusers 量化模型：

```bash
pip install modelscope
```

```bash
modelscope download \
  --model Eco-Tech/Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS \
  --local_dir ./Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS
```

### 3.3 推理命令

以下示例使用 **4 张 Ascend 950 NPU**，通过 Ulysses 序列并行和 Cache-DiT 加速生成 81 帧、1280 × 720 分辨率的视频。

```bash
sglang generate \
  --model-path "./Wan2.2-T2V-A14B-Diffusers-MXFP-W4A4F4-DAOS/" \
  --ulysses-degree 4 \
  --tp-size 1 \
  --num-gpus 4 \
  --port 30088 \
  --warmup-mode request \
  --prompt "A cute happy Corgi playing in park sunset animated style" \
  --seed 42 \
  --num-frames 81 \
  --num-inference-steps 40 \
  --height 720 \
  --width 1280 \
  --dit-cpu-offload false \
  --pin-cpu-memory false \
  --quality high \
  --enable-cache-dit true
```

参数说明：

| 参数 | 说明 |
|---|---|
| `--model-path` | Diffusers 格式量化模型路径 |
| `--ulysses-degree 4` | 使用 4 卡 Ulysses 序列并行 |
| `--tp-size 1` | Tensor Parallelism 设置为 1 |
| `--num-gpus 4` | 使用 4 张 NPU |
| `--warmup-mode request` | 启用请求预热 |
| `--num-frames 81` | 生成 81 帧视频 |
| `--num-inference-steps 40` | 使用 40 个去噪步骤 |
| `--quality high` | 使用 High 质量预设 |
| `--enable-cache-dit true` | 启用 Cache-DiT 加速 |

模型量化配置由 SGLang 从检查点自动加载，无需额外指定量化参数。

## 4. 推理性能

**测试硬件：** 4 × Ascend 950 NPU

**分辨率：** 1280 × 720

**视频帧数：** 81

**去噪步数：** 40

**并行配置：** Ulysses 4 / TP 1

**推理配置：** `--quality high --enable-cache-dit true`

| 配置 | 生成耗时 |
|---|---:|
| **DAOS W4A4F4（不含预热）** | **260.89 s** |
| DAOS W4A4F4（包含预热） | 294.21 s |

在上述测试配置下，SGLang Diffusion 使用 DAOS W4A4F4 量化模型，生成 81 帧 720P 视频的耗时为 **260.89 秒（不含预热）**，包含预热的总耗时为 **294.21 秒**。

以上数据为指定硬件及推理配置下的测试结果，实际性能可能因 CANN、torch_npu、SGLang 版本和运行环境而有所不同。

## 5. 参考资料

- [Wan2.2-T2V-A14B 原始模型](https://huggingface.co/Wan-AI/Wan2.2-T2V-A14B)
- [Wan2.2-T2V-A14B-MXFP-W4A4F4-DAOS 原始量化模型](https://www.modelscope.cn/models/Eco-Tech/Wan2.2-T2V-A14B-MXFP-W4A4F4-DAOS)
- [msModelSlim](https://gitcode.com/Ascend/msmodelslim)
- [DAOS 量化配置文件](https://gitcode.com/Ascend/msmodelslim/blob/master/lab_practice/wan2_2/wan2_2_w4a4f4_mxfp_daos_t2v.yaml)
- [DAOS 量化使用指南](https://gitcode.com/Ascend/msmodelslim/blob/master/docs/zh/knowledge_base/quantization_algorithms/daos/usage_daos.md)
- [SGLang Diffusion](https://github.com/sgl-project/sglang)
- [SGLang PR #43367 — DAOS W4A4F4 Support](https://github.com/sgl-project/sglang/pull/43367)
- [MindIE-SD](https://gitcode.com/Ascend/MindIE-SD)
