Instructions to use impira/layoutlm-document-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impira/layoutlm-document-qa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="impira/layoutlm-document-qa")# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-qa") model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-document-qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from impira/layoutlm-document-qa: direct link, hf CLI and curl.
- Browser
- Download file 779 Bytes
-
https://huggingface.co/impira/layoutlm-document-qa/resolve/73a21c855abce87699f47515f48cf35ee357a451/README.md
- Command line
-
hf download hf://impira/layoutlm-document-qa@73a21c855abce87699f47515f48cf35ee357a451/README.md
-
curl -L -o README.md https://huggingface.co/impira/layoutlm-document-qa/resolve/73a21c855abce87699f47515f48cf35ee357a451/README.md
779 Bytes
| language: en | |
| thumbnail: https://uploads-ssl.webflow.com/5e3898dff507782a6580d710/614a23fcd8d4f7434c765ab9_logo.png | |
| license: mit | |
| # LayoutLM for Visual Question Answering | |
| This is a fine-tuned version of the multi-modal [LayoutLM](https://aka.ms/layoutlm) model for the task of question answering on documents. It has been fine-tuned on | |
| ## Model details | |
| The LayoutLM model was developed at Microsoft ([paper](https://arxiv.org/abs/1912.13318)) as a general purpose tool for understanding documents. This model is a fine-tuned checkpoint of [LayoutLM-Base-Cased](https://huggingface.co/microsoft/layoutlm-base-uncased), using both the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) and [DocVQA](https://www.docvqa.org/) datasets. | |
| ## Getting started with the model | |