FlashRT FP8 KV Attention

Native CUDA XQA attention for BF16 queries over FP8 E4M3 paged K/V cache.

Available Functions

  • xqa_bf16_fp8kv
  • causal_spec_mask
  • default_page_table
  • allocate_workspace

Scope

v2 supports validated production decode/verify profiles:

  • BF16 Q/O
  • FP8 E4M3 K/V cache
  • Q/KV/head-dim 24/4/256, 32/8/128, 32/16/128, and 16/8/128
  • page size 128
  • speculative/decode q_seq <= 32

This is not a generic FlashAttention replacement. It is the direct FP8-KV XQA decode/verify kernel used to keep long-context transformer runtimes off BF16 KV cache bandwidth.

Minimal Usage

from kernels import get_kernel

attn = get_kernel("flashrt/fp8-kv-attention", version=2, trust_remote_code=True)
out = attn.xqa_bf16_fp8kv(q_bf16, k_cache_fp8, v_cache_fp8)

Pass explicit page_table, seq_lens, mask, out, semaphores, and scratch tensors for CUDA Graph/static-buffer runtimes.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support