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")# pip install -U transformers accelerate # 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
Commit History
-
Update config.json to include p5 and a few other layers (#1)
- Update config.json to include p5 and a few other layers (8e7066bf5cd04f2d5538b465c2dc1d442821bcc1) Co-authored-by: Ankur Goyal <ankrgyl@users.noreply.huggingface.co>a8f01b6
-
Adding a simple model.
Unverified signaturefcf529e
-
v2 update
76879ee -
initial commit
57296f1