mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-02 11:01:20 +02:00
fixed thread count <=0 , fixed clip skip <= 0
This commit is contained in:
+1
-1
@@ -6392,7 +6392,7 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
|
||||
print("No GPU backend found, or could not automatically determine GPU layers. Please set it manually.")
|
||||
args.gpulayers = 0
|
||||
|
||||
if args.threads == -1:
|
||||
if args.threads <= 0:
|
||||
args.threads = get_default_threads()
|
||||
print(f"Auto Set Threads: {args.threads}")
|
||||
|
||||
|
||||
@@ -701,7 +701,7 @@ public:
|
||||
|
||||
void set_clip_skip(int skip) {
|
||||
if (skip <= 0) {
|
||||
return;
|
||||
skip = -1;
|
||||
}
|
||||
clip_skip = skip;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user