xlnet_zh
xlnet_zh copied to clipboard
Pytorch版本
您好,我在使用您提供的命令转化Pytorch版本时,会报错,请问是什么原因?
RuntimeError: Sizes mush be non-negative。应该是vocab_size=-1导致的?
我也遇到了同样的问题
我用这行命令 python pytorch_transformers/convert_xlnet_checkpoint_to_pytorch.py --tf_checkpoint_path XLNet_zh_Large_L-24_H-1024_A-16/xlnet_model.ckpt --xlnet_config_file XLNet_zh_Large_L-24_H-1024_A-16/xlnet_config.json --pytorch_dump_folder_path XLNet_zh_Large_L-24_H-1024_A-16 而且,把xlnet_model.ckpt改名为xlnet_model.ckpt.data-00000-of-00001,就可以顺利转换了
@Splendon 谢谢