Skip to content

Commit c7a1eec

Browse files
committed
try to solve ttscpp oom regression
1 parent d3f9db8 commit c7a1eec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ggml/src/ggml-backend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,9 +656,9 @@ static bool ggml_is_view_op(enum ggml_op op) {
656656
#ifndef GGML_SCHED_MAX_BACKENDS
657657
#define GGML_SCHED_MAX_BACKENDS 16
658658
#endif
659-
659+
//kcpp yolo fix: decreased from 30 to 14 in order to try resolve tts oom issues.
660660
#ifndef GGML_SCHED_MAX_SPLIT_INPUTS
661-
#define GGML_SCHED_MAX_SPLIT_INPUTS 30
661+
#define GGML_SCHED_MAX_SPLIT_INPUTS 14
662662
#endif
663663

664664
#ifndef GGML_SCHED_MAX_COPIES

koboldcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
extra_images_max = 4
6565

6666
# global vars
67-
KcppVersion = "1.99.3"
67+
KcppVersion = "1.99.4"
6868
showdebug = True
6969
kcpp_instance = None #global running instance
7070
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_config_target":""}

otherarch/tts_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ bool ttstype_load_model(const tts_load_model_inputs inputs)
671671

672672
// tts init
673673
if (is_ttscpp_file) {
674-
ttscpp_config = new generation_configuration("am_echo", 25, 1.0, 1.0, true, "", 2048, 1.0);
674+
ttscpp_config = new generation_configuration("am_echo", 25, 1.0, 1.0, true, "", 1600, 1.0);
675675
ttscpp_runner = runner_from_file(modelfile_ttc, inputs.threads, ttscpp_config, true);
676676
if (ttscpp_runner == nullptr) {
677677
printf("\nTTS Load Error: Failed to initialize TTSCPP!\n");

0 commit comments

Comments
 (0)