Package Details: llama.cpp-git b4082.r11.4047be74d-1

Git Clone URL: https://aur.archlinux.org/llama.cpp-git.git (read-only, click to copy)
Package Base: llama.cpp-git
Description: Port of Facebook's LLaMA model in C/C++
Upstream URL: https://github.com/ggerganov/llama.cpp
Licenses: MIT
Conflicts: llama.cpp
Provides: llama.cpp
Submitter: robertfoster
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 12
Popularity: 0.94
First Submitted: 2023-03-27 22:24 (UTC)
Last Updated: 2024-11-15 20:30 (UTC)

Dependencies (6)

Required by (0)

Sources (4)

Latest Comments

1 2 3 4 Next › Last »

itsdesmond commented on 2024-11-14 20:55 (UTC)

@robertfoster, I follow the intent but I don't think we're able to build only one package, and so we are required to build, and install dependencies, for every package provided by the PKGBUILD. It looks like the ability to build only one was removed a number of years ago: [pacman-dev] [PATCH] makepkg: remove ability to build individual packages. If that's the deal then that's the deal, I guess.

robertfoster commented on 2024-11-14 20:21 (UTC)

@itsdesmond

because of this https://wiki.archlinux.org/title/PKGBUILD#pkgbase

Here a split PKGBUILD is used. As you can see from documentation, makedepends is not considered in packages functions. This means that with split logic, you need to declare only one array of makedepends and only one build function. Hope that is clear.

itsdesmond commented on 2024-11-14 20:15 (UTC)

I'm a bit confused by this package. Is it necessary that I build every package in order to install just one of them? Or is there some sort of targeting command I'm not taking advantage of?

BestSteve commented on 2024-11-11 04:33 (UTC) (edited on 2024-11-11 04:34 (UTC) by BestSteve)

--- PKGBUILD.old        2024-11-11 12:30:54.000000000 +0800
+++ PKGBUILD.new        2024-11-11 12:33:31.451801874 +0800
@@ -120,6 +120,7 @@ build() {
   echo "Build ${pkgbase} with CUBlas (NVIDIA CUDA)"
   cd "${srcdir}/${_name}-cublas"
   export PATH+=":/opt/cuda/bin"
+  export NVCC_CCBIN="gcc-13"
   cmake "${_cmake_cublas_args[@]}"
   cmake --build build
@@ -181,7 +182,7 @@ package_llama.cpp-cublas-git() {
   provides=("${_name}")
   conflicts=("${_name}")

-  cd "${_name}-clblas"
+  cd "${_name}-cublas"
   _package
 }

grdgkjrpdihe commented on 2024-11-07 00:55 (UTC)

llama.cpp-hipblas-git should depends hipblas rather than rocm-hip-runtime

abitrolly commented on 2024-10-25 11:53 (UTC)

Another report with full output of the error https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/issues/10

abitrolly commented on 2024-10-25 10:59 (UTC)

Looks like CMake CUDA error comes from the wrong compiler used https://bbs.archlinux.org/viewtopic.php?id=300160

LeoKesler commented on 2024-10-17 17:43 (UTC)

CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:838 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.

dreieck commented on 2024-10-10 11:12 (UTC) (edited on 2024-10-13 10:12 (UTC) by dreieck)

Your packages llama.cpp-vulkan-git and whisper.cpp-clblas do conflict which each other, which is not reflected in the conflicts array.

Please add the corresponding conflicts entry, or, to ensure compatibility, think of stripping out the libggml stuff and depend on libggml:

error: failed to commit transaction (conflicting files)
/usr/include/ggml-alloc.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-backend.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-blas.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-cann.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-cuda.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-kompute.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-metal.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-rpc.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-sycl.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/include/ggml-vulkan.h exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
/usr/lib/libggml.so exists in both 'llama.cpp-vulkan-git' and 'whisper.cpp-clblas'
Errors occurred, no packages were upgraded.

Regards!

dreieck commented on 2024-10-10 11:11 (UTC)

License file needs to be installed:

llama.cpp-vulkan-git E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/llama.cpp-vulkan-git/ or switching to common license identifiers. Found 0/1 required license files.