Skip to content

v0.6.0 - German-OCR 2B + llama.cpp Backend

Choose a tag to compare

@Keyvanhardani Keyvanhardani released this 04 Jan 22:45
· 10 commits to main since this release

What's New

German-OCR 2B Support

  • New lightweight 2B model (1.5 GB) optimized for CPU/Edge
  • Full llama.cpp backend integration
  • ~23 tok/s on CPU, ~127 tok/s on GPU

Installation

# Standard
pip install german-ocr

# With llama.cpp support
pip install german-ocr[llamacpp]

Usage

from german_ocr import GermanOCR

# Auto-detect backend
ocr = GermanOCR()

# Or specify llama.cpp
ocr = GermanOCR(backend="llamacpp")
text = ocr.extract("invoice.png")

Hardware Support

  • NVIDIA (CUDA)
  • Apple Silicon (Metal)
  • AMD/Intel (Vulkan)
  • Intel NPU (OpenVINO)
  • CPU (everywhere)

Links