~/lightning

Lightning Talk: A Stable Limited LibTorch ABI? How?! (and Why?)

name:Jane Xu
links:none on file
slides:none on file

Proposal to add a limited stable libtorch ABI that lets C++/CUDA extensions survive PyTorch upgrades by building against a promised surface rather than rebuilding every release. Plan uses a C shim with opaque AOTI tensor handle pointers, a C++ convenience layer called torch stable tensor, and stable IValue marshaling so diverse schemas share one dispatcher. About 2,000 ATen ops map into a single torch_call_dispatcher, FlashAttention 3 is already migrated, and a public wheel built on a nightly with CUDA 12.9 works with torch >= 2.9.

AI-written summary · about

  1. 0:00Stable LibTorch ABI intro
  2. 0:21Unstable LibTorch API problems
  3. 1:23Limited stable ABI concept
  4. 2:25C shim for stable APIs
  5. 3:51UX challenges of C shim
  6. 4:11C++ stable wrappers
  7. 5:13Stable torch macros
  8. 6:38AOTI ops dispatcher
  9. 7:41Stable device utilities
  10. 8:03Header-only stable APIs
  11. 9:05New LibTorch ABI architecture
  12. 9:47Flash Attention 3 migration
  13. 10:30Status and future steps
  14. 11:32Q&A
~/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.