We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a46dfcf commit 0ae2860Copy full SHA for 0ae2860
llama.cpp
@@ -12820,13 +12820,13 @@ static std::vector<llama_vocab::id> llama_tokenize_internal(const llama_vocab &
12820
while (isspace(raw_text[num_whitespaces])) {
12821
num_whitespaces++;
12822
}
12823
- if(num_whitespaces == raw_text.size()) {
+ if (num_whitespaces == raw_text.size()) {
12824
continue; // skip if all whitespaces
12825
12826
raw_text = raw_text.substr(num_whitespaces);
12827
12828
12829
- if(vocab.add_space_prefix) {
+ if (vocab.add_space_prefix) {
12830
if (!output.size() || is_prev_special) { // prefix with space if first token
12831
raw_text = " " + raw_text;
12832
0 commit comments