Instructions to use kanansharmaa/layoutlm_document_qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kanansharmaa/layoutlm_document_qa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="kanansharmaa/layoutlm_document_qa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("kanansharmaa/layoutlm_document_qa") model = AutoModelForDocumentQuestionAnswering.from_pretrained("kanansharmaa/layoutlm_document_qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
ce53cb1 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:a4a20874c4c3d17dc0d1903a32114f50987d26c936c73c52ac6e30209c69f796
size 4920
|