File size: 290 Bytes
5fa1a76
 
 
 
 
1
2
3
4
5
Create a pretrained model with [~TFPreTrainedModel.from_pretrained]:

tf_model = TFDistilBertModel.from_pretrained("distilbert/distilbert-base-uncased")

When you load pretrained weights, the default model configuration is automatically loaded if the model is provided by 🤗 Transformers.