Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub jiusiserve/longvideosparseattentionInstall LVSA and generate your first long video. Picks SDPA vs FlashInfer, sets the right LVSA_REFERENCE_LATENT_FRAMES per model (Wan/HunyuanVideo/Cosmos 3.0/CogVideoX), verifies the sparse path engaged.
Tune LVSA's sparsity_scale, window_size, n_first_frames, and reference_latent_frames for a target model and quality/speed trade-off.
Diagnose LVSA failure modes: silent dense fallback, OOM at long sequences, missing output mp4 in Docker, quality regression at training reference.
Add LVSA support for a new video diffusion model — implement the ModelAdapter ABC, or use the processor-swap path (like Cosmos 3.0) when the model's attention is separate-stream/asymmetric — and wire it into examples/.
Configure and run the LVSA vllm-omni plugin: env vars, geometry overrides, hooks for Wan vs HunyuanVideo, Cosmos 3.0 backend seam-swap (LVSA_COSMOS3_BACKEND — engages sparse single-GPU and under Ulysses SP), multi-GPU (tensor-parallel and Ulysses engage LVSA; Ring SP falls back to dense).
Reproduce the headline paper numbers (SotA grid, latency scaling) using the bundled benchmarks/ scripts, VQeval, and VBench-Long.
Training-free block-sparse attention for video diffusion transformers. Speeds up long-video generation by up to 3.81× on HunyuanVideo at 1.5× the training horizon and 3.14× on Wan 1.3B at 6× horizon, and enables generation beyond the training horizon at lengths where dense attention OOMs on 80 GB GPUs — all with no fine-tuning, no model modifications.
torch_npu). FlashInfer is CUDA-only.| Method | $2\times$ (165f) | $3\times$ (249f) | $4\times$ (333f) | Quality (VQeval comp.) at 4× |
|---|---|---|---|---|
| Dense | 566 s | 1145 s | 1930 s | 52.4 |
| RIFLEx | 564 s | 1149 s | 1931 s | 53.6 |
| UltraViCo (arXiv 2511.20123) | 741 s | 1544 s | 2621 s | 58.8 |
| LVSA (SDPA) | 502 s | 796 s | 1021 s | 62.4 |
| LVSA + FlashInfer | 395 s | 621 s | 802 s | 62.3 |
imaging_quality Δ vs Dense: +0.09 / +0.04 / +0.10.| Frame count | Ratio | Dense | LVSA | Speedup |
|---|---|---|---|---|
| 65 | 0.5× | 804 s | 459 s | 1.75× |
| 129 | 1× (training reference) | 2476 s | 932 s | 2.66× |
| 193 | 1.5× | 5191 s | 1361 s | 3.81× |
| 257 | 2× | OOM | 1617 s | LVSA-only (capability) |
| Frame count | Ratio | Dense | LVSA | Speedup |
|---|---|---|---|---|
| 81 | 1× | 168 s | 194 s | 0.87× (no benefit at training horizon) |
| 161 | 2× | 492 s | 347 s | 1.42× |
| 321 | 4× | 1610 s | 700 s | 2.30× |
| 481 | 6× | 3369 s | 1072 s | 3.14× |
# Core library
pip install -e .
# vLLM-Omni plugin (optional — for serving)
pip install -e lvsa-vllm-omni/
# vllm-omni 0.22.0 is a stable release — install it from the git tag to match
# vllm 0.22.0.
pip install "vllm==0.22.0"
pip install --no-build-isolation \
"vllm-omni @ git+https://github.com/vllm-project/[email protected]"
# VQeval (optional — for evaluating generated videos)
pip install -e vqeval/
For Docker-based deployment, see docs/install.md.
python examples/wan_generate.py \
--model /path/to/Wan2.1-T2V-1.3B-Diffusers \
--prompt "A dog running in the forest." \
--num-frames 321 \
--lvsa --flashinfer --rotate-keyframes --auto-keyframes \
--output-name dog_4x.mp4
docker run --gpus '"device=0"' --ipc=host --shm-size=2g \
-v /path/to/models:/models \
lvsa-vllm-omni:latest \
python lvsa-vllm-omni/examples/offline_lvsa.py --family hunyuan \
--model /models/HunyuanVideo-1.5-Diffusers-480p_t2v \
--num-frames 193 --steps 50 --guidance 6.0 --flow-shift 5 \
--prompt "Ocean waves crashing on a rocky coastline." \
--output-name ocean_193f
See docs/quickstart.md for the complete first-run walkthrough.
7-day visitors to each marketplace page
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.