Thriving Thriving CU
โ†‘ 28
Flash-Attention-PTX-CUDA Tugbars/Flash-Attention-PTX-CUDA

Hand-written PTX flash attention kernel reaching 218 TFLOPS FP16 on an RTX 5080: faster than vLLM 0.34's FlashAttention-2 on all 34 benchmarked shapes, without WGMMA, TMA, or datacenter hardware.

HEALTH 63 / Stable
// solo builder

// momentum

tracking since W48

// why it's here

  • Active: last commit today
  • Built almost entirely by one person

// how to help

// readme

faster than vLLM 0.34โ€™s FlashAttention-2 on all 34 benchmarked shapes ยท runs a real LLM end-to-end ahead of vLLM ยท no WGMMA, no TMA, no shortcuts


What is this?

A from-scratch flash attention implementation in raw CUDA/PTX targeting consumer NVIDIA GPUs like RTX 5080 or 5090. No libraries, no CUTLASS attention wrappers, no cuDNN โ€” just hand-written kernels optimized step by step from 2.7 TFLOPS to 218 TFLOPS, to the point of beating vLLMโ€™s FlashAttention-2 on every measured shape.

The kernel uses PTX inline assembly for mma.sync.aligned.m16n8k16 tensor core operations with ldmatrix for optimal shared memory โ†’ register transfers, and performs the full softmax in registers using warp shuffle intrinsics, eliminating the largest shared memory bottleneck in standard flash attention implementations.

Consumer Blackwell (sm_120) lacks the datacenter features that make H100/B200 attention kernels fast: no WGMMA (warp group MMA), no TMA (tensor memory accelerator), no warp specialization barriers. This kernel achieves competitive utilization using only the tools available on consumer silicon.

Read the full README on GitHub โ†—

Health score

Is the project alive and maintained right now? A 0โ€“100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity โ€” divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated