Using a Model without any pretrained data
## ❓ Questions & Help

<!-- Sorry for a very basic question. Can I use your library without any pertained data? For example, I want to use a BERT transformer model, but using only my corpus of data. In the docs, I only see examples using pretrained models. Thanks. -->

Just don't use the [from_pretrained](https://huggingface.co/transformers/main_classes/model.html#transformers.PreTrainedModel.from_pretrained) method and initialize the class with a config.
```
from transformers import BertModel, BertConfig

#model with pretrained weights
model_with_Pretrained = BertModel.from_pretrained('bert-base-uncased')

#model without pretrained weights
config = BertConfig()
model_without_Pretrained = BertModel(config)
```<|||||>@cronoik Thanks<|||||>Hi, I also encounter the same  question, is the solution still valid in the latest v4.28?
thanks!