Comments (4)
是tensorflow的问题。具体的做法是用这个命令
python pytorch_transformers/convert_xlnet_checkpoint_to_pytorch.py --tf_checkpoint_path XLNet_zh_Large_L-24_H-1024_A-16/xlnet_model --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.data-00000-of-00001,就是把ckpt去掉,这样tensorflow在读xlnet_model的时候会自动去找xlnet_model.data-00000-of-00001,xlnet_model.index,xlnet_model.meta这三个文件,然后就可以顺利转换了
from xlnet_zh.
你解决转化的问题没有啦
from xlnet_zh.
我用这行命令
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,就可以顺利转换了
from xlnet_zh.
我用这行命令
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,就可以顺利转换了
谢谢谢谢,我这边还是会报错,看了一下可能是pytorch_transformers已经更新了,所以这条命令会报错,如果您方便的话可以麻烦将您用于转化的pytorch_transformers文件夹发给我一下吗?真的非常感谢~我的邮箱是[email protected]
from xlnet_zh.
Related Issues (11)
- Google drive HOT 1
- Unsuccessful TensorSliceReader constructor HOT 3
- 中文MRC任务
- Pytorch版本 HOT 3
- xlnet有发布基于字训练的模型的计划吗?? HOT 1
- XLNet_zh_Large pretrain models's google drive download link is invalid, can you please update? HOT 4
- xlnet支持任意长度吗?
- 分词器用的是ymcui项目中训练的吗?
- 参数不一致问题: 预训练的reuse_len=256, 下载文件中config.json的reuse_len=null
- 谷歌云盘下载链接错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xlnet_zh.