llama.cpp leverages the ggml tensor library in order to run
large language models (LLMs) provided in the GGUF file format.
+Package: libmtmd0
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends},
+ libllama0
+# Explicitly conflict with Debian official
+Conflicts: llama.cpp
+Description: Inference of large language models in pure C/C++ (multimodal library)
+ mtmd provides multimodl inference.
+
# We only distribute a few very useful tools, with stable CLI options
Package: llama-cpp-tools
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends},
- libllama0, ggml, curl
+ libllama0 (= ${binary:Version}), libmtmd0 (= ${binary:Version}), ggml, curl
Description: Inference of large language models in pure C/C++ (tools)
llama-cli: versatile tool wrapping most features provided by libllama.
It typically allows one to run one-shot prompts or to "chat"
.
llama-bench: benchmarking of large language models or
ggml backends.
+ .
+ llama-mtmd-cli: multimodal support.
Package: libllama0-dev
Section: libdevel
Description: Inference of large language models in pure C/C++ (development files)
Development files required for building software based on the
stable and documented llama.cpp API.
+
+Package: libmtmd0-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends},
+ ggml-dev, libllama0-dev (= ${binary:Version}), libmtmd0 (= ${binary:Version})
+Description: Inference of large language models in pure C/C++ (development files)
+ Development files required for building software based on the
+ stable and documented llama.cpp API.
+
\ No newline at end of file
Subject: improve-cmake-build
---
- CMakeLists.txt | 2 +-
- src/CMakeLists.txt | 4 ++++
- 2 files changed, 5 insertions(+), 1 deletion(-)
+ CMakeLists.txt | 2 +-
+ src/CMakeLists.txt | 4 ++++
+ tools/mtmd/CMakeLists.txt | 4 ++++
+ 3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50801cd..d2becb0 100644
+ set_target_properties(llama PROPERTIES VERSION ${LLAMA_INSTALL_VERSION} SOVERSION 0)
+ endif()
endif()
+diff --git a/tools/mtmd/CMakeLists.txt b/tools/mtmd/CMakeLists.txt
+index 4baa15b..c330f06 100644
+--- a/tools/mtmd/CMakeLists.txt
++++ b/tools/mtmd/CMakeLists.txt
+@@ -35,6 +35,10 @@ set_target_properties(mtmd
+ PROPERTIES
+ PUBLIC_HEADER "${MTMD_PUBLIC_HEADERS}")
+
++if(DEFINED LLAMA_INSTALL_VERSION)
++ message(STATUS "Set mtmd shared library version to ${LLAMA_INSTALL_VERSION}")
++ set_target_properties(mtmd PROPERTIES VERSION ${LLAMA_INSTALL_VERSION} SOVERSION 0)
++endif()
+ install(TARGETS mtmd LIBRARY PUBLIC_HEADER)
+
+ if (NOT MSVC)
override_dh_auto_configure:
dh_auto_configure -- \
- -DBUILD_NUMBER=$(subst 0.0.,,$(DEB_VERSION_UPSTREAM)) \
+ -DLLAMA_BUILD_NUMBER=$(subst 0.0.,,$(DEB_VERSION_UPSTREAM)) \
-DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_HOST_MULTIARCH)" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
\