Instructions to use microsoft/layoutlm-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/layoutlm-base-uncased with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/layoutlm-base-uncased", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Updating `safetensors` variant of this model
#8
by rvv-karma - opened
Updating SafeTensors.
Fix to #30125 in transformers repository (https://github.com/huggingface/transformers/issues/30125)
Root cause of the issue: The existing SafeTensors in 'main' branch does not contains weights of 'embeddings.word_embeddings.weight' layer.
To load model directly from this PR, use:model = LayoutLMModel.from_pretrained("microsoft/layoutlm-base-uncased", use_safetensors=True, revision="eed6dc69eafa39d65493fe383a003596f565e2e8")
Thanks for handling this and fixing the model weights for users!
amyeroberts changed pull request status to merged