Instructions to use lm-kit/minicpm-ocr-jev-lmk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lm-kit/minicpm-ocr-jev-lmk with 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
- Llama new
- LM Studio
- Jan
- Ollama
How to use lm-kit/minicpm-ocr-jev-lmk with Ollama:
ollama run hf.co/lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use lm-kit/minicpm-ocr-jev-lmk with Docker Model Runner:
docker model run hf.co/lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
- Lemonade
How to use lm-kit/minicpm-ocr-jev-lmk with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lm-kit/minicpm-ocr-jev-lmk:Q4_K_M
Run and chat with the model
lemonade run user.minicpm-ocr-jev-lmk-Q4_K_M
List all available models
lemonade list
- Atomic Chat
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_MBuild 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_MUse Docker
docker model run hf.co/lm-kit/minicpm-ocr-jev-lmk:Q4_K_MMiniCPM-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
- -
4-bit
Install (macOS, Linux)
# 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