~/lightning

FlexCP: FlexAttention for Long Sequence Training...

Lightningat PyTorch Conference 2025 · 2025-10-22..10-23· [machine-learning, web-performance]
name:Xilun Wu
links:none on file
links:none on file
slides:none on file

FlexAttention integrates with context parallelism to shard QKV plus the block mask and rewrite mask functions so local QKV indexes map to global ones; an automatic load balancer called process time run robin (PTR) reorders Q indices by row density to avoid imbalance. Benchmarks on 128k sequences show PTR gives >20% speedup on medium/large docs (density ~15%) and >50% on full causal documents, while small-docs (2% density) see minor overhead; ring-attention support is still pending and APIs land in PyTorch nightly.

AI-written summary · about

  1. 0:00FlexAttention & Context Parallel intro
  2. 1:05FlexAttention recap & masking
  3. 2:53Context Parallel Shot for block masks
  4. 3:55Sparsity for load balancing
  5. 6:31Round Robin load balancing
  6. 9:45Benchmarks & future plans
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.