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; }