Skip to content

Commit

Permalink
Add a log message to better track the when the following line of code…
Browse files Browse the repository at this point in the history
… is triggered
  • Loading branch information
mokeddembillel committed Dec 18, 2024
1 parent b3d022a commit d8d2f37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions convert_hf_to_gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def get_vocab_base(self) -> tuple[list[str], list[int], str]:
# used for `\n` / `\t` have been manually added in the added tokens
# To avoid unexpected issues - we make sure to encode single-char tokens
if len(token) == 1:
logger.info("Ecode-Decode special characters using AutoTokenizer")
token = tokenizer.decode(tokenizer.encode(token, add_special_tokens=False))

if tokenizer.added_tokens_decoder[i].special or self.does_token_look_special(token):
Expand Down

0 comments on commit d8d2f37

Please sign in to comment.