Skip to content

Commit 26bf5b4

Browse files
committed
fixed thread count <=0 , fixed clip skip <= 0
1 parent 8c701d7 commit 26bf5b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

koboldcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6392,7 +6392,7 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
63926392
print("No GPU backend found, or could not automatically determine GPU layers. Please set it manually.")
63936393
args.gpulayers = 0
63946394

6395-
if args.threads == -1:
6395+
if args.threads <= 0:
63966396
args.threads = get_default_threads()
63976397
print(f"Auto Set Threads: {args.threads}")
63986398

otherarch/sdcpp/clip.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ class CLIPTextModel : public GGMLBlock {
701701

702702
void set_clip_skip(int skip) {
703703
if (skip <= 0) {
704-
return;
704+
skip = -1;
705705
}
706706
clip_skip = skip;
707707
}

0 commit comments

Comments
 (0)