git: 19d61ead82a8 - main - misc/koboldcpp: update 1.73.1 → 1.74
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 01 Sep 2024 17:40:26 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=19d61ead82a840d5ac28f749ad91a4d7166e63b7
commit 19d61ead82a840d5ac28f749ad91a4d7166e63b7
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-09-01 17:04:34 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-09-01 17:40:20 +0000
misc/koboldcpp: update 1.73.1 → 1.74
Reported by: portscout
---
misc/koboldcpp/Makefile | 2 +-
misc/koboldcpp/distinfo | 6 +++---
misc/koboldcpp/files/patch-koboldcpp.py | 31 +++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/misc/koboldcpp/Makefile b/misc/koboldcpp/Makefile
index 929dfeb19efd..37b29180bfb3 100644
--- a/misc/koboldcpp/Makefile
+++ b/misc/koboldcpp/Makefile
@@ -1,6 +1,6 @@
PORTNAME= koboldcpp
DISTVERSIONPREFIX= v
-DISTVERSION= 1.73.1
+DISTVERSION= 1.74
CATEGORIES= misc # machine-learning
MAINTAINER= yuri@FreeBSD.org
diff --git a/misc/koboldcpp/distinfo b/misc/koboldcpp/distinfo
index 3aed07f1298a..1e81634075cc 100644
--- a/misc/koboldcpp/distinfo
+++ b/misc/koboldcpp/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724387078
-SHA256 (LostRuins-koboldcpp-v1.73.1_GH0.tar.gz) = 22e98fa6cff973ddb0d464bc1d35fba20cad5e300e81bb43051718d1973d2682
-SIZE (LostRuins-koboldcpp-v1.73.1_GH0.tar.gz) = 28503444
+TIMESTAMP = 1725179865
+SHA256 (LostRuins-koboldcpp-v1.74_GH0.tar.gz) = 10f99515eec5a34659d4f0b1d160404a6ca0cbf3054e77663c3f038ff4c7c08c
+SIZE (LostRuins-koboldcpp-v1.74_GH0.tar.gz) = 28510760
diff --git a/misc/koboldcpp/files/patch-koboldcpp.py b/misc/koboldcpp/files/patch-koboldcpp.py
new file mode 100644
index 000000000000..bad178aa0cc6
--- /dev/null
+++ b/misc/koboldcpp/files/patch-koboldcpp.py
@@ -0,0 +1,31 @@
+- submitted here: https://github.com/LostRuins/koboldcpp/issues/1110
+
+--- koboldcpp.py.orig 2024-09-01 15:51:59 UTC
++++ koboldcpp.py
+@@ -4159,8 +4159,9 @@ def main(launch_args,start_server=True):
+
+
+ #load embedded lite
++ basepath = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
++
+ try:
+- basepath = os.path.abspath(os.path.dirname(__file__))
+ with open(os.path.join(basepath, "klite.embd"), mode='rb') as f:
+ embedded_kailite = f.read()
+ # patch it with extra stuff
+@@ -4174,7 +4175,6 @@ def main(launch_args,start_server=True):
+ print("Could not find KoboldAI Lite. Embedded KoboldAI Lite will not be available.")
+
+ try:
+- basepath = os.path.abspath(os.path.dirname(__file__))
+ with open(os.path.join(basepath, "kcpp_docs.embd"), mode='rb') as f:
+ embedded_kcpp_docs = f.read()
+ print("Embedded API docs loaded.")
+@@ -4182,7 +4182,6 @@ def main(launch_args,start_server=True):
+ print("Could not find Embedded KoboldCpp API docs.")
+
+ try:
+- basepath = os.path.abspath(os.path.dirname(__file__))
+ with open(os.path.join(basepath, "kcpp_sdui.embd"), mode='rb') as f:
+ embedded_kcpp_sdui = f.read()
+ if args.sdmodel: