You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add Android cross-compilation support, chat template API, and utilities
- CMakeLists.txt: When ANDROID_ABI is set, skip Java-based OS/arch
detection and use the Android ABI directly (arm64-v8a, armeabi-v7a,
etc.). Also resolve JNI headers via find_package(JNI) instead of
aborting with a fatal error on Android builds.
- OSInfo.java: Fix Android arm64 native library path. The Android NDK
uses "arm64-v8a" as the ABI directory name (matching jniLibs
convention), not "aarch64". The non-Android Linux path is unchanged.
- InferenceParameters.java: Add PARAM_CHAT_TEMPLATE constant and
setChatTemplate(String) method so callers can pass a custom chat
template string to the inference server.
- ModelParameters.java: Add isDefault(String key) utility method to
check whether a parameter has been explicitly set or is still at its
default value.
- RerankingModelTest.java: Annotate with @ignore so the reranking tests
are skipped in environments where no reranking model is available,
preventing spurious CI failures.
- ChatExample.java: New interactive chat example demonstrating model
loading, conversation history management, and chat-based inference
with the LlamaModel API.
- .gitignore: Track build-android output directory.
- README.md: Add download badge for the pre-built JAR.
https://claude.ai/code/session_016atM3vkBsmaia7QGXKex8w
0 commit comments