]> git.argeo.org Git - gpl/argeo-tp.git/commitdiff
Introduce llama4j
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 15 Aug 2024 16:21:15 +0000 (18:21 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 15 Aug 2024 16:21:15 +0000 (18:21 +0200)
rebuild/org.argeo.tp.ml/Makefile
rebuild/org.argeo.tp.ml/com.llama4j/.gitignore [new file with mode: 0644]
rebuild/org.argeo.tp.ml/com.llama4j/META-INF/.gitignore [new file with mode: 0644]
rebuild/org.argeo.tp.ml/com.llama4j/bnd.bnd [new file with mode: 0644]

index d1268dbcbee6bdcf6745b24771ef10ac3edb619f..41203c5f146dcecbe22cba0e3fdc5f84b3b171f8 100644 (file)
@@ -9,7 +9,10 @@ A2_CATEGORY = org.argeo.tp.ml
 JLLAMA_BRANCH=3.3
 JLLAMA_VERSION=$(JLLAMA_BRANCH).0
 
-all: retrieve-jllama osgi
+LLAMA3_COMMIT=5f602500beb593dce2726df7e2dd08b0803aa86b
+LLAMA3_VERSION=0.1.0
+
+all: retrieve-jllama retrieve-llama3 osgi
        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)
 
@@ -30,8 +33,17 @@ retrieve-jllama:
        # diff -crB src/jllama/src/main/java de.kherud.llama/src > remove-jetbrain-annotations.patch
        patch -p0 < remove-jetbrain-annotations.patch 
 
+retrieve-llama3: SRC_DIR=com.llama4j/src/com/llama4j
+retrieve-llama3:
+       rm -rf $(SRC_DIR)
+       mkdir -p $(SRC_DIR)
+       git clone https://github.com/mukel/llama3.java.git $(SRC_DIR)
+       git -C $(SRC_DIR) checkout $(LLAMA3_COMMIT)
+       rm -rf $(SRC_DIR)/.git
+
 BUNDLES = \
 de.kherud.llama \
+com.llama4j \
 
 clean:
        rm -rf $(BUILD_BASE)
diff --git a/rebuild/org.argeo.tp.ml/com.llama4j/.gitignore b/rebuild/org.argeo.tp.ml/com.llama4j/.gitignore
new file mode 100644 (file)
index 0000000..4f00cd9
--- /dev/null
@@ -0,0 +1 @@
+/src/
diff --git a/rebuild/org.argeo.tp.ml/com.llama4j/META-INF/.gitignore b/rebuild/org.argeo.tp.ml/com.llama4j/META-INF/.gitignore
new file mode 100644 (file)
index 0000000..4854a41
--- /dev/null
@@ -0,0 +1 @@
+/MANIFEST.MF
diff --git a/rebuild/org.argeo.tp.ml/com.llama4j/bnd.bnd b/rebuild/org.argeo.tp.ml/com.llama4j/bnd.bnd
new file mode 100644 (file)
index 0000000..db2939f
--- /dev/null
@@ -0,0 +1,4 @@
+
+major: 0
+minor: 1
+micro: 0