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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
在使用类似 adapter 的方式,在 forward pass过程中出现异常值,初步排查推测应该是混合精度导致的溢出。但是在 HF 的 Trainer 部分我已经给了 fp16=True 的参数。数据的预处理方式参考的这个仓库。最让人头疼的是几乎一样的实现方式 ChatGLM 就没有类似的问题,我使用几乎完全一样的方法进行微调模型没有出现异常值,BP也稳定。查了很多资料都没有找到解决的办法。此前也尝试过使用ChatGLM2,也出现了类似的错误。
插入 adapter 的代码:
微调使用的是 huggingface 的 trainer:
Expected behavior / 期待表现
Beta Was this translation helpful? Give feedback.
All reactions