NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #1552 most downloaded on PyPI
tvm ffi
Latest stable
0.1.15.post2
Last release 13 days ago
09 Nov 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 21 of 21 stable releases
7 versions withdrawn
withdrawn after publishing
1 years old
40 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
[Rust] Fix clippy findings by @tqchen in https://github.com/apache/tvm-ffi/pull/942
base_ and the generated handle data_ by @tqchen in https://github.com/apache/tvm-ffi/pull/951impl IntoObjectRef<T> by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/956subject: target(keys) by @tqchen in https://github.com/apache/tvm-ffi/pull/968Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.16-rc3...v0.1.16-rc4
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Constrain Optional's constructors for C++20 by @tfogal in #887
rs_class to rs_object by @Seven-Streams in #908Full Changelog: v0.1.15-post2...v0.1.16-rc3
[Rust] Add IntoObjectRef: owned or borrowed conversion into an obj…
[Rust] Add IntoObjectRef: owned or borrowed conversion into an obj…
This PR removes WalkResult::interrupt_with . WalkResult is a plain enum, so a handler builds the payload variant directly, as with std's ControlFlow::
This PR removes WalkResult::interrupt_with. WalkResult is a plain
enum, so a handler builds the payload variant directly, as with std's
ControlFlow::Break(value):
return WalkResult::InterruptWith(value.into());The helper only added .into() and gave the variant a second spelling.
The Rust guide and the tests now use the variant.
Constrain Optional's constructors for C++20 by @tfogal in #887
rs_class to rs_object by @Seven-Streams in #908Full Changelog: v0.1.15-post2...v0.1.16-rc0
[BUILD][ORCJIT] Use the PyPI LLVM static SDK by @cyx-6 in https://github.com/apache/tvm-ffi/pull/877
placeholder by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/884Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.15-post1...v0.1.15-post2
[FEAT][RUST] Register the reflection of Rust-defined object types by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/859
rs_class by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/869Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.15-post0...v0.1.15-post1
[STUBGEN][RUST] Wrap generated allocator bodies the way rustfmt does by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/847
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.15...v0.1.15-post0
[BUILD] Upgrade ORC JIT to LLVM 23.1.1 by @cyx-6 in https://github.com/apache/tvm-ffi/pull/810
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.14-post1...v0.1.15
[BUILD] Upgrade ORC JIT to LLVM 23.1.1 by @cyx-6 in #810
Full Changelog: v0.1.14-post1...v0.1.15-rc0
Introduce generic reflection::AttrKey<T> descriptors with strict
optional extraction and typed value registration alongside dynamic
attribute names.
Co-locate canonical tvm::ffi::type_attr contracts with their owning
APIs while preserving erased columns and name-based packed registration.
Add native_fn_attr<&Fn>(key) and enum set_native_fn_attr<&Fn>(key)
for explicit key-directed native callbacks.
chore(release): Version bump after release v0.1.14 by @cyx-6 in https://github.com/apache/tvm-ffi/pull/796
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.14-post0...v0.1.14-post1
[EXTRA] Allow callers to disable unique in-place mutation by @tqchen in https://github.com/apache/tvm-ffi/pull/776
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.14...v0.1.14-post0
[FEAT][RUST] Resolve reflected type methods and constructors from Rust by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/707
base and tighten rust_ident by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/742--check mode that reports stale stub files by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/746prefix directive by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/752Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.13-post3...v0.1.14-rc5
[FEAT][RUST] Resolve reflected type methods and constructors from Rust by @Seven-Streams in #707
base and tighten rust_ident by @Seven-Streams in #742--check mode that reports stale stub files by @Seven-Streams in #746prefix directive by @Seven-Streams in #752Full Changelog: v0.1.13-post3...v0.1.14-rc5
Forward single StructuralMutate callback results directly and use
bool-match/result-output dispatch for multiple callbacks. Preserve
owning conversions, typed fallback, first-match behavior, and cold
error-context attachment.
[FEAT][RUST] Resolve reflected type methods and constructors from Rust by @Seven-Streams in #707
base and tighten rust_ident by @Seven-Streams in #742--check mode that reports stale stub files by @Seven-Streams in #746prefix directive by @Seven-Streams in #752Full Changelog: v0.1.13-post3...v0.1.14-rc4
StructuralMap needs identity state only to keep variables consistent
when
descent rewrites a definition. Callback results are separate: callbacks
run
at every occurrence in their selected pre- or post-descent position.
Make default C++ descent the sole owner of FreeVar and DAG remapping,
with
definitions binding rewritten results and unchanged simple definitions
left
absent. Keep the remap ABI stable and use an owned raw-pointer-keyed
store for
efficient identity lookups.
Adopt whole raw TVMFFIAny results by value while leaving
destructor-visible
slot moves pointer-based. Initialize owning Any storage member-wise so
GCC
retains scalar state and avoids an overlapping narrow-store/wide-reload
stall.
Update existing C++ and Python expectations in place and document
StructuralMap as post(D(pre)) alongside StructuralWalk's stateless tree
traversal. Rust remains unchanged for a follow-up.
[FEAT][RUST] Resolve reflected type methods and constructors from Rust by @Seven-Streams in #707
base and tighten rust_ident by @Seven-Streams in #742--check mode that reports stale stub files by @Seven-Streams in #746prefix directive by @Seven-Streams in #752Full Changelog: v0.1.13-post3...v0.1.14-rc3
[FEAT][RUST] Resolve reflected type methods and constructors from Rust by @Seven-Streams in #707
Full Changelog: v0.1.13-post3...v0.1.14-rc2
This PR refactor optimizes StructuralMap.
Expected payloads through structural-mutation hooksExpected/Unexpected.[FEAT][RUST] Resolve reflected type methods and constructors from Rust by @Seven-Streams in #707
Full Changelog: v0.1.13-post3...v0.1.14-rc1
[Rust] Decouple structural mutation dispatch from recursion control (…
[Rust] Decouple structural mutation dispatch from recursion control (…
[TEST] Relax shared DAG hash scaling threshold by @tqchen in https://github.com/apache/tvm-ffi/pull/702
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.13-post2...v0.1.13-post3
[FFI] Keep object optionals pointer-sized by @tqchen in https://github.com/apache/tvm-ffi/pull/701
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.13-post1...v0.1.13-post2
fix(version): Keep source patch ahead of post releases by @tqchen in https://github.com/apache/tvm-ffi/pull/698
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.13-post0...v0.1.13-post1
[FEAT][RUST] Support runtime-checked try_cast between ObjectRef types by @Seven-Streams in https://github.com/apache/tvm-ffi/pull/684
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.13...v0.1.13-post0
[TEST] Relax test_shared_dag_hash_scaling_not_exponential ratio to 4x by @tqchen in https://github.com/apache/tvm-ffi/pull/612
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.12...v0.1.13
chore(doc): Temp workaround missing pytorch docs by @junrushao in https://github.com/apache/tvm-ffi/pull/577
$crate:: in tvm_ffi_dll_export_typed_func! and ensure! by @lucifer1004 in https://github.com/apache/tvm-ffi/pull/590Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.11...v0.1.12
[FEAT] Recursive DLPack container conversion for auto torch.Tensor return by @Kathryn-cat in https://github.com/apache/tvm-ffi/pull/517
super().__init__() in init=False subclasses by @junrushao in https://github.com/apache/tvm-ffi/pull/532tvm_ffi.dtype and tvm_ffi.Device as field type annotations by @junrushao in https://github.com/apache/tvm-ffi/pull/540__init__ installation from __ffi_init__ TypeAttrColumn by @junrushao in https://github.com/apache/tvm-ffi/pull/543frozen=True for immutable instances by @junrushao in https://github.com/apache/tvm-ffi/pull/542__eq__/__ne__/__hash__ to Array, List, Map, Dict by @junrushao in https://github.com/apache/tvm-ffi/pull/545tvm_ffi.dataclasses.* by @junrushao in https://github.com/apache/tvm-ffi/pull/555Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.10...v0.1.11
chore(release): Add GPG Key from Yong Wu by @yongwww in https://github.com/apache/tvm-ffi/pull/474
@py_class decorator for Python-defined FFI dataclasses by @junrushao in https://github.com/apache/tvm-ffi/pull/506py_class and field by @junrushao in https://github.com/apache/tvm-ffi/pull/507structure= to structural_eq= by @junrushao in https://github.com/apache/tvm-ffi/pull/509Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.9...v0.1.10
chore(release): Version bump after release v0.1.8 by @junrushao in https://github.com/apache/tvm-ffi/pull/404
tvm_ffi.Function.__init__" by @junrushao in https://github.com/apache/tvm-ffi/pull/406#embed by @oraluben in https://github.com/apache/tvm-ffi/pull/418Array<T> by @khj809 in https://github.com/apache/tvm-ffi/pull/348compiled_kernel from Triton Call Directly by @sgjzfzzf in https://github.com/apache/tvm-ffi/pull/423__copy__, __deepcopy__, and __replace__ for FFI objects by @junrushao in https://github.com/apache/tvm-ffi/pull/438DefaultFactory support to field reflection by @junrushao in https://github.com/apache/tvm-ffi/pull/446ffi.GetInvalidObject global function for MISSING singleton by @junrushao in https://github.com/apache/tvm-ffi/pull/447field_static_type_index and add more tests by @junrushao in https://github.com/apache/tvm-ffi/pull/456Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.8...v0.1.9
[FIX] Fix the error propagation in the case of tensor arguments by @tqchen in https://github.com/apache/tvm-ffi/pull/409
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.8-post1...v0.1.8-post2
[CUDA] Isolate unified api to only in cubin launcher by @tqchen in https://github.com/apache/tvm-ffi/pull/408
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.8-post0...v0.1.8-post1
chore(release): Version bump after release v0.1.8 by @junrushao in https://github.com/apache/tvm-ffi/pull/404
tvm_ffi.Function.__init__" by @junrushao in https://github.com/apache/tvm-ffi/pull/406Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.8...v0.1.8-post0
[Feature] Support dynamic-style overload for FFI object types by @DarkSharpness in https://github.com/apache/tvm-ffi/pull/286
<tvm/ffi/tvm_ffi.h> by @junrushao in https://github.com/apache/tvm-ffi/pull/369StringViewToDLDataType_ with non-null-terminated strings by @khj809 in https://github.com/apache/tvm-ffi/pull/387tvm_ffi.Function.__init__ by @junrushao in https://github.com/apache/tvm-ffi/pull/395Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.7...v0.1.8-rc0
chore(release): Bump version after v0.1.6 release by @junrushao in https://github.com/apache/tvm-ffi/pull/346
tvm_ffi.device(..., id) where id is numpy or torch scalar by @wrongtest-intellif in https://github.com/apache/tvm-ffi/pull/347--init-* flags by @junrushao in https://github.com/apache/tvm-ffi/pull/295tvm_ffi_configure_target and tvm_ffi_install by @junrushao in https://github.com/apache/tvm-ffi/pull/351main commits by @junrushao in https://github.com/apache/tvm-ffi/pull/353Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.6...v0.1.7-rc0
bugfix: Fix clang-tidy warnings in test_c_env_api.cc by @junrushao in https://github.com/apache/tvm-ffi/pull/318
test_c_env_api.cc by @junrushao in https://github.com/apache/tvm-ffi/pull/318importlib.metadata to locate DSOs by @junrushao in https://github.com/apache/tvm-ffi/pull/306tvm-ffi-config --sourcedir broken in wheels by @junrushao in https://github.com/apache/tvm-ffi/pull/319keep_module_alive to load_module by @junrushao in https://github.com/apache/tvm-ffi/pull/334tvm_ffi.libinfo.load_lib_module by @junrushao in https://github.com/apache/tvm-ffi/pull/336Map.get by @junrushao in https://github.com/apache/tvm-ffi/pull/341Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.5...v0.1.6
[Feature] Support vanilla C++ STL in FFI. by @DarkSharpness in https://github.com/apache/tvm-ffi/pull/228
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.4...v0.1.5-rc4
[Docs] Add kernel library guide by @cyx-6 in https://github.com/apache/tvm-ffi/pull/169
Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.3...v0.1.4
feat(cython): Expose TypeAttr via _lookup_type_attr by @junrushao in https://github.com/apache/tvm-ffi/pull/247
_lookup_type_attr by @junrushao in https://github.com/apache/tvm-ffi/pull/247TypeInfo is properly registered by all classes by @junrushao in https://github.com/apache/tvm-ffi/pull/246--module-name when building Cython by @junrushao in https://github.com/apache/tvm-ffi/pull/248tvm.registry.get_registered_type_keys() by @junrushao in https://github.com/apache/tvm-ffi/pull/249import by @junrushao in https://github.com/apache/tvm-ffi/pull/259__all__ for proper exporting by @junrushao in https://github.com/apache/tvm-ffi/pull/268Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.2...v0.1.3-rc1
This is a minor patch release, mainly to include the fixes support for corner cases and enable cuda-python CUstream compactibility
This is a minor patch release, mainly to include the fixes support for corner cases and enable cuda-python CUstream compactibility
ml_dtypes<0.5 by @oraluben in https://github.com/apache/tvm-ffi/pull/222Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.1...v0.1.2.rc0
This is a minor patch release, mainly to include the latest support for AOT torch-dlpack-ext and reduce JIT deadlock issues
This is a minor patch release, mainly to include the latest support for AOT torch-dlpack-ext and reduce JIT deadlock issues
__init__ method if available by @junrushao in https://github.com/apache/tvm-ffi/pull/174.pyi docstrings into Cython by @junrushao in https://github.com/apache/tvm-ffi/pull/175setuptools_scm for better versioning by @junrushao in https://github.com/apache/tvm-ffi/pull/154?sanitize=true in SVG URL by @junrushao in https://github.com/apache/tvm-ffi/pull/196ml_dtypes<0.5 by @oraluben in https://github.com/apache/tvm-ffi/pull/198register_object by @KEKE046 in https://github.com/apache/tvm-ffi/pull/212Full Changelog: https://github.com/apache/tvm-ffi/compare/v0.1.0...v0.1.1.rc0
This is the first release of tvm-ffi
This is the first release of tvm-ffi
Apache TVM FFI is an open ABI and FFI for ML systems. It is a minimal, framework-agnostic, yet flexible open convention with the following systems in mind:
It has the following technical features:
Full Changelog: https://github.com/apache/tvm-ffi/commits/v0.1.0
One column per month.