mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-11 07:19:10 +02:00
fix kokoro replacement, add 4096 batch size option
This commit is contained in:
@@ -1424,6 +1424,7 @@ int kokoro_runner::generate(std::string prompt, struct tts_response * response,
|
||||
// We preserve the other punctuation for cleaner chunking pre-tokenization
|
||||
prompt = replace_any(prompt, ";:", "--");
|
||||
prompt = replace_any(prompt, "\n", ". ");
|
||||
kokoro_str_replace_all(prompt,"’","'");
|
||||
kokoro_str_replace_all(prompt," - "," -- ");
|
||||
kokoro_str_replace_all(prompt,"he's ","he is ");
|
||||
kokoro_str_replace_all(prompt,"'s ","s ");
|
||||
|
||||
Reference in New Issue
Block a user