Downloads · 30 days
30
7% of all-time downloads
Quorum-ML/LFM2.5-VL-450M-PharmaOCR-GGUF
LFM2.5-VL-450M-PharmaOCR-GGUF is a image-text-to-text model from Quorum-ML. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for gguf. The card lists the license as other.
GGUF build of a LoRA fine-tune of LiquidAI/LFM2.5-VL-450M-Extract. Reads photographed Indian pharmacy and hospital invoices into a markdown line-item table (name, quantity, MRP/price).
Downloads · 30 days
30
7% of all-time downloads
All-time downloads
457
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.1 GB · 100%
From the Hugging Face model README
GGUF build of a LoRA fine-tune of LiquidAI/LFM2.5-VL-450M-Extract. Reads photographed Indian pharmacy and hospital invoices into a markdown line-item table (name, quantity, MRP/price).
Vision-language model. Runs on llama.cpp through llama-mtmd-cli. A text quant and the mmproj vision file are both required.
| File | Type | Size |
|---|---|---|
lfm2vl_v2-Q4_K_M.gguf | text, 4-bit | 229 MB |
lfm2vl_v2-Q5_K_M.gguf | text, 5-bit | 260 MB |
lfm2vl_v2-Q8_0.gguf | text, 8-bit | 379 MB |
mmproj-lfm2vl_v2-f16.gguf | vision projector, f16 | 190 MB |
Q4_K_M plus the vision projector is 419 MB.
llama-mtmd-cli \
-m lfm2vl_v2-Q4_K_M.gguf \
--mmproj mmproj-lfm2vl_v2-f16.gguf \
--image invoice.jpg \
-p "Transcribe this pharmacy/medical invoice as a markdown document, including every line item in the table with its full name, quantity, and MRP/price."
Greedy decoding. Requires a llama.cpp build with Lfm2VlForConditionalGeneration support (b10050 or later).
LoRA on the language tower and the vision-to-language projector. Vision encoder frozen. Trained on synthetic Indian pharmacy and hospital invoices with per-invoice variation in font, ink, header wording, and density. The target is a single layout-agnostic item list shared across all templates. No real patient data was used.
Composite score = 0.55 name + 0.30 strength + 0.075 quantity + 0.075 price, fuzzy-matched against gold. Small internal set of held-out real invoices (n=3).
| Quant | Composite |
|---|---|
| Q8_0 | 100 |
| Q4_K_M | 100 |
Post-training quantization is lossless on this set. Q4_K_M is the recommended build.
Structured extraction from Indian pharmacy and hospital invoice images. The model was trained on that domain only; behavior on other document types is undefined. A generative reader can drop or misread line items, so its output is not a substitute for the source document in any safety-critical path.
LFM Open License v1.0. See LICENSE. Commercial use is limited by an annual-revenue threshold set by the licensor; review the terms before commercial deployment. This model is a derivative of LiquidAI/LFM2.5-VL-450M-Extract and is bound by the same license.