Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytorch版本 #2

Open
jiangix01 opened this issue Sep 20, 2019 · 3 comments
Open

Pytorch版本 #2

jiangix01 opened this issue Sep 20, 2019 · 3 comments

Comments

@jiangix01
Copy link

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

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

@yihenglu
Copy link

我也遇到了同样的问题

@Splendon
Copy link

我用这行命令
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,就可以顺利转换了

@yihenglu
Copy link

@Splendon 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants