Unified CUDA kernels for FastVideo
Project description
FastVideo Kernel
CUDA kernels for FastVideo video generation.
Installation
git submodule update --init --recursive
cd fastvideo-kernel
pip install .
Usage
from fastvideo-kernel import sliding_tile_attention, video_sparse_attn, moba_attn_varlen
# Example: Sliding Tile Attention
out = sliding_tile_attention(q, k, v, window_sizes, text_len)
# Example: Video Sparse Attention (with Triton fallback)
out = video_sparse_attn(q, k, v, block_sizes, topk=5)
# Example: VMoBA
out = moba_attn_varlen(q, k, v, cu_seqlens_q, cu_seqlens_k, ...)
Requirements
- H100 GPU (sm_90a) for CUDA kernels
- Triton for non-H100 fallback
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastvideo_kernel-0.2.0.tar.gz.
File metadata
- Download URL: fastvideo_kernel-0.2.0.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f450958fc9b7a344007580dc2efa274ce0078985789ec4832289a5c1066b4bfd
|
|
| MD5 |
6be5f2b8c85b4477e1842e7842b2d9a5
|
|
| BLAKE2b-256 |
6f869abca97e3484f6fd6bad31f882d00bd6fc04cdc526a3ad4ce60a5f064fb2
|
Provenance
The following attestation bundles were made for fastvideo_kernel-0.2.0.tar.gz:
Publisher:
fastvideo-kernel-publish.yml on hao-ai-lab/FastVideo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastvideo_kernel-0.2.0.tar.gz -
Subject digest:
f450958fc9b7a344007580dc2efa274ce0078985789ec4832289a5c1066b4bfd - Sigstore transparency entry: 779749908
- Sigstore integration time:
-
Permalink:
hao-ai-lab/FastVideo@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Branch / Tag:
refs/heads/will/fix_kernel - Owner: https://github.com/hao-ai-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
fastvideo-kernel-publish.yml@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file fastvideo_kernel-0.2.0-cp312-cp312-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl.
File metadata
- Download URL: fastvideo_kernel-0.2.0-cp312-cp312-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d4b1e70c9c5fae57a35c20192a11e22cc7b45e20c48248ad49e3334b3c89066
|
|
| MD5 |
c688e5e4ca57dee8b799ff0a71affdd2
|
|
| BLAKE2b-256 |
1298ff5d5f304d700113b858f60a885371f941a19c35ac90cfdd663976de73fc
|
Provenance
The following attestation bundles were made for fastvideo_kernel-0.2.0-cp312-cp312-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl:
Publisher:
fastvideo-kernel-publish.yml on hao-ai-lab/FastVideo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastvideo_kernel-0.2.0-cp312-cp312-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl -
Subject digest:
9d4b1e70c9c5fae57a35c20192a11e22cc7b45e20c48248ad49e3334b3c89066 - Sigstore transparency entry: 779749910
- Sigstore integration time:
-
Permalink:
hao-ai-lab/FastVideo@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Branch / Tag:
refs/heads/will/fix_kernel - Owner: https://github.com/hao-ai-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
fastvideo-kernel-publish.yml@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file fastvideo_kernel-0.2.0-cp311-cp311-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl.
File metadata
- Download URL: fastvideo_kernel-0.2.0-cp311-cp311-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
126ef46a29e3bd06a1c3b109802a0984217843e801d7171c9d0e930137e2ab25
|
|
| MD5 |
22855f385628bbf24de5c400d0db7b3d
|
|
| BLAKE2b-256 |
164f16ba33e534eef06ae771510f5047305ba0c8f6971c1063372b714abf34a5
|
Provenance
The following attestation bundles were made for fastvideo_kernel-0.2.0-cp311-cp311-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl:
Publisher:
fastvideo-kernel-publish.yml on hao-ai-lab/FastVideo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastvideo_kernel-0.2.0-cp311-cp311-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl -
Subject digest:
126ef46a29e3bd06a1c3b109802a0984217843e801d7171c9d0e930137e2ab25 - Sigstore transparency entry: 779749912
- Sigstore integration time:
-
Permalink:
hao-ai-lab/FastVideo@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Branch / Tag:
refs/heads/will/fix_kernel - Owner: https://github.com/hao-ai-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
fastvideo-kernel-publish.yml@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file fastvideo_kernel-0.2.0-cp310-cp310-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl.
File metadata
- Download URL: fastvideo_kernel-0.2.0-cp310-cp310-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bde9647baf7b2bba6908e3b81f56692b7aa505ccb574a413c72736de66896c3
|
|
| MD5 |
c511624f688d279ca778af85877d989f
|
|
| BLAKE2b-256 |
db3b7ec59932021816ba1dd5fa7e61325406ba34f015fbf2b875ab731b9766a5
|
Provenance
The following attestation bundles were made for fastvideo_kernel-0.2.0-cp310-cp310-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl:
Publisher:
fastvideo-kernel-publish.yml on hao-ai-lab/FastVideo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastvideo_kernel-0.2.0-cp310-cp310-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl -
Subject digest:
6bde9647baf7b2bba6908e3b81f56692b7aa505ccb574a413c72736de66896c3 - Sigstore transparency entry: 779749911
- Sigstore integration time:
-
Permalink:
hao-ai-lab/FastVideo@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Branch / Tag:
refs/heads/will/fix_kernel - Owner: https://github.com/hao-ai-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
fastvideo-kernel-publish.yml@1de2cfee4b1836a2a605a265195f81fbb0474e3a -
Trigger Event:
workflow_dispatch
-
Statement type: