How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama cli -hf lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
Use Docker
docker model run hf.co/lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
Quick Links

MiniCPM-OCR Jev for LM-Kit

This repository holds MiniCPM-OCR Jev packaged for LM-Kit.NET, LM-Kit's on-device AI SDK for .NET, and for LM-Kit One.

File Content
minicpm-ocr-jev-Q4_K_M.lmk The model and its vision projector in one archive. This is the file LM-Kit downloads.
MiniCPM-OCR-Jev-Q4_K_M.gguf The judge, Q4_K_M.
mmproj-model-f16.gguf Its vision projector at full precision (F16).

The GGUF files are the ones published in openbmb/MiniCPM-OCR-Jev-gguf, unchanged: the archive packs the same bytes.

About MiniCPM-OCR Jev

MiniCPM-OCR Jev is an OCR judge: a decision model that scores, from 0 to 1, whether a candidate OCR text is consistent with the region image it was read from (text, formula and table regions). It reads the original image and an image rendered from the candidate text, and generates no text. It answers this one question; it is not a general decision model.

LM-Kit model ID: minicpm-ocr-jev.

Usage

using LMKit.Classification.Decisions;
using LMKit.Media.Image;
using LMKit.Model;

using LM model = LM.LoadFromModelID("minicpm-ocr-jev");
var engine = new DecisionEngine(model);

using ImageBuffer region = ImageBuffer.LoadAsRGB("region.png");      // the block the text was read from
using ImageBuffer rendered = ImageBuffer.LoadAsRGB("rendered.png");  // an image drawn from the OCR text

double consistent = engine.ScoreOcrConsistency(region, rendered, ocrText);   // from 0 to 1

The judge compares the two images and the text. It needs a faithful render of the candidate text: the publisher documents the renderer its scores were measured with (see the original model card).

License

The model weights are released by OpenBMB under the Apache License 2.0. See the original model card for training details and the authors' evaluation.

Downloads last month
-
GGUF
Model size
2B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for lm-kit/minicpm-ocr-jev-lmk

Finetuned
Qwen/Qwen3.5-2B
Quantized
(7)
this model