How to use hf-tiny-model-private/tiny-random-ErnieForPreTraining with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-ErnieForPreTraining") model = AutoModelForPreTraining.from_pretrained("hf-tiny-model-private/tiny-random-ErnieForPreTraining")