We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b548695 commit 90a0349Copy full SHA for 90a0349
examples/tts/tts.cpp
@@ -523,7 +523,7 @@ int main(int argc, char ** argv) {
523
std::vector<llama_token> guide_tokens;
524
525
//determine OuteTTS version and vocab code offset. v0.2 does not have <|space|>, but v0.3 does
526
- const bool is_version_0_3 = common_tokenize(vocab,"<|space|>",false,true).size()==1;
+ const bool is_version_0_3 = (common_get_builtin_chat_template(model_ttc) == "outetts-0.3");
527
//determine the offset of the first audio code token
528
const int cts_offset = common_tokenize(vocab,"<|0|>",false,true)[0];
529
0 commit comments