Downloads · 30 days
32
0% of all-time downloads
nghuyong/ernie-gram-zh
ernie-gram-zh is a feature extraction model from nghuyong. Use it when you need embeddings to search or compare text. It is set up for transformers.
ERNIE-Gram: Pre-Training with Explicitly N-Gram Masked Language Modeling for Natural Language Understanding
Downloads · 30 days
32
0% of all-time downloads
All-time downloads
31K
Public
Repo size
1.2 GB
Likes
5
Public
Click a slice to open those files.
.bin400 MB · 100%
From the Hugging Face model README
ERNIE-Gram: Pre-Training with Explicitly N-Gram Masked Language Modeling for Natural Language Understanding
More detail: https://arxiv.org/abs/2010.12148
| Model Name | Language | Model Structure |
|---|---|---|
| ernie-gram-zh | Chinese | Layer:12, Hidden:768, Heads:12 |
This released Pytorch model is converted from the officially released PaddlePaddle ERNIE model and a series of experiments have been conducted to check the accuracy of the conversion.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("nghuyong/ernie-gram-zh")
model = AutoModel.from_pretrained("nghuyong/ernie-gram-zh")