mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
sci-misc/llama-cpp: new package, add 0_pre4576, 9999
Signed-off-by: Sergey Alirzaev <l29ah@riseup.net>
This commit is contained in:
1
sci-misc/llama-cpp/Manifest
Normal file
1
sci-misc/llama-cpp/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST llama-cpp-0_pre4576.tar.gz 20506059 BLAKE2B 8f011811e4df1f8d0c26b19f96a709980e078dc7e769b33cbbb03a852a29b489f80c8a1e298fecea53997068f6b7897e4536ba5db289aa445a1a6f16f98adce3 SHA512 21150721524283454ab53e370fdaf4e766f89fbb8d4b43072b10657d8c8b686630616cddbae7954147a2ba0360ad20c4643761f3774481e13a7b180812935c4e
|
||||
33
sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild
Normal file
33
sci-misc/llama-cpp/llama-cpp-0_pre4576.ebuild
Normal file
@@ -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
|
||||
}
|
||||
33
sci-misc/llama-cpp/llama-cpp-9999.ebuild
Normal file
33
sci-misc/llama-cpp/llama-cpp-9999.ebuild
Normal file
@@ -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
|
||||
}
|
||||
11
sci-misc/llama-cpp/metadata.xml
Normal file
11
sci-misc/llama-cpp/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<upstream>
|
||||
<remote-id type="github">ggerganov/llama.cpp</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>l29ah@riseup.net</email>
|
||||
<name>Sergey Alirzaev</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user