diff --git a/src/transformers/convert_slow_tokenizer.py b/src/transformers/convert_slow_tokenizer.py index 5cd9f53f62b434..0aac48a949b901 100644 --- a/src/transformers/convert_slow_tokenizer.py +++ b/src/transformers/convert_slow_tokenizer.py @@ -608,7 +608,7 @@ def post_processor(self): def decoder(self, replacement, add_prefix_space): prepend_scheme = "always" if add_prefix_space else "never" - return decoders.Metaspace(replacement=replacement, prepend_scheme=prepend_scheme) + return decoders.Metaspace(replacement=replacement, add_prefix_space=prepend_scheme) def converted(self) -> Tokenizer: tokenizer = self.tokenizer(self.proto)