FastWAM wan package#
← 教程资料库 · 策略与模型
本节介绍 LeRobot 的通用功能。请按目标机器人、数据集和运行环境配置示例;用于 AlohaMini 2 / 2 Pro 前,需要确认硬件与接口兼容性。
This package holds FastWAM's model implementation. It mixes a small vendored subset of the official Wan2.2 source tree with FastWAM's own code, kept flat in a single directory.
Vendored from Wan2.2#
Upstream repository: https://github.com/Wan-Video/Wan2.2
Upstream commit:
42bf4cfaa384bc21833865abc2f9e6c0e67233dcLicense: Apache-2.0, matching the license in
LICENSE.txtfrom the upstream repository
Copied files:
model.py(waswan/modules/model.py), trimmed: the flash-attention path (the vendoredattention.pyand the block/modelforwards) was removed. FastWAM's DiT uses SDPA instead (seevideo_dit.py).get_sampling_sigmasinvideo_dit.py(waswan/utils/fm_solvers.py), inlined next to its only caller.
This subset only backs FastWAM's custom MoT video DiT. The Wan2.2 VAE,
UMT5 text encoder, and tokenizer are no longer vendored - they come from
diffusers.AutoencoderKLWan, transformers.UMT5EncoderModel, and
transformers.AutoTokenizer (see components.py and adapters.py).
FastWAM's own code#
video_dit.pybuilds onmodel(sinusoidal_embedding_1d,rope_params,rope_apply, …) and computes attention with SDPA (fastwam_masked_attention). ItsWanContinuousFlowMatchSchedulerusesget_sampling_sigmasfor Wan-compatible inference timesteps.components.py/adapters.pyload the VAE, text encoder, tokenizer, and the custom DiT weights.modular.pydefines the FastWAM model (ActionDiT,MoT,FastWAM, …).