From 8bdef0bcfe32f171390337314238479db8a89e31 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Tue, 19 May 2026 20:33:57 +0800 Subject: [PATCH] hotfix 1.113.2 bugs --- koboldcpp.py | 4 +++- otherarch/acestep/bpe.h | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 3ff430a35..249eff51b 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -74,7 +74,7 @@ dry_seq_break_max = 128 extra_images_max = 4 # for kontext/qwen img # global vars -KcppVersion = "1.113.1" +KcppVersion = "1.113.2" showdebug = True kcpp_instance = None #global running instance global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_base_config":"", "last_active_timestamp":datetime.now(), "triggered_sleeping":False, "current_model":"initial_model", "base_config":"", "swapReqType": None, "autoswapmode": False} @@ -8789,6 +8789,8 @@ def show_gui(): args.maxrequestsize = int(maxrequestsize_var.get()) if maxrequestsize_var.get()!="" else 32 args.ratelimit = int(ratelimit_var.get()) if ratelimit_var.get()!="" else 0 args.reqtimeout = int(reqtimeout_var.get()) if reqtimeout_var.get()!="" else 0 + if not args.reqtimeout: + args.reqtimeout = default_reqtimeout if usehorde_var.get() != 0: args.hordemodelname = horde_name_var.get() diff --git a/otherarch/acestep/bpe.h b/otherarch/acestep/bpe.h index fe5ebc6d1..6da28c0f8 100644 --- a/otherarch/acestep/bpe.h +++ b/otherarch/acestep/bpe.h @@ -263,6 +263,8 @@ static std::vector gpt2_pre_tokenize(const std::string &text) { return chunks; } +namespace kcpp_workaround_multiple_BPETokenizer { + // BPE tokenizer struct struct BPETokenizer { std::unordered_map vocab; // token_str -> id @@ -273,6 +275,9 @@ struct BPETokenizer { std::vector id_to_str; // id -> token_str (reverse vocab) }; +} +using kcpp_workaround_multiple_BPETokenizer::BPETokenizer; + // Minimal JSON parser for vocab.json ({"str": int, ...}) static bool load_vocab_json(const std::string &path, std::unordered_map &vocab) { FILE *f = fopen(path.c_str(), "rb");