Instructions to use hf-internal-testing/tiny-random-LayoutLMForQuestionAnswering with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-LayoutLMForQuestionAnswering with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="hf-internal-testing/tiny-random-LayoutLMForQuestionAnswering")# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-LayoutLMForQuestionAnswering") model = AutoModelForDocumentQuestionAnswering.from_pretrained("hf-internal-testing/tiny-random-LayoutLMForQuestionAnswering", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 131 Bytes
0d6a4bc | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:a0d023aa70c11777330baf1da3c4bb212f283a9028d14723fa222d23cbb78206
size 910667
|