Skip to content

Conversation

@yixinhuang48
Copy link
Collaborator

@yixinhuang48 yixinhuang48 commented Jan 14, 2026

Summary

Add support for evaluating FastVideo models (FastWan and base Wan) in the VideoScience benchmark framework.

Changes

  1. backend/api_providers.py: Fix attention backend selection

    • FastWan DMD models → VIDEO_SPARSE_ATTN
    • Base Wan models → FLASH_ATTN
  2. scripts/prepare_fastvideo_experiments.py: New script to prepare evaluation experiments

    • Supports FastWan-1.3B (3-step DMD distilled, ~17x faster)
    • Supports Wan-1.3B (50-step base model)
    • Skip-existing generated video logic to resume interrupted runs
    • Multi-run support for variance analysis

Usage

# Prepare experiments
python scripts/prepare_fastvideo_experiments.py \
    --data-file data/database/data_filtered.jsonl \
    --output-dir out/fastvideo_eval \
    --models both  # or fastwan-1.3b, wan-1.3b

# Run generation
python frontend.py --json out/fastvideo_eval/experiments.json --workers 1

Supported Models

Model Inference Steps Attention Backend
FastVideo/FastWan2.1-T2V-1.3B-Diffusers 3 VIDEO_SPARSE_ATTN
Wan-AI/Wan2.1-T2V-1.3B-Diffusers 50 FLASH_ATTN

Test plan

  • Verified attention backend selection for both model types
  • Tested video generation with FastWan-1.3B
  • Tested video generation with Wan-1.3B base
  • Verified skip-existing logic works correctly

Add support for evaluating FastVideo models (FastWan and base Wan)
in the VideoScience benchmark framework.

Changes:
- backend/api_providers.py: Fix attention backend selection
  - FastWan DMD models use VIDEO_SPARSE_ATTN
  - Base Wan models use FLASH_ATTN for optimal performance

- scripts/prepare_fastvideo_experiments.py: New script to prepare
  evaluation experiments for FastVideo models
  - Supports FastWan-1.3B (3-step DMD distilled)
  - Supports Wan-1.3B (50-step base model)
  - Skip-existing logic to resume interrupted runs
  - Multi-run support for variance analysis

Usage:
  python scripts/prepare_fastvideo_experiments.py \
      --data-file data/database/data_filtered.jsonl \
      --output-dir out/fastvideo_eval \
      --models both

  python frontend.py --json out/fastvideo_eval/experiments.json
@yixinhuang48 yixinhuang48 force-pushed the feature/fastvideo-evaluation branch from 9996096 to 49ea604 Compare January 14, 2026 05:01
@yixinhuang48 yixinhuang48 marked this pull request as draft January 14, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants