mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
take over llama.cpp-vulkan
This commit is contained in:
parent
f1bf837e9f
commit
7d7f18db9a
2 changed files with 36 additions and 15 deletions
14
.SRCINFO
14
.SRCINFO
|
|
@ -1,6 +1,6 @@
|
|||
pkgbase = llama.cpp-vulkan
|
||||
pkgdesc = Port of Facebook's LLaMA model in C/C++ (with Vulkan GPU optimizations)
|
||||
pkgver = b6039
|
||||
pkgver = b6041.r6045.g94933c8c2
|
||||
pkgrel = 1
|
||||
url = https://github.com/ggerganov/llama.cpp
|
||||
arch = x86_64
|
||||
|
|
@ -15,20 +15,22 @@ pkgbase = llama.cpp-vulkan
|
|||
depends = gcc-libs
|
||||
depends = glibc
|
||||
depends = python
|
||||
depends = python-numpy
|
||||
depends = python-sentencepiece
|
||||
depends = vulkan-icd-loader
|
||||
optdepends = python-pytorch
|
||||
optdepends = python-numpy: needed for convert_hf_to_gguf.py
|
||||
optdepends = python-safetensors: needed for convert_hf_to_gguf.py
|
||||
optdepends = python-sentencepiece: needed for convert_hf_to_gguf.py
|
||||
optdepends = python-pytorch: needed for convert_hf_to_gguf.py
|
||||
optdepends = python-transformers: needed for convert_hf_to_gguf.py
|
||||
provides = llama.cpp
|
||||
conflicts = llama.cpp
|
||||
conflicts = libggml
|
||||
conflicts = ggml
|
||||
options = lto
|
||||
options = !debug
|
||||
source = git+https://github.com/ggerganov/llama.cpp#tag=b6039
|
||||
source = git+https://github.com/ggerganov/llama.cpp
|
||||
source = llama.cpp.conf
|
||||
source = llama.cpp.service
|
||||
sha256sums = c12620a1337446f1dad32e4dbf9b0670fd82ec4085b3fd95d6facb2adb48ca3d
|
||||
sha256sums = SKIP
|
||||
sha256sums = 53fa70cfe40cb8a3ca432590e4f76561df0f129a31b121c9b4b34af0da7c4d87
|
||||
sha256sums = 0377d08a07bda056785981d3352ccd2dbc0387c4836f91fb73e6b790d836620d
|
||||
|
||||
|
|
|
|||
37
PKGBUILD
37
PKGBUILD
|
|
@ -1,8 +1,9 @@
|
|||
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
|
||||
# # Maintainer: Orion-zhen <https://github.com/Orion-zhen>
|
||||
# Contributor: txtsd <aur.archlinux@ihavea.quest>
|
||||
|
||||
pkgname=llama.cpp-vulkan
|
||||
_pkgname=${pkgname%%-vulkan}
|
||||
pkgver=b6039
|
||||
pkgver=b6041.r6045.g94933c8c2
|
||||
pkgrel=1
|
||||
pkgdesc="Port of Facebook's LLaMA model in C/C++ (with Vulkan GPU optimizations)"
|
||||
arch=(x86_64 armv7h aarch64)
|
||||
|
|
@ -13,8 +14,6 @@ depends=(
|
|||
gcc-libs
|
||||
glibc
|
||||
python
|
||||
python-numpy
|
||||
python-sentencepiece
|
||||
vulkan-icd-loader
|
||||
)
|
||||
makedepends=(
|
||||
|
|
@ -23,18 +22,38 @@ makedepends=(
|
|||
shaderc
|
||||
vulkan-headers
|
||||
)
|
||||
optdepends=(python-pytorch)
|
||||
optdepends=(
|
||||
'python-numpy: needed for convert_hf_to_gguf.py'
|
||||
'python-safetensors: needed for convert_hf_to_gguf.py'
|
||||
'python-sentencepiece: needed for convert_hf_to_gguf.py'
|
||||
'python-pytorch: needed for convert_hf_to_gguf.py'
|
||||
'python-transformers: needed for convert_hf_to_gguf.py'
|
||||
)
|
||||
provides=(${_pkgname})
|
||||
conflicts=(${_pkgname} libggml ggml)
|
||||
options=(lto !debug)
|
||||
source=(
|
||||
"git+${url}#tag=${pkgver}"
|
||||
"git+${url}"
|
||||
llama.cpp.conf
|
||||
llama.cpp.service
|
||||
)
|
||||
sha256sums=('c12620a1337446f1dad32e4dbf9b0670fd82ec4085b3fd95d6facb2adb48ca3d'
|
||||
'53fa70cfe40cb8a3ca432590e4f76561df0f129a31b121c9b4b34af0da7c4d87'
|
||||
'0377d08a07bda056785981d3352ccd2dbc0387c4836f91fb73e6b790d836620d')
|
||||
sha256sums=(
|
||||
'SKIP'
|
||||
'53fa70cfe40cb8a3ca432590e4f76561df0f129a31b121c9b4b34af0da7c4d87'
|
||||
'0377d08a07bda056785981d3352ccd2dbc0387c4836f91fb73e6b790d836620d'
|
||||
)
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgname"
|
||||
|
||||
local _latest_tag
|
||||
_latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "0")
|
||||
|
||||
# 格式化为:<最新标签>.r<总提交数>.g<短哈希>
|
||||
printf "%s.r%s.g%s" "$_latest_tag" \
|
||||
"$(git rev-list --count HEAD)" \
|
||||
"$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
local _cmake_options=(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue