mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +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
|
// tts init
|
||||||
if (is_ttscpp_file) {
|
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);
|
ttscpp_runner = runner_from_file(modelfile_ttc, inputs.threads, ttscpp_config, true);
|
||||||
if (ttscpp_runner == nullptr) {
|
if (ttscpp_runner == nullptr) {
|
||||||
printf("\nTTS Load Error: Failed to initialize TTSCPP!\n");
|
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;
|
ttscpp_config->voice = voiceused;
|
||||||
|
|
||||||
|
if(!tts_is_quiet)
|
||||||
|
{
|
||||||
|
printf("\nTTS Generating...");
|
||||||
|
}
|
||||||
tts_response response_data;
|
tts_response response_data;
|
||||||
int errorres = generate(ttscpp_runner, prompt, &response_data, ttscpp_config);
|
int errorres = generate(ttscpp_runner, prompt, &response_data, ttscpp_config);
|
||||||
if(errorres==0)
|
if(errorres==0)
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
void dia_model::assign_weight(std::string name, struct ggml_tensor * tensor) {
|
void dia_model::assign_weight(std::string name, struct ggml_tensor * tensor) {
|
||||||
std::vector<std::string> parts = split(name, ".");
|
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);
|
TTS_ASSERT(parts.size() >= 3);
|
||||||
|
|
||||||
if (parts[1] == "encoder") {
|
if (parts[1] == "encoder") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue