Skip to content

Commit 34ddd87

Browse files
committed
try containerized ci (+3 squashed commit)
Squashed commit: [f060074] troubleshooting [fe11073] cap auto threads at 32 due to diminishing returns [0c7f8a1] troubleshooting
1 parent 3105eee commit 34ddd87

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ jobs:
2323
run: |
2424
apt-get update
2525
apt-get install -y sudo
26-
sudo apt-get -y install git curl bzip2
26+
export DEBIAN_FRONTEND=noninteractive
27+
sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
28+
echo "tzdata tzdata/Areas select Etc" | sudo debconf-set-selections
29+
echo "tzdata tzdata/Zones/Etc select UTC" | sudo debconf-set-selections
30+
sudo apt-get -y install git curl bzip2 python3-tk tcl tk
31+
32+
- name: Set Tcl/Tk Paths
33+
run: |
34+
echo "TCL_LIBRARY=$(find /usr/lib/ -name 'tcl8*' | head -n 1)" >> $GITHUB_ENV
35+
echo "TK_LIBRARY=$(find /usr/lib/ -name 'tk8*' | head -n 1)" >> $GITHUB_ENV
2736
2837
- name: Build
2938
id: make_build

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ jobs:
2323
run: |
2424
apt-get update
2525
apt-get install -y sudo
26-
sudo apt-get -y install git curl bzip2
26+
export DEBIAN_FRONTEND=noninteractive
27+
sudo ln -fs /usr/share/zoneinfo/UTC /etc/localtime
28+
echo "tzdata tzdata/Areas select Etc" | sudo debconf-set-selections
29+
echo "tzdata tzdata/Zones/Etc select UTC" | sudo debconf-set-selections
30+
sudo apt-get -y install git curl bzip2 python3-tk tcl tk
31+
32+
- name: Set Tcl/Tk Paths
33+
run: |
34+
echo "TCL_LIBRARY=$(find /usr/lib/ -name 'tcl8*' | head -n 1)" >> $GITHUB_ENV
35+
echo "TK_LIBRARY=$(find /usr/lib/ -name 'tk8*' | head -n 1)" >> $GITHUB_ENV
2736
2837
- name: Build
2938
id: make_build

koboldcpp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ def get_default_threads():
384384
processor = platform.processor()
385385
if 'Intel' in processor:
386386
default_threads = (8 if default_threads > 8 else default_threads) #this helps avoid e-cores.
387+
if default_threads > 48:
388+
print(f"Auto CPU Threads capped at 48 (instead of {default_threads}). You can override this by passing an explicit number of --threads.")
389+
default_threads = 48
387390
return default_threads
388391

389392
def pick_existant_file(ntoption,nonntoption):

0 commit comments

Comments
 (0)