Skip to content

Commit 1dc1316

Browse files
committed
Remove unnecessary restriction in test case
1 parent 8ee7363 commit 1dc1316

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/test-tokenizer-1-bpe.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ int main(int argc, char **argv) {
6262
const int n_vocab = llama_n_vocab(model);
6363

6464
for (int i = 0; i < n_vocab; ++i) {
65-
if (llama_token_get_type(ctx, i) == LLAMA_TOKEN_TYPE_USER_DEFINED) {
66-
continue;
67-
}
6865
std::string str = llama_detokenize_bpe(ctx, std::vector<int>(1, i));
6966
try {
7067
auto cps = codepoints_from_utf8(str);

0 commit comments

Comments
 (0)