macbert 训练时 batch_size 不一致的问题
作者: Mrzjk创建于 2026年1月12日更新于 2026年1月12日
标签enhancement
<img width="1480" height="246" alt="Image" src="https://GitHub.com/user-attachments/assets/c25c74e5-6621-4a7b-80af-5f914e546cf3" /> Hello, I have found that it seems that if the text length is not consistent, it will not cause an error, but if the tokens are consistent, it will not cause an error. I would like to ask you whether the text is consistent or the tokens are consistent (because the tokens of different texts are not consistent, which leads to the batch size being inconsistent).
内容来源: shibing624/pycorrector