Skip to content
RealJosephusPublic

About

Dynamic View Attention

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Dynamic View Attention

Dynamic View Attention

This repository provides the implementation of DVAttn, a custom attention mechanism designed for efficient LLM inference.

Instead of rotating KV Cache, the library applies an equivalent relative rotation solely to the query for each cache turn.

The implementation features custom CUDA kernels that support paged attention, varlen sequences, and fused operations. It is hardcoded for a GQA factor of 16, supports partial RoPE application on the head dimension, and operates on fp32, fp16, and bf16 dtypes.

About

Dynamic View Attention

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages