diff --git a/audio/whisper.cpp/Makefile b/audio/whisper.cpp/Makefile index 9f74839c7846..f02226381a99 100644 --- a/audio/whisper.cpp/Makefile +++ b/audio/whisper.cpp/Makefile @@ -1,44 +1,45 @@ PORTNAME= whisper.cpp DISTVERSIONPREFIX= v DISTVERSION= 1.8.2-407 +PORTREVISION= 1 DISTVERSIONSUFFIX= -g679bdb53 CATEGORIES= audio # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Port of OpenAI's Whisper model in C/C++ WWW= https://github.com/ggerganov/whisper.cpp LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libggml.so:misc/ggml USES= cmake:testing USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= ggerganov LDFLAGS+= -pthread CMAKE_ON= WHISPER_USE_SYSTEM_GGML CMAKE_OFF= WHISPER_BUILD_TESTS CMAKE_TESTING_ON= WHISPER_BUILD_TESTS \ WHISPER_BUILD_EXAMPLES OPTIONS_DEFINE= EXAMPLES OPTIONS_DEFAULT= EXAMPLES # examples contain important user level programs OPTIONS_SUB= yes EXAMPLES_CMAKE_BOOL= WHISPER_BUILD_EXAMPLES MAKE_JOBS_UNSAFE= yes # for tests to suceed on smaller Vulkan devices: they fail to allocate memory otherwise post-install: ${INSTALL_SCRIPT} \ ${WRKSRC}/models/download-ggml-model.sh \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-download-ggml-model.sh # tests as of 1.7.6: 73% tests passed, 3 tests failed out of 11, see https://github.com/ggml-org/whisper.cpp/issues/3404 .include diff --git a/misc/ggml/Makefile b/misc/ggml/Makefile index 19b72b8f5528..09748741bd4f 100644 --- a/misc/ggml/Makefile +++ b/misc/ggml/Makefile @@ -1,50 +1,50 @@ PORTNAME= ggml DISTVERSIONPREFIX= v -DISTVERSION= 0.11.0 +DISTVERSION= 0.12.0 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Tensor library for machine learning WWW= https://github.com/ggml-org/ggml LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= compilation fails: LLVM ERROR: out of memory BUILD_DEPENDS= spirv-headers>0:graphics/spirv-headers USES= cmake:testing compiler:c++17-lang llvm:build,min=22 python:run shebangfix USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= ggml-org CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= GGML_NATIVE \ GGML_BUILD_TESTS \ GGML_BUILD_EXAMPLES \ GGML_SSE42 \ GGML_AVX \ GGML_AVX2 \ GGML_BMI2 \ GGML_FMA \ GGML_F16C CMAKE_TESTING_ON= GGML_BUILD_TESTS BINARY_ALIAS= git=false PLIST_SUB+= DISTVERSION=${DISTVERSION} OPTIONS_DEFINE= VULKAN OPTIONS_DEFAULT= VULKAN OPTIONS_SUB= yes VULKAN_CMAKE_BOOL= GGML_VULKAN VULKAN_BUILD_DEPENDS= glslc:graphics/shaderc \ vulkan-headers>0:graphics/vulkan-headers VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader # tests as of 0.11.0: 100% tests passed, 0 tests failed out of 21 .include diff --git a/misc/ggml/distinfo b/misc/ggml/distinfo index 959c46e12252..30cb9870809d 100644 --- a/misc/ggml/distinfo +++ b/misc/ggml/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1777994295 -SHA256 (ggml-org-ggml-v0.11.0_GH0.tar.gz) = 079d3549588b7b66c577b9921b8caa9971b732b95970837fcb5098b51a2935c5 -SIZE (ggml-org-ggml-v0.11.0_GH0.tar.gz) = 2940714 +TIMESTAMP = 1778999262 +SHA256 (ggml-org-ggml-v0.12.0_GH0.tar.gz) = b041330a598b5704c48d61b47f86011aa3f37aa03726c5b80805307924e68967 +SIZE (ggml-org-ggml-v0.12.0_GH0.tar.gz) = 3062202 diff --git a/misc/ggml/pkg-plist b/misc/ggml/pkg-plist index 8c9cbaeae863..57a44ce9f844 100644 --- a/misc/ggml/pkg-plist +++ b/misc/ggml/pkg-plist @@ -1,33 +1,33 @@ include/ggml-alloc.h include/ggml-backend.h include/ggml-blas.h include/ggml-cann.h include/ggml-cpp.h include/ggml-cpu.h include/ggml-cuda.h include/ggml-metal.h include/ggml-openvino.h include/ggml-opt.h include/ggml-rpc.h include/ggml-sycl.h include/ggml-virtgpu.h include/ggml-vulkan.h include/ggml-webgpu.h include/ggml-zendnn.h include/ggml.h include/gguf.h lib/cmake/ggml/ggml-config.cmake lib/cmake/ggml/ggml-version.cmake lib/libggml-base.so lib/libggml-base.so.0 lib/libggml-base.so.%%DISTVERSION%% lib/libggml-cpu.so lib/libggml-cpu.so.0 lib/libggml-cpu.so.%%DISTVERSION%% %%VULKAN%%lib/libggml-vulkan.so %%VULKAN%%lib/libggml-vulkan.so.0 %%VULKAN%%lib/libggml-vulkan.so.%%DISTVERSION%% lib/libggml.so lib/libggml.so.0 lib/libggml.so.%%DISTVERSION%% -share/pkgconfig/ggml.pc +libdata/pkgconfig/ggml.pc diff --git a/misc/llama-cpp/Makefile b/misc/llama-cpp/Makefile index d4d1bf208bc8..74f45ef26bdf 100644 --- a/misc/llama-cpp/Makefile +++ b/misc/llama-cpp/Makefile @@ -1,96 +1,97 @@ PORTNAME= llama-cpp DISTVERSIONPREFIX= b DISTVERSION= 9159 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MASTER_SITES= https://huggingface.co/buckets/ggml-org/llama-ui/resolve/${DISTVERSIONPREFIX}${DISTVERSION}/:webui DISTFILES= index.html:webui \ bundle.js:webui \ bundle.css:webui \ loading.html:webui DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \ nomic-ai-kompute-4565194_GH0.tar.gz MAINTAINER= yuri@FreeBSD.org COMMENT= Facebook's LLaMA model in C/C++ # ' WWW= https://github.com/ggerganov/llama.cpp LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_armv7= clang crashes, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278810 BROKEN_i386= compilation fails, see https://github.com/ggerganov/llama.cpp/issues/9545 LIB_DEPENDS= libggml-base.so:misc/ggml USES= cmake:testing compiler:c++11-lang python:run shebangfix USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= ggerganov GH_PROJECT= llama.cpp GH_TUPLE= nomic-ai:kompute:4565194:kompute/kompute SHEBANG_GLOB= *.py CMAKE_ON= BUILD_SHARED_LIBS \ LLAMA_USE_SYSTEM_GGML CMAKE_OFF= GGML_NATIVE \ FREEBSD_ALLOW_ADVANCED_CPU_FEATURES \ LLAMA_BUILD_TESTS CMAKE_TESTING_ON= LLAMA_BUILD_TESTS # user for llama-server, only used when EXAMPLES=ON USER= nobody SUB_LIST= USER=${USER} PLIST_SUB+= DISTVERSION=${DISTVERSION} OPTIONS_DEFINE= CURL EXAMPLES OPTIONS_DEFAULT= CURL EXAMPLES OPTIONS_SUB= yes CURL_DESCR= Use libcurl to download model from an URL CURL_CMAKE_BOOL= LLAMA_CURL CURL_USES= localbase CURL_LIB_DEPENDS= libcurl.so:ftp/curl EXAMPLES_CMAKE_BOOL= LLAMA_BUILD_EXAMPLES BINARY_ALIAS= git=false \ python=${PYTHON_CMD} # for tests post-extract: @${MKDIR} ${WRKSRC}/tools/server/public ${CP} ${DISTDIR}/${DIST_SUBDIR}/index.html ${WRKSRC}/tools/server/public/index.html ${CP} ${DISTDIR}/${DIST_SUBDIR}/bundle.js ${WRKSRC}/tools/server/public/bundle.js ${CP} ${DISTDIR}/${DIST_SUBDIR}/bundle.css ${WRKSRC}/tools/server/public/bundle.css ${CP} ${DISTDIR}/${DIST_SUBDIR}/loading.html ${WRKSRC}/tools/server/public/loading.html post-patch: # set version in the code @${REINPLACE_CMD} \ -e "s|set(BUILD_NUMBER 0)|set(BUILD_NUMBER ${DISTVERSION})|" \ ${WRKSRC}/cmake/build-info.cmake do-test-ci: # build of tests fails, see https://github.com/ggerganov/llama.cpp/issues/10955 @cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} bash ci/run.sh ./tmp/results ./tmp/mnt .include .if ${PORT_OPTIONS:MEXAMPLES} USE_RC_SUBR= llama-server .endif # tests as of 4458: 97% tests passed, 1 tests failed out of 31, see https://github.com/ggerganov/llama.cpp/issues/11036 # tests as of 4649: # 88% tests passed, 4 tests failed out of 32 # The following tests FAILED: # 18 - test-chat (Subprocess aborted) main # see https://github.com/ggerganov/llama.cpp/issues/11705 # 24 - test-gguf (SEGFAULT) main # 25 - test-backend-ops (SEGFAULT) main # 32 - test-eval-callback (SEGFAULT) curl eval-callback .include