mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-27 04:23:06 +01:00
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
This commit is contained in:
parent
b5486956ff
commit
90a0349349
@ -523,7 +523,7 @@ int main(int argc, char ** argv) {
|
||||
std::vector<llama_token> guide_tokens;
|
||||
|
||||
//determine OuteTTS version and vocab code offset. v0.2 does not have <|space|>, but v0.3 does
|
||||
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");
|
||||
//determine the offset of the first audio code token
|
||||
const int cts_offset = common_tokenize(vocab,"<|0|>",false,true)[0];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user