Skip to content

RealJosephus/dvattn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors