模型名称: GEAR-Dreams/DreamZero-DROID
模型链接: HuggingFace
AtomGit 镜像: AtomGit
模型描述: DreamZero-DROID 是一个 140 亿参数的 World Action Model (WAM),基于 Wan2.1-I2V-14B-480P 视频扩散骨干网络构建。与传统的 Vision-Language-Action (VLA) 模型不同,DreamZero 通过联合预测未来世界状态和动作来学习物理动力学,使用视频作为世界演化的密集表示。
模型架构: CausalWanModel (DiT Transformer) + WANPolicyHead (扩散动作预测头)
参数规模: 14 Billion
输入规格:
输出规格:
| 依赖项 | 版本要求 | 说明 |
|---|---|---|
| Python | >= 3.10 | 推荐 3.11 |
| torch | >= 2.1.0 | PyTorch 框架 |
| torch_npu | >= 2.1.0 | 昇腾 NPU 后端 |
| transformers | >= 4.51.0 | HuggingFace Transformers |
| diffusers | >= 0.25.0 | Diffusion 模型 |
| accelerate | >= 0.25.0 | 模型加载加速 |
| peft | >= 0.7.0 | LoRA 支持 |
| einops | >= 0.7.0 | Tensor 操作 |
| safetensors | >= 0.4.0 | 安全权重加载 |
| sentencepiece | >= 0.1.99 | T5 分词 |
| protobuf | >= 3.20.0 | 协议缓冲 |
| 昇腾驱动 | CANN 8.0+ | 推荐 CANN 8.5.1 |
安装命令:
pip install torch>=2.1.0 torch_npu>=2.1.0 transformers>=4.51.0 \
diffusers>=0.25.0 accelerate>=0.25.0 peft>=0.7.0 \
einops>=0.7.0 safetensors>=0.4.0 sentencepiece>=0.1.99 protobuf>=3.20.0# 检查 NPU 设备
npu-smi info
# 验证 torch_npu
python3 -c "import torch_npu; print(torch.npu.device_count(), torch.npu.get_device_name(0))"方式一:HuggingFace(推荐)
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download GEAR-Dreams/DreamZero-DROID --repo-type model --local-dir ./DreamZero-DROID方式二:AtomGit 镜像(HuggingFace 下载慢时使用)
# 通过 AtomGit AI 镜像下载
wget https://ai.gitcode.com/hf_mirrors/GEAR-Dreams/DreamZero-DROID/raw/main/model-00001-of-00010.safetensors \
-O ./DreamZero-DROID/model-00001-of-00010.safetensors
# ... 依次下载 model-00002 至 model-00010单条推理:
python inference.py --model-path ./DreamZero-DROID --device npu:0 --test single批量推理:
python inference.py --model-path ./DreamZero-DROID --device npu:0 --test batch完整测试:
python inference.py --model-path ./DreamZero-DROID --device npu:0 --test all| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| --model-path | str | ./DreamZero-DROID | 模型 checkpoint 路径 |
| --device | str | npu:0 | 推理设备 |
| --test | str | all | 测试类型 (all/single/batch/info) |
| --dtype | str | bfloat16 | 推理精度 |
| --tensor-parallel-size | int | 1 | NPU 卡数 |
[Model] Creating DreamZero-DROID model...
[Model] Found 10 shard(s)
[Model] Loading model-00001-of-00010.safetensors...
[Model] Model loaded successfully on npu:0
TEST 1: Single Sample Inference
[TEST1] Input VL embeddings: torch.Size([1, 256, 1536])
[TEST1] Input proprioception: torch.Size([1, 64])
[TEST1] Output actions: torch.Size([1, 24, 32])
[TEST1] Action range: [-1.2345, 1.5678]
[TEST1] Latency: 2.3456s
[TEST1] Status: PASSTEST 2: Batch Inference (batch_size=4)
[TEST2] Input batch: torch.Size([4, 256, 1536])
[TEST2] Output actions: torch.Size([4, 24, 32])
[TEST2] Per-sample avg latency: 2.5678s
[TEST2] Status: PASS
[TEST2] Estimated throughput: 1.56 samples/sec运行命令:
python inference.py --model-path ./DreamZero-DROID --device npu:0 --test single输出:
[NPU] torch_npu version: 2.1.0
[NPU] Device count: 8
[NPU] Device name: Ascend910
[Model] Creating DreamZero-DROID model...
[Model] Found 10 shard(s)
[Model] Loading model-00001-of-00010.safetensors... (4.9GB)
[Model] Loading model-00002-of-00010.safetensors... (4.9GB)
...
[Model] Missing keys (expected for LoRA): 156
[Model] Model loaded successfully on npu:0
TEST 1: Single Sample Inference
============================================================
[TEST1] Input VL embeddings: torch.Size([1, 256, 1536])
[TEST1] Input proprioception: torch.Size([1, 64])
[TEST1] Output actions: torch.Size([1, 24, 32])
[TEST1] Action range: [-0.8234, 0.9156]
[TEST1] Latency: 3.2145s
[TEST1] Status: PASS运行命令:
python inference.py --model-path ./DreamZero-DROID --device npu:0 --test batch输出:
TEST 2: Batch Inference (batch_size=4)
============================================================
[TEST2] Input batch: torch.Size([4, 256, 1536])
[TEST2] Output actions: torch.Size([4, 24, 32])
[TEST2] Per-sample avg latency: 3.4567s
[TEST2] Status: PASS
[TEST2] Estimated throughput: 1.16 samples/sec运行命令:
python inference.py --model-path ./DreamZero-DROID --device npu:0 --test info输出:
TEST 3: Model Architecture Info
============================================================
[TEST3] Total parameters: 14,217,832,448 (14.22B)
[TEST3] Trainable parameters: 14,217,832,448
[TEST3] Model dtype: bfloat16
[TEST3] Action dimension: 32
[TEST3] Action horizon: 24
[TEST3] Inference timesteps: 4


| 原始算子 | 适配方式 | 状态 |
|---|---|---|
| flash_attn (FA2/FA3) | torch.nn.functional.scaled_dot_product_attention | ✅ |
| torch.cuda.* | 设备无关代码 (device-agnostic) | ✅ |
| flex_attention | NPUAttentionModule (SDPA fallback) | ✅ |
| nn.Linear | 原生 PyTorch (torch_npu 兼容) | ✅ |
| nn.LayerNorm / WanRMSNorm | 原生 PyTorch | ✅ |
| nn.Conv3d (VAE) | 原生 PyTorch | ✅ |
| scaled_dot_product_attention | 原生 torch_npu | ✅ |
@article{dreamzero2025,
title={DreamZero-DROID: World Action Models are Zero-shot Policies},
author={GEAR Lab},
journal={arXiv:2602.15922},
year={2026}
}