src/transformers/models/clip/tokenization_clip_fast.py/CLIPTokenizerFast/_wrap_decode_method_backend_tokenizer
class CLIPTokenizerFast:    def _wrap_decode_method_backend_tokenizer(self):
        orig_decode_method = self.backend_tokenizer.decode

        def new_decode_method(*args, **kwargs):
            text = orig_decode_method(*args, **kwargs)
            text = text.replace(self.backend_tokenizer.model.end_of_word_suffix, " ").strip()
            return text

        self.backend_tokenizer.decode = new_decode_method