How to use PaddleCI/tiny-random-ernie with paddlenlp:
from paddlenlp.transformers import AutoTokenizer, ErnieForMaskedLM tokenizer = AutoTokenizer.from_pretrained("PaddleCI/tiny-random-ernie", from_hf_hub=True) model = ErnieForMaskedLM.from_pretrained("PaddleCI/tiny-random-ernie", from_hf_hub=True)