You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
指令微调报错:A decoder-only architecture is being used, but right-padding was detected! For correct generation results, please set padding_side='left' when initializing the tokenizer.
#633
Open
1 of 2 tasks
1938225289 opened this issue
Nov 1, 2024
· 4 comments
System Info / 系統信息
transformers 4.46.0,python3.10
Who can help? / 谁可以帮助到您?
No response
Information / 问题信息
Reproduction / 复现过程
tokenizer = AutoTokenizer.from_pretrained(model_dir, trust_remote_code=True)
tokenizer.padding_side = 'left' # 设置左侧填充
Expected behavior / 期待表现
有人遇到相同情况吗?
The text was updated successfully, but these errors were encountered: