From 26bf5b446df08dd24310e883aabde7e252ccd534 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Wed, 28 May 2025 00:38:15 +0800 Subject: [PATCH] fixed thread count <=0 , fixed clip skip <= 0 --- koboldcpp.py | 2 +- otherarch/sdcpp/clip.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index e30b02a1a..8bdd8c5f6 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -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}") diff --git a/otherarch/sdcpp/clip.hpp b/otherarch/sdcpp/clip.hpp index cdc27e727..d1a7c02f7 100644 --- a/otherarch/sdcpp/clip.hpp +++ b/otherarch/sdcpp/clip.hpp @@ -701,7 +701,7 @@ public: void set_clip_skip(int skip) { if (skip <= 0) { - return; + skip = -1; } clip_skip = skip; }