From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E305C1580E0 for ; Wed, 29 Jan 2025 09:37:24 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id CCE4C3430F6 for ; Wed, 29 Jan 2025 09:37:24 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0FDD411047B; Wed, 29 Jan 2025 09:37:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id F05C3110477 for ; Wed, 29 Jan 2025 09:37:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A44763430B5 for ; Wed, 29 Jan 2025 09:37:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D78625D5 for ; Wed, 29 Jan 2025 09:37:03 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1737978752.e933540939add62cd4de6a464ddf73f912c423e6.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-misc/llama-cpp/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-misc/llama-cpp/llama-cpp-0_pre4564.ebuild sci-misc/llama-cpp/llama-cpp-9999.ebuild X-VCS-Directories: sci-misc/llama-cpp/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: e933540939add62cd4de6a464ddf73f912c423e6 X-VCS-Branch: master Date: Wed, 29 Jan 2025 09:37:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6dd10a1c-b7a0-405e-9fa4-bc1a1a842c6d X-Archives-Hash: d959939d317070d22987bc82ebc8e930 commit: e933540939add62cd4de6a464ddf73f912c423e6 Author: Sergey Alirzaev riseup net> AuthorDate: Mon Jan 27 11:52:32 2025 +0000 Commit: David Roman gmail 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 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 +}