Skip to content

Conversation

@janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented May 28, 2025

This PR denotes the changes we would make to make FA3 libtorch agnostic if all the torch stable APIs were in place (today they are not!!!). This PR is not meant to be buildable and I've skipped CI for that reason.

To define terminology, we say a custom op library is libtorch agnostic if you can switch out the libtorch version without needing to rebuild the custom op kernels. For example, FA3 built for libtorch version 2.8 would be able to run without needing to rebuild in an environment with libtorch 2.9.

This exercise was to help me determine what sort of APIs torch should support in a stable manner and how (standalone = header only and thus libtorch free, stable = ABI stable and thus libtorch agnostic). I am also hoping to get feedback from @tridao regarding whether these code changes look sufficiently acceptable to achieve libtorch agnosticism.

I've summarized these changes into categories in this GDoc: https://docs.google.com/document/d/1hL-pMgmsj8YlEmZOdbRqW0yfwHyPlJ8usn0xW_GqjFA/edit?tab=t.0

@janeyx99 janeyx99 marked this pull request as draft May 28, 2025 21:37
@janeyx99 janeyx99 force-pushed the libtorch-agno-northstar branch from f100448 to 5843422 Compare May 28, 2025 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant