Instructions to use hf-tiny-model-private/tiny-random-LayoutLMForQuestionAnswering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 132 Bytes
ccad625 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:f1764b7a2f216e52a53f7f780cc2c98226f3a9549b55e784068bdb623ed53ff6
size 1010128
|