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版本 #25

Closed
braveryCHR opened this issue Aug 1, 2019 · 3 comments
Closed

模型转换失效,请求提供pytorch版本 #25

braveryCHR opened this issue Aug 1, 2019 · 3 comments

Comments

@braveryCHR
Copy link

braveryCHR commented Aug 1, 2019

可能由于操作原因,我使用pytorch-transformers进行模型转化,然而tf checkpoints转为pytorch模型后,发生模型无效果,基本等同于随机的现象,希望能够提供转换好的版本,麻烦您啦
转换命令为:
sudo python3 convert.py --tf_checkpoint_path ./bert_model.ckpt.index --bert_config_file bert_config.json --pytorch_dump_path ./pytorch_bert.bin
其中convert.py的代码为:
https://github.com/huggingface/pytorch-transformers/blob/master/pytorch_transformers/convert_tf_checkpoint_to_pytorch.py

@braveryCHR braveryCHR changed the title 请求提供pytorch版本 模型转换失效,请求提供pytorch版本 Aug 1, 2019
@ymcui
Copy link
Owner

ymcui commented Aug 1, 2019

sure,会用最新版的PyTorch-Transformers转换一版,你今天晚些时候再来看看。

@ymcui ymcui closed this as completed Aug 1, 2019
@ymcui
Copy link
Owner

ymcui commented Aug 1, 2019

Google Drive的链接已添加,讯飞云今晚会传。

@ymcui
Copy link
Owner

ymcui commented Aug 1, 2019

讯飞云链接已补齐,关闭issue

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

2 participants