# Which model to select

**URL:** <https://discuss.huggingface.co/t/which-model-to-select/150315>\
**Category:** Models\
**Created:** [April 14, 2025, 8:04am UTC](https://discuss.huggingface.co/t/which-model-to-select/150315 "2025-04-14T08:04:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhavkumar1998](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Madhavkumar1998](https://discuss.huggingface.co/u/Madhavkumar1998)\
**Post date:** [April 14, 2025, 8:04am UTC](https://discuss.huggingface.co/t/which-model-to-select/150315/1 "2025-04-14T08:04:29Z")

</div>

My task is to extract data from a document and make key value pair can any one suggest an open source light weight model ?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 14, 2025, 8:32am UTC](https://discuss.huggingface.co/t/which-model-to-select/150315/2 "2025-04-14T08:32:15Z")

</div>

If I assume that the document is an image, it would be around here.  
If it’s text information, I think Qwen 2.5 0.5B or SmoLLM would work.

> **[Accelerating Document AI](https://huggingface.co/blog/document-ai)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> [@Improving Key-Value Pair Extraction with LayoutLM and LiLT on Custom OCR Dataset](https://discuss.huggingface.co/t/improving-key-value-pair-extraction-with-layoutlm-and-lilt-on-custom-ocr-dataset/135483):
>
> I am working on an OCR project to perform document understanding on a specific type of document with a fixed layout (e.g., mandate forms). The layout has minor variations across images. My goal is to accurately extract key-value pairs and output them in JSON format. What I Have Done Dataset Preparation: I created a dataset of 231 annotated images in FUNSD format using the UBIAI tool. The annotations include bounding boxes and labels (KEY, VALUE). Models Used: I fine-tuned both LayoutLMv3 …

> [@Which Model Should I Choose: TrOCR, TrOCR + LayoutLM, or Donut?](https://discuss.huggingface.co/t/which-model-should-i-choose-trocr-trocr-layoutlm-or-donut/145295):
>
> I am developing a web application to process a collection of scanned domain-specific documents with five different types of documents, as well as one type of handwritten form. The form contains a mix of printed and handwritten text, while others are entirely printed but all of the other documents would contain the name of the person. Key Requirements: Search Functionality – Users should be able to search for a person’s name and retrieve all associated scanned documents. Key-Value Pair Extracti…
