AttributeError: module 'torch' has no attribute 'frombuffer'
这回apex和torch都安好了,成功导入bert权重之后又出毛病了,哈哈哈哈我真的栓Q。
好了,是transformers的版本太高了。。
直接重装一个低一点的就行。
我重装了3.0.2的。
pip install transformers==3.0.2
参考:
module ‘torch‘ has no attribute ‘frombuffer‘_module 'torch' has no attribute 'frombuffer-CSDN博客