Ross ROSS = Recommend OSS · open-source software intelligence for agents

tspeterkim/flash-attention-minimal

Flash Attention in ~100 lines of CUDA (forward pass only) observed · 2026-08-28

github.com/tspeterkim/flash-attention-minimal · Cuda · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

25/100

  • Activity 0
  • Release rhythm 35
  • Longevity 64

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 909
  • days_rel: n/a
  • days_push: 611
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1179 stars · 115 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A minimal ~100-line CUDA re-implementation of the Flash Attention forward pass, loadable as a PyTorch extension. It is designed as an educational resource for CUDA beginners, following the notation of the original Flash Attention paper.

Use cases

  • learn how flash attention works in CUDA
  • understand shared memory tiling for attention
  • benchmark flash attention vs manual attention
  • study a minimal CUDA kernel for transformer attention
  • starting point for writing custom attention kernels

When to choose

  • you want to learn how Flash Attention is implemented in CUDA
  • you need a small readable reference implementation of the attention forward pass
  • you are teaching or studying GPU kernel design for transformers

When to avoid

  • you need a backward pass for training
  • you need production performance or float16/tensor core support
  • you need long sequence attention at scale
  • you want a maintained, feature-complete attention library

Facets

library · maturity experimental

machine-learning deep-learning gpu-computing deep-learning large-language-models gpu-computing developer-tools python flash-attention cuda-kernel educational pytorch-extension transformer-attention cuda gpu linux

1 source

Member repositories

RepositoryRoleHealth v2
tspeterkim/flash-attention-minimalmain25

For agents

markdown · JSON · MCP: product_card(name="tspeterkim/flash-attention-minimal")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem