xlnet_zh icon indicating copy to clipboard operation
xlnet_zh copied to clipboard

Pytorch版本

Open jiangix01 opened this issue 5 years ago • 3 comments

您好,我在使用您提供的命令转化Pytorch版本时,会报错,请问是什么原因?

RuntimeError: Sizes mush be non-negative。应该是vocab_size=-1导致的?

jiangix01 avatar Sep 20 '19 06:09 jiangix01

我也遇到了同样的问题

yihenglu avatar Sep 24 '19 08:09 yihenglu

我用这行命令 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 avatar Sep 27 '19 03:09 Splendon

@Splendon 谢谢

yihenglu avatar Sep 27 '19 06:09 yihenglu