Skip to content

[etrt-python] Implement python bindings for ET runtime library#14

Draft
vidas wants to merge 6 commits intoaifoundry-org:masterfrom
vidas:etrt-python
Draft

[etrt-python] Implement python bindings for ET runtime library#14
vidas wants to merge 6 commits intoaifoundry-org:masterfrom
vidas:etrt-python

Conversation

@vidas
Copy link
Copy Markdown
Member

@vidas vidas commented Nov 5, 2025

Implement python bindings (using nanobind) for ET runtime library.

The code was quickly vibed in a short session with the single interim goal to have a way for tinygrad to interface ET.
Improvements are to come.

Issues/limitations:

  • Lifetimes are exposed as is in the underlying library. ET runtime performs actual hardware calls asynchronously in a separate thread, therefore we need to keep buffers alive until we get confirmation that operation is over. Potential solution - keep buffer references within the binding layer. Do we want async python here?
  • Memory lists aren't supported.
  • Tracing API is not supported (yet).
  • Management API is not supported.
  • "it's full of bugs".

nanobind is fetched during build time from upstream.

@vidas vidas changed the title [etrt-python] Implement python binding for ET runtime library [etrt-python] Implement python bindings for ET runtime library Nov 5, 2025
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