hi @sharathmk99,
Sorry, I must have been looking at an old version of the documentation, or something.   You are correct, and it’s clearly present on the page you’ve linked.
(It doesn’t seem to be on the model summary page https://huggingface.co/transformers/model_summary.html 3 , but there are two options on the pretrained-models page https://huggingface.co/transformers/pretrained_models.html 5 ).
To train from scratch, you need to start by defining your model based on the LayoutLM config.   Have you read the Training and Fine Tuning page https://huggingface.co/transformers/training.html 39 .
The amount of data you have available will be important.