lvsa-add-model

Official

Extend LVSA by adding a new model.

AuthorJiusiServe
Version1.0.0
Installs0

System Documentation

What problem does it solve?

LVSA's engine is model-agnostic; adding support for a new video diffusion model involves implementing a dedicated ModelAdapter, wiring it into lvsa/adapters, and providing a minimal example wrapper so the model can be plugged into the generation pipeline.

Core Features & Use Cases

  • Copy an existing adapter (wan.py or hunyuan_video.py) to your model-specific adapter and implement the required methods to handle geometry, QKV, and RoPE.
  • Wire the adapter into examples/<model>_generate.py and, if needed, add a vllm-omni hook to support special pre-attention behavior.
  • Choose the integration path (ABC adapter for single/joint streams or processor swap for asymmetric attention) based on the model's architecture.

Quick Start

Copy the closest LVSA adapter as a template, implement your model’s adapter and example wrapper, and wire it into the adapter registry.

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-add-model
Download link: https://github.com/JiusiServe/LongVideoSparseAttention/archive/main.zip#lvsa-add-model

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.