Skip to content

Commit 094d156

Browse files
committed
try a transplanted tk
1 parent d69db26 commit 094d156

File tree

5 files changed

+13
-226
lines changed

5 files changed

+13
-226
lines changed

.github/workflows/kcpp-build-release-linux-olderpc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
NOAVX1: 1
1414
ARCHES_CU11: 1
1515
KCPP_CUDA: 11.5.0
16+
TRANSPLANT_TK: 1
1617

1718
jobs:
1819
linux:

.github/workflows/kcpp-build-release-linux.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1313
KCPP_CUDA: 12.1.0
1414
ARCHES_CU12: 1
15+
TRANSPLANT_TK: 1
1516

1617
jobs:
1718
linux:

.github/workflows/server-webui.yml

Lines changed: 0 additions & 225 deletions
This file was deleted.

environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919
- libcblas
2020
- ocl-icd-system
2121
- libvulkan-loader
22-
- tk=*=xft_*
22+
- tk
2323
- psutil
2424
- jinja2
2525
- pip:

koboldcpp.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ fi
2727
KCPP_CUDA=$(<conda/envs/linux/cudaver)
2828
KCPP_CUDAAPPEND=-cuda${KCPP_CUDA//.}$KCPP_APPEND
2929

30+
if [ -n "$TRANSPLANT_TK" ]; then
31+
echo Attempting to use a transplanted tkinter from ubuntu-24.04.3 to fix fontconfig issues
32+
rm -f "/conda/envs/linux/lib/libtcl8.6.so"
33+
rm -f "/conda/envs/linux/lib/libtk8.6.so"
34+
chmod 755 "/conda/envs/linux/lib/libtcl8.6.so" "/conda/envs/linux/lib/libtk8.6.so"
35+
curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtcl8.6.so --output /conda/envs/linux/lib/libtcl8.6.so
36+
curl -L https://github.com/LostRuins/koboldcpp/releases/download/cuda11_cublas_libraries/libtk8.6.so --output /conda/envs/linux/lib/libtk8.6.so
37+
echo Tkinter Transplant completed
38+
fi
39+
3040
LLAMA_NOAVX1_FLAG=""
3141
LLAMA_NOAVX2_FLAG=""
3242
ARCHES_FLAG=""

0 commit comments

Comments
 (0)