Skip to main content

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

fastvideo_kernel-0.2.0.tar.gz (3.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastvideo_kernel-0.2.0-cp312-cp312-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64manylinux: glibc 2.35+ x86-64

fastvideo_kernel-0.2.0-cp311-cp311-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64manylinux: glibc 2.35+ x86-64

fastvideo_kernel-0.2.0-cp310-cp310-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64manylinux: glibc 2.35+ x86-64

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

Hashes for fastvideo_kernel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f450958fc9b7a344007580dc2efa274ce0078985789ec4832289a5c1066b4bfd
MD5 6be5f2b8c85b4477e1842e7842b2d9a5
BLAKE2b-256 6f869abca97e3484f6fd6bad31f882d00bd6fc04cdc526a3ad4ce60a5f064fb2

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for fastvideo_kernel-0.2.0-cp312-cp312-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 9d4b1e70c9c5fae57a35c20192a11e22cc7b45e20c48248ad49e3334b3c89066
MD5 c688e5e4ca57dee8b799ff0a71affdd2
BLAKE2b-256 1298ff5d5f304d700113b858f60a885371f941a19c35ac90cfdd663976de73fc

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for fastvideo_kernel-0.2.0-cp311-cp311-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 126ef46a29e3bd06a1c3b109802a0984217843e801d7171c9d0e930137e2ab25
MD5 22855f385628bbf24de5c400d0db7b3d
BLAKE2b-256 164f16ba33e534eef06ae771510f5047305ba0c8f6971c1063372b714abf34a5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for fastvideo_kernel-0.2.0-cp310-cp310-manylinux_2_34_x86_64.manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 6bde9647baf7b2bba6908e3b81f56692b7aa505ccb574a413c72736de66896c3
MD5 c511624f688d279ca778af85877d989f
BLAKE2b-256 db3b7ec59932021816ba1dd5fa7e61325406ba34f015fbf2b875ab731b9766a5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page