-
-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi 👋
Thanks a lot for adding 16 KB page-size support in the latest release by upgrading to NDK r28b.
However, the library still uses onnxruntime-android:1.17.0, which does not include full support for 16 KB page-size.
According to onnxruntime issue #24902
, the JNI layer (libonnxruntime4j_jni.so) also needs to be rebuilt for 16 KB page-size.
This was fixed in PR #24947
and is available in newer onnxruntime releases (≥ 1.20.x).
Suggested fix:
Bump the dependency to a newer onnxruntime-android version (1.20.x or newer) where the JNI layer supports 16 KB page-size.
Optionally allow overriding the onnxruntime version via Gradle for downstream projects.
This will ensure that Sentence-Embeddings-Android works correctly on devices with 16 KB page-size and prevents runtime crashes.
Thanks! 🙏