Instructions to use hf-internal-testing/tiny-random-layoutlmv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-layoutlmv2 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-layoutlmv2")# Load model directly from transformers import AutoProcessor, AutoModelForDocumentQuestionAnswering processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-layoutlmv2") model = AutoModelForDocumentQuestionAnswering.from_pretrained("hf-internal-testing/tiny-random-layoutlmv2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
fcf529e | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:78b808255d4d8ee9c3c7350bcc35ed50aa9970b0225308b1c98da1a02caba869
size 17126119
|