Run LLM-OCR based on llama.cpp
Go to file
wangjue cdcd1f7202 feat: implement OCR tool using llama.cpp multimodal API
- Support GLM-OCR model with -m (model) and --mmproj (mmproj) options
- Custom prompt support via -p (default: OCR)
- Greedy/temperature sampling with --temp flag
- JSON output with --json flag
- GPU acceleration via -ngl option
- Use correct GLM-OCR chat template format for prompt construction
2026-05-29 14:57:37 +08:00
.gitignore feat: implement OCR tool using llama.cpp multimodal API 2026-05-29 14:57:37 +08:00
CMakeLists.txt feat: implement OCR tool using llama.cpp multimodal API 2026-05-29 14:57:37 +08:00
main.cpp feat: implement OCR tool using llama.cpp multimodal API 2026-05-29 14:57:37 +08:00