Fixed issue with gpt2 regex custom preprocessor

This commit is contained in:
Kazim Abrar Mahi 2024-04-17 07:40:40 +06:00
parent cc8d52921c
commit d58d9d80f8

View file

@ -357,6 +357,7 @@ static std::vector<size_t> unicode_gpt2_regex_preprocess(const std::wstring & wt
token += utf_char;
}
}
start += offset;
}
return bpe_offsets;