Views
No views yet
| Metric | Score |
|---|---|
| F1 — benchmark (10 images) | 0.935 |
| F1 — shop holdout (53 images) | 0.927 |
| F1 — paper holdout (7 images) | 0.928 |
| Avg latency (Radxa CPU) | ~64s |
| File | Description |
|---|---|
model.safetensors | Merged model weights (LoRA baked in) |
config.json + tokenizer files | Model config and tokenizer |
minicpm-ft-Q6_K.gguf | Quantized GGUF for llama.cpp inference |
1llama-cli \
2 -m minicpm-ft-Q6_K.gguf \
3 --mmproj mmproj-model-f16.gguf \
4 --image instruction_sheet.jpg \
5 -p "Extract all paint codes from this image as JSON."1from transformers import AutoModel, AutoTokenizer
2from PIL import Image
3
4model = AutoModel.from_pretrained(
5 "build-small-hackathon/paint-match-minicpm",
6 trust_remote_code=True,
7)
8tokenizer = AutoTokenizer.from_pretrained(
9 "build-small-hackathon/paint-match-minicpm",
10 trust_remote_code=True,
11)
12
13image = Image.open("instruction_sheet.jpg").convert("RGB")
14msgs = [{"role": "user", "content": [image, "Extract all paint codes from this image as JSON."]}]
15result = model.chat(image=None, msgs=msgs, tokenizer=tokenizer)
16print(result)