How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("fill-mask", model="hf-internal-testing/tiny-layoutlm")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-layoutlm")
model = AutoModelForMaskedLM.from_pretrained("hf-internal-testing/tiny-layoutlm")
Quick Links

This is a tiny-layoutlm random model to be used for basic testing.

Downloads last month
348
Safetensors
Model size
217k params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support