Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JunnYu committed Dec 19, 2023
1 parent 6cc9c7e commit 259fa80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlenlp/transformers/tokenizer_utils_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ def convert_added_tokens(obj):
tokenizer.save_pretrained(os.path.join(cache_dir, pretrained_model_name_or_path, subfolder))

if return_tokenizer_file_dir:
return tokenizer, tokenizer_config_file_dir_list[0]
return tokenizer, list(tokenizer_config_file_dir_list)[0]
return tokenizer

def save_pretrained(self, save_directory, filename_prefix: Optional[str] = None, **kwargs):
Expand Down

0 comments on commit 259fa80

Please sign in to comment.