Transformers How to use hf-tiny-model-private/tiny-random-LayoutLMForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("document-question-answering", model="hf-tiny-model-private/tiny-random-LayoutLMForQuestionAnswering") # Load model directly
from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-LayoutLMForQuestionAnswering")
model = AutoModelForDocumentQuestionAnswering.from_pretrained("hf-tiny-model-private/tiny-random-LayoutLMForQuestionAnswering")