Skip to content

Commit

Permalink
reduce max token length to 255 to allow for more tokens in tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Dec 18, 2024
1 parent 53f9968 commit 389755b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toktrie/src/toktree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ impl TrieNode {
}
}

// max length of token is 1023 bytes
const LEN_BITS: u32 = 10;
// max length of token is 255 bytes
const LEN_BITS: u32 = 8;

impl TokTrie {
// see https://github.com/microsoft/llguidance/blob/main/docs/special_tokens.md
Expand Down

0 comments on commit 389755b

Please sign in to comment.