Commit
•
6a1215e
1
Parent(s):
01328fa
Fix "TypeError: ChatGLM4Tokenizer._pad() got an unexpected keyword argument 'padding_side'" (#39)
Browse files- Fix "TypeError: ChatGLM4Tokenizer._pad() got an unexpected keyword argument 'padding_side'" (9ed793afa525d1d12f62bc94fe01c9eb2d5053ae)
Co-authored-by: sixgod <sixsixcoder@users.noreply.huggingface.co>
- tokenization_chatglm.py +1 -0
tokenization_chatglm.py
CHANGED
@@ -303,6 +303,7 @@ class ChatGLM4Tokenizer(PreTrainedTokenizer):
|
|
303 |
max_length: Optional[int] = None,
|
304 |
padding_strategy: PaddingStrategy = PaddingStrategy.DO_NOT_PAD,
|
305 |
pad_to_multiple_of: Optional[int] = None,
|
|
|
306 |
return_attention_mask: Optional[bool] = None,
|
307 |
) -> dict:
|
308 |
"""
|
|
|
303 |
max_length: Optional[int] = None,
|
304 |
padding_strategy: PaddingStrategy = PaddingStrategy.DO_NOT_PAD,
|
305 |
pad_to_multiple_of: Optional[int] = None,
|
306 |
+
padding_side: Optional[str] = None,
|
307 |
return_attention_mask: Optional[bool] = None,
|
308 |
) -> dict:
|
309 |
"""
|