From eb81e97963b903fd4f9fd81071cd4f1e64923f5e Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Tue, 17 Dec 2024 09:10:01 -0800 Subject: [PATCH] nit --- llms/mlx_lm/tokenizer_utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/llms/mlx_lm/tokenizer_utils.py b/llms/mlx_lm/tokenizer_utils.py index 9c5d3208..0eb961a3 100644 --- a/llms/mlx_lm/tokenizer_utils.py +++ b/llms/mlx_lm/tokenizer_utils.py @@ -158,9 +158,6 @@ class BPEStreamingDetokenizer(StreamingDetokenizer): _space_matches = (".", "?", "!", ",", "n't", "'m", "'s", "'ve", "'re") def __init__(self, tokenizer): - - self.tokenizer = tokenizer - self.clean_spaces = tokenizer.clean_up_tokenization_spaces # Extract the tokens in a list from id to text