mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
add max tts length 1024
This commit is contained in:
parent
bcaf379509
commit
a42328b063
2 changed files with 10 additions and 1 deletions
|
@ -557,7 +557,7 @@ bool ttstype_load_model(const tts_load_model_inputs inputs)
|
|||
|
||||
// tts init
|
||||
if (is_ttscpp_file) {
|
||||
ttscpp_config = new generation_configuration("am_adam", 50, 1.0, 1.0, true, "", 0, 1.0);
|
||||
ttscpp_config = new generation_configuration("am_adam", 50, 1.0, 1.0, true, "", 1024, 1.0);
|
||||
ttscpp_runner = runner_from_file(modelfile_ttc, inputs.threads, ttscpp_config, true);
|
||||
if (ttscpp_runner == nullptr) {
|
||||
printf("\nTTS Load Error: Failed to initialize TTSCPP!\n");
|
||||
|
@ -681,6 +681,10 @@ static tts_generation_outputs ttstype_generate_ttscpp(const tts_generation_input
|
|||
}
|
||||
ttscpp_config->voice = voiceused;
|
||||
|
||||
if(!tts_is_quiet)
|
||||
{
|
||||
printf("\nTTS Generating...");
|
||||
}
|
||||
tts_response response_data;
|
||||
int errorres = generate(ttscpp_runner, prompt, &response_data, ttscpp_config);
|
||||
if(errorres==0)
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
void dia_model::assign_weight(std::string name, struct ggml_tensor * tensor) {
|
||||
std::vector<std::string> parts = split(name, ".");
|
||||
// GGML_LOG("\nassign_weight %s\n",name.c_str());
|
||||
if(name=="GGUF tensor data binary blob") //patch for gguf, idk why this tensor exists
|
||||
{
|
||||
return;
|
||||
}
|
||||
TTS_ASSERT(parts.size() >= 3);
|
||||
|
||||
if (parts[1] == "encoder") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue