tvm ffi
Actively maintained. Last release 3 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install apache-tvm-ffiTVM FFI: Open ABI and FFI for Machine Learning Systems
📚 Documentation | 🚀 Quickstart
Apache TVM FFI is an open ABI and FFI for machine learning systems. It is a minimal, framework-agnostic, yet flexible open convention with the following systems in mind:
- Kernel libraries - ship one wheel to support multiple frameworks, Python versions, and different languages. [FlashInfer]
- Kernel DSLs - reusable open ABI for JIT and AOT kernel exposure frameworks and runtimes. [TileLang][cuteDSL]
- Frameworks and runtimes - a uniform extension point for ABI-compliant libraries and DSLs. [PyTorch][JAX][PaddlePaddle][NumPy/CuPy]
- ML infrastructure - out-of-box bindings and interop across languages. [Python][C++][Rust][XGrammar]
- Coding agents - a unified mechanism for shipping generated code in production.
Features
- Stable, minimal C ABI designed for kernels, DSLs, and runtime extensibility.
- Zero-copy interop across PyTorch, JAX, and CuPy using DLPack protocol.
- Compact value and call convention covering common data types for ultra low-overhead ML applications.