Instructions to use zjwfufu/SMD-Wan2.1-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zjwfufu/SMD-Wan2.1-14B with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.1-T2V-14B-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("zjwfufu/SMD-Wan2.1-14B") prompt = "A man with short gray hair plays a red electric guitar." output = pipe(prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
SMD-Wan2.1-14B
4-step SMD for video generation. The student adapters, standalone inference code and reproducible examples are included. Upstream base components are downloaded separately.
Training code · SMD collection
Example
Prompt: A small cream ferry with large dark blue letters "SMD" on its broad side glides slowly across a calm lake. Gentle ripples trail behind the boat. Side view, steady camera, warm afternoon sunlight, realistic footage.
Seed: 42. Size: 832 × 480. Frames: 81. FPS: 16.
Case settings · Generation receipt
Models
| Variant | Weights | Steps | Size |
|---|---|---|---|
| default | LoRA | 4 | 2.46 GB |
Run
Base: Wan-AI/Wan2.1-T2V-14B-Diffusers.
Use Linux, Python 3.12 and an NVIDIA GPU with CUDA support. The included inference code does not import the SMD training repository.
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install huggingface-hub
# Sign in to Hugging Face.
hf auth login
hf download zjwfufu/SMD-Wan2.1-14B --local-dir SMD-Wan2.1-14B --exclude "lora/lora.safetensors"
cd SMD-Wan2.1-14B
python -m pip install -r requirements.txt
python infer.py --output outputs
The example was run on an A100 80 GB. Model CPU offload reduces GPU memory usage; enough host RAM is still needed to load the upstream components. Use --prompt, --seed and --output to generate another case. --base accepts a local upstream snapshot.
The first run downloads the upstream base components to the Hugging Face cache. Plan disk space for those components as well as the released weights; subsequent runs reuse the cache.
The runner prefers smd_lora.safetensors at the repository root and falls back to the retained lora/lora.safetensors path. The two files have identical bytes; the command above excludes the legacy duplicate. Adapter fusion, replacement tensors and sampling settings are unchanged.
Sampling
The released sampler uses raw final-segment scale 0.3. The raw grid is built before the model-specific time shift. The included runner follows sampling.json; changing only an upstream pipeline's step count does not reproduce the student.
External classifier-free guidance is disabled for the students. Any embedded guidance remains specified in sampling.json.
The supplied loader validates and applies all LoRA matrices and saved replacement tensors, with the recorded merge precision. Omitting replacement tensors or using a different base can change the result.
License and attribution
Base components retain the terms described in the Wan-AI/Wan2.1-T2V-14B-Diffusers model card. Original code notices and bundled licenses are retained. Adapter use remains subject to the applicable base-model terms.
- Downloads last month
- 32
Model tree for zjwfufu/SMD-Wan2.1-14B
Base model
Wan-AI/Wan2.1-T2V-14B-Diffusers