A2_CATEGORY = org.argeo.tp.ml
-JLAMA_JNI_SRC=jni/com_github_tjake_jlama
-JLAMA_TARGET_EXEC=libjlama.so
-
## FIXME - DON'T FORGET TO UPDATE THE VERSION IN THE RELATED bnd.bnd FILE!
JLLAMA_BRANCH=3.3
JLLAMA_VERSION=$(JLLAMA_BRANCH).0
LLAMA3_COMMIT=5f602500beb593dce2726df7e2dd08b0803aa86b
LLAMA3_VERSION=0.1.0
-JLAMA_BRANCH=0.2
+JLAMA_BRANCH=0.3
JLAMA_VERSION=$(JLAMA_BRANCH).1
+JLAMA_JNI_SRC=jni/com_github_tjake_jlama
+JLAMA_TARGET_EXEC=libjlama.so
+
all: retrieve-jllama retrieve-llama3 retrieve-jlama osgi jni-jlama
mkdir -p $(SDK_BUILD_BASE)/a2/$(TARGET_ARCH_CATEGORY_PREFIX)/$(A2_CATEGORY)
mv $(SDK_BUILD_BASE)/a2/$(A2_CATEGORY)/de.kherud.llama.$(JLLAMA_BRANCH).jar $(SDK_BUILD_BASE)/a2/$(TARGET_ARCH_CATEGORY_PREFIX)/$(A2_CATEGORY)
mkdir -p $(SRC_DIR)
git clone --branch v$(JLAMA_VERSION) https://github.com/tjake/Jlama.git $(SRC_DIR)
rm -rf $(SRC_DIR)/.git
+ # First common code
rsync -a --delete --exclude module-info.java $(SRC_DIR)/jlama-native/src/main/java/ com.github.tjake.jlama.native/src
- # future: rsync -a --delete --exclude module-info.java $(SRC_DIR)/jlama-native/src/main/java21/ com.github.tjake.jlama.native/src
+ # Then override with Java 21 specific
+ rsync -a --exclude module-info.java $(SRC_DIR)/jlama-native/src/main/java21/ com.github.tjake.jlama.native/src
rsync -a --delete --exclude module-info.java $(SRC_DIR)/jlama-native/src/main/c/ $(JLAMA_JNI_SRC)
BUNDLES = \
Bundle-ManifestVersion: 2\r
Export-Package: com.github.tjake.jlama.tensor.operations;uses:="com.gith\r
ub.tjake.jlama.safetensors,com.github.tjake.jlama.tensor",com.github.tj\r
- ake.jlama.tensor.operations.cnative\r
+ ake.jlama.tensor.operations.cnative,com.github.tjake.jlama.tensor.opera\r
+ tions.util\r
Import-Package: com.github.tjake.jlama.safetensors,com.github.tjake.jlam\r
a.tensor,com.github.tjake.jlama.tensor.operations.cnative,com.github.tj\r
- ake.jlama.util,java.io,java.lang,java.lang.foreign,java.lang.invoke,jav\r
- a.net,java.nio.file,java.nio.file.attribute,java.util,java.util.functio\r
- n,org.slf4j\r
+ ake.jlama.tensor.operations.util,com.github.tjake.jlama.util,java.io,ja\r
+ va.lang,java.lang.foreign,java.lang.invoke,java.net,java.nio.file,java.\r
+ nio.file.attribute,java.util,java.util.function,org.slf4j\r
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=20))"\r
Bundle-RequiredExecutionEnvironment: JavaSE-20\r
-Bundle-Version: 0.2.1.next\r
+Fragment-Host: com.github.tjake.jlama\r
+Bundle-Version: 0.3.1.next\r
Automatic-Module-Name: com.github.tjake.jlama.native\r
Bundle-SymbolicName: com.github.tjake.jlama.native\r
Bundle-Name: com.github.tjake.jlama.native\r