Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Mansterteddy/ERNIE_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERNIE_pytorch

ERNIE is a Language Model from Baidu. ERNIE is implemented by PaddlePaddle, with script in this git repo, you can convert ERNIE to pytorch version (Based on huggingface's implementation).

Firstly you need to download ERNIE model and convert it to numpy array using script in this issue. Then run:

python convert.py

Be aware of that, ERNIE uses different vocab.txt compared with BERT.

We provide a simple interface to see ERNIE's effect, you can run:

python mask.py

About

Convert ERNIE to pytorch version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages