tokenizer不是右padding吗 为啥能直接在ppo中直接生成 #597
-
我看tokenizer是右padding的,这不是会导致生成的结果不对吗?
这里有大量的0 虽然有attention_mask 但是位置信息就不对了呀? 我看Qwen啥的 现在tokenizer都是左padding呀
|
Beta Was this translation helpful? Give feedback.
Answered by
jingyaogong
Dec 23, 2025
Replies: 3 comments
-
|
Line 303 in a9c56b2 已经是left padding了呀 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jingyaogong
-
|
(之前的实现无问题) 目前已更新成显式 Line 126 in 11b962d |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
义父 哎呀 我没看到上面修改了哈哈哈哈 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


minimind/trainer/train_ppo.py
Line 303 in a9c56b2
已经是left padding了呀 🤔