public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-misc/llama-cpp/
Date: Wed, 29 Jan 2025 09:37:03 +0000 (UTC)	[thread overview]
Message-ID: <1737978752.e933540939add62cd4de6a464ddf73f912c423e6.davidroman@gentoo> (raw)

commit:     e933540939add62cd4de6a464ddf73f912c423e6
Author:     Sergey Alirzaev <l29ah <AT> riseup <DOT> net>
AuthorDate: Mon Jan 27 11:52:32 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Jan 27 11:52:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e9335409

sci-misc/llama-cpp: new package, add 0_pre4564, 9999

Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net>

 sci-misc/llama-cpp/llama-cpp-0_pre4564.ebuild | 43 +++++++++++++++++++++++++++
 sci-misc/llama-cpp/llama-cpp-9999.ebuild      | 43 +++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/sci-misc/llama-cpp/llama-cpp-0_pre4564.ebuild b/sci-misc/llama-cpp/llama-cpp-0_pre4564.ebuild
new file mode 100644
index 000000000..5d2ad01ea
--- /dev/null
+++ b/sci-misc/llama-cpp/llama-cpp-0_pre4564.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake llvm
+
+LLVM_MAX_SLOT=16
+
+EGIT_REPO_URI="https://github.com/ggerganov/llama.cpp.git"
+inherit git-r3
+
+if [[ "${PV}" != "9999" ]]; then
+	KEYWORDS="~amd64 ~arm64"
+	EGIT_COMMIT="b${PV#0_pre}"
+fi
+
+DESCRIPTION="Port of Facebook's LLaMA model in C/C++"
+HOMEPAGE="https://github.com/ggerganov/llama.cpp"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="cublas tests tools"
+CPU_FLAGS_X86=( avx avx2 f16c )
+
+DEPEND="
+	cublas? ( dev-util/nvidia-cuda-toolkit )"
+RDEPEND="${DEPEND}"
+BDEPEND="${DEPEND}"
+
+src_configure() {
+	local mycmakeargs=(
+		-DLLAMA_CUBLAS="$(usex cublas)"
+		-DLLAMA_BUILD_TESTS="$(usex tests)"
+		-DLLAMA_BUILD_SERVER=OFF
+		-DCMAKE_SKIP_BUILD_RPATH=ON
+		-DBUILD_NUMBER="1"
+	)
+	if use cublas ; then
+		addpredict /dev/nvidiactl
+	fi
+	cmake_src_configure
+}

diff --git a/sci-misc/llama-cpp/llama-cpp-9999.ebuild b/sci-misc/llama-cpp/llama-cpp-9999.ebuild
new file mode 100644
index 000000000..5d2ad01ea
--- /dev/null
+++ b/sci-misc/llama-cpp/llama-cpp-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake llvm
+
+LLVM_MAX_SLOT=16
+
+EGIT_REPO_URI="https://github.com/ggerganov/llama.cpp.git"
+inherit git-r3
+
+if [[ "${PV}" != "9999" ]]; then
+	KEYWORDS="~amd64 ~arm64"
+	EGIT_COMMIT="b${PV#0_pre}"
+fi
+
+DESCRIPTION="Port of Facebook's LLaMA model in C/C++"
+HOMEPAGE="https://github.com/ggerganov/llama.cpp"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="cublas tests tools"
+CPU_FLAGS_X86=( avx avx2 f16c )
+
+DEPEND="
+	cublas? ( dev-util/nvidia-cuda-toolkit )"
+RDEPEND="${DEPEND}"
+BDEPEND="${DEPEND}"
+
+src_configure() {
+	local mycmakeargs=(
+		-DLLAMA_CUBLAS="$(usex cublas)"
+		-DLLAMA_BUILD_TESTS="$(usex tests)"
+		-DLLAMA_BUILD_SERVER=OFF
+		-DCMAKE_SKIP_BUILD_RPATH=ON
+		-DBUILD_NUMBER="1"
+	)
+	if use cublas ; then
+		addpredict /dev/nvidiactl
+	fi
+	cmake_src_configure
+}


             reply	other threads:[~2025-01-29  9:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-29  9:37 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-29  9:37 [gentoo-commits] repo/proj/guru:master commit in: sci-misc/llama-cpp/ David Roman
2025-01-30 15:26 David Roman
2025-01-30 15:26 David Roman
2025-02-01 16:10 David Roman
2025-02-09 10:28 Florian Schmaus
2025-02-21 12:04 David Roman
2025-02-24 10:34 David Roman
2025-03-08 11:18 Lucio Sauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1737978752.e933540939add62cd4de6a464ddf73f912c423e6.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox