mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
fixed thread count <=0 , fixed clip skip <= 0
This commit is contained in:
parent
8c701d7ded
commit
26bf5b446d
2 changed files with 2 additions and 2 deletions
|
@ -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.")
|
print("No GPU backend found, or could not automatically determine GPU layers. Please set it manually.")
|
||||||
args.gpulayers = 0
|
args.gpulayers = 0
|
||||||
|
|
||||||
if args.threads == -1:
|
if args.threads <= 0:
|
||||||
args.threads = get_default_threads()
|
args.threads = get_default_threads()
|
||||||
print(f"Auto Set Threads: {args.threads}")
|
print(f"Auto Set Threads: {args.threads}")
|
||||||
|
|
||||||
|
|
|
@ -701,7 +701,7 @@ public:
|
||||||
|
|
||||||
void set_clip_skip(int skip) {
|
void set_clip_skip(int skip) {
|
||||||
if (skip <= 0) {
|
if (skip <= 0) {
|
||||||
return;
|
skip = -1;
|
||||||
}
|
}
|
||||||
clip_skip = skip;
|
clip_skip = skip;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue