lvsa-tuning

Official

Tune LVSA for quality vs speed in long videos.

AuthorJiusiServe
Version1.0.0
Installs0

System Documentation

What problem does it solve?

LVSA tuning helps ML practitioners optimize the long-video sparse attention scheduler to achieve a desired balance between visual quality and generation speed, without changing model weights.

Core Features & Use Cases

  • Knob-based optimization: adjust sparsity_scale, window_size, and n_first_frames to control long-range attention budget.
  • Rotation and extrapolation: enable rotate-keyframes and RIFLEx composition to extend horizon without quality collapse.
  • Practical guidance: choose configurations for Wan, HunyuanVideo, or CogVideo-like models to meet latency targets while preserving motion fidelity.

Quick Start

Tune LVSA by adjusting sparsity_scale and window settings to achieve the desired balance between quality and speed for your Wan/HunyuanVideo experiments.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: lvsa-tuning
Download link: https://github.com/JiusiServe/LongVideoSparseAttention/archive/main.zip#lvsa-tuning

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.