sixsixcoder
commited on
Commit
•
9ed793a
1
Parent(s):
01328fa
Fix "TypeError: ChatGLM4Tokenizer._pad() got an unexpected keyword argument 'padding_side'"
Browse files- 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 |
"""
|