Skip to content

Commit 90a0349

Browse files
authored
recommended way to check if the version is 0.3, as requested by ngxson
recommended way to check if the version is 0.3, as requested by ngxson
1 parent b548695 commit 90a0349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tts/tts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ int main(int argc, char ** argv) {
523523
std::vector<llama_token> guide_tokens;
524524

525525
//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;
526+
const bool is_version_0_3 = (common_get_builtin_chat_template(model_ttc) == "outetts-0.3");
527527
//determine the offset of the first audio code token
528528
const int cts_offset = common_tokenize(vocab,"<|0|>",false,true)[0];
529529

0 commit comments

Comments
 (0)