~/lightning

Lightning Talk: FTorch: A Library To Couple PyTorch ML Models With Fortran Climate Models

Lightningat PyTorch Conference 2025 · 2025-10-22..10-23· [python]
name:M Archer
links:none on file
slides:none on file

FTorch is an open-source library that directly loads torchscript models into Fortran via LibTorch via Fortran 2003 bindings, bypassing Python and supporting GPU backends. It provides a zero-copy torch accessor to avoid costly memory transposes between Fortran column-major arrays and PyTorch row-major tensors, ships a comprehensive example suite under an MIT license, and already runs inference in real codes. Work-in-progress features add autograd and online training so gradients and optimizers (SGD/Adam) can update models inside the climate model.

AI-written summary · about

  1. 0:00FTorch introduction
  2. 0:43Weather and climate models
  3. 2:06Replacing parameterizations
  4. 3:08Language interoperability
  5. 3:50FTorch workflow
  6. 5:15FTorch advantages
  7. 6:42Memory layout in FTorch
  8. 7:24TorchScript alternatives
  9. 7:46Fortran code example
  10. 8:27Online training in FTorch
  11. 9:54Loss function and autograd
  12. 11:18Summary and future
~/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.