One day, i'll fix off by 1 errors permanently too
This commit is contained in:
parent
c39547a986
commit
3a98747026
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ class Llama:
|
||||||
for num,pattern in [(2, 192), (3, 224), (4, 240)]:
|
for num,pattern in [(2, 192), (3, 224), (4, 240)]:
|
||||||
# Bitwise AND check
|
# Bitwise AND check
|
||||||
if (pattern & token == pattern):
|
if (pattern & token == pattern):
|
||||||
multibyte_fix = num
|
multibyte_fix = num - 1
|
||||||
|
|
||||||
if self.cache and len(completion_tokens) == 0:
|
if self.cache and len(completion_tokens) == 0:
|
||||||
if prompt_tokens not in self.cache:
|
if prompt_tokens not in self.cache:
|
||||||
|
|
Loading…
Reference in a new issue