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 C230B1580E0 for ; Thu, 30 Jan 2025 15:26:35 +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 A72EA342FF5 for ; Thu, 30 Jan 2025 15:26:35 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9A9951103B6; Thu, 30 Jan 2025 15:26:34 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 91B8F1103B6 for ; Thu, 30 Jan 2025 15:26:34 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 282E5342FF5 for ; Thu, 30 Jan 2025 15:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72B4CAF5 for ; Thu, 30 Jan 2025 15:26:32 +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: <1738109471.ab2a79180fb2b2d9bbe7531d0280d7099c773937.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/Manifest sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild sci-misc/llama-cpp/llama-cpp-9999.ebuild sci-misc/llama-cpp/metadata.xml X-VCS-Directories: sci-misc/llama-cpp/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: ab2a79180fb2b2d9bbe7531d0280d7099c773937 X-VCS-Branch: master Date: Thu, 30 Jan 2025 15:26:32 +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: 2a96f347-f39d-48ea-a90d-39828a508a48 X-Archives-Hash: e834db891a7735f8f62b021ab2c5b751 commit: ab2a79180fb2b2d9bbe7531d0280d7099c773937 Author: Sergey Alirzaev riseup net> AuthorDate: Wed Jan 29 00:11:11 2025 +0000 Commit: David Roman gmail com> CommitDate: Wed Jan 29 00:11:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ab2a7918 sci-misc/llama-cpp: new package, add 0_pre4576, 9999 Signed-off-by: Sergey Alirzaev riseup.net> sci-misc/llama-cpp/Manifest | 1 + sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild | 33 +++++++++++++++++++++++++++ sci-misc/llama-cpp/llama-cpp-9999.ebuild | 33 +++++++++++++++++++++++++++ sci-misc/llama-cpp/metadata.xml | 11 +++++++++ 4 files changed, 78 insertions(+) diff --git a/sci-misc/llama-cpp/Manifest b/sci-misc/llama-cpp/Manifest new file mode 100644 index 000000000..b7c2a37bb --- /dev/null +++ b/sci-misc/llama-cpp/Manifest @@ -0,0 +1 @@ +DIST llama-cpp-0_pre4576.tar.gz 20506059 BLAKE2B 8f011811e4df1f8d0c26b19f96a709980e078dc7e769b33cbbb03a852a29b489f80c8a1e298fecea53997068f6b7897e4536ba5db289aa445a1a6f16f98adce3 SHA512 21150721524283454ab53e370fdaf4e766f89fbb8d4b43072b10657d8c8b686630616cddbae7954147a2ba0360ad20c4643761f3774481e13a7b180812935c4e diff --git a/sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild b/sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild new file mode 100644 index 000000000..18a0a72d9 --- /dev/null +++ b/sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild @@ -0,0 +1,33 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +if [[ "${PV}" != "9999" ]]; then + KEYWORDS="~amd64" + MY_PV="b${PV#0_pre}" + S="${WORKDIR}/llama.cpp-${MY_PV}" + SRC_URI="https://github.com/ggerganov/llama.cpp/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/ggerganov/llama.cpp.git" +fi + +DESCRIPTION="Port of Facebook's LLaMA model in C/C++" +HOMEPAGE="https://github.com/ggerganov/llama.cpp" + +LICENSE="MIT" +SLOT="0" +CPU_FLAGS_X86=( avx avx2 f16c ) + +src_configure() { + local mycmakeargs=( + -DLLAMA_BUILD_TESTS=OFF + -DLLAMA_BUILD_SERVER=ON + -DCMAKE_SKIP_BUILD_RPATH=ON + -DBUILD_NUMBER="1" + ) + 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..18a0a72d9 --- /dev/null +++ b/sci-misc/llama-cpp/llama-cpp-9999.ebuild @@ -0,0 +1,33 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +if [[ "${PV}" != "9999" ]]; then + KEYWORDS="~amd64" + MY_PV="b${PV#0_pre}" + S="${WORKDIR}/llama.cpp-${MY_PV}" + SRC_URI="https://github.com/ggerganov/llama.cpp/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/ggerganov/llama.cpp.git" +fi + +DESCRIPTION="Port of Facebook's LLaMA model in C/C++" +HOMEPAGE="https://github.com/ggerganov/llama.cpp" + +LICENSE="MIT" +SLOT="0" +CPU_FLAGS_X86=( avx avx2 f16c ) + +src_configure() { + local mycmakeargs=( + -DLLAMA_BUILD_TESTS=OFF + -DLLAMA_BUILD_SERVER=ON + -DCMAKE_SKIP_BUILD_RPATH=ON + -DBUILD_NUMBER="1" + ) + cmake_src_configure +} diff --git a/sci-misc/llama-cpp/metadata.xml b/sci-misc/llama-cpp/metadata.xml new file mode 100644 index 000000000..af5a5e03e --- /dev/null +++ b/sci-misc/llama-cpp/metadata.xml @@ -0,0 +1,11 @@ + + + + + ggerganov/llama.cpp + + + l29ah@riseup.net + Sergey Alirzaev + +