Instructions to use rafw007/bielik-custom-ocr-vision-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use rafw007/bielik-custom-ocr-vision-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="rafw007/bielik-custom-ocr-vision-GGUF", filename="bielik-custom-ocr-vision-Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use rafw007/bielik-custom-ocr-vision-GGUF 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 rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
Use Docker
docker model run hf.co/rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use rafw007/bielik-custom-ocr-vision-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rafw007/bielik-custom-ocr-vision-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rafw007/bielik-custom-ocr-vision-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
- Ollama
How to use rafw007/bielik-custom-ocr-vision-GGUF with Ollama:
ollama run hf.co/rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
- Unsloth Studio
How to use rafw007/bielik-custom-ocr-vision-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rafw007/bielik-custom-ocr-vision-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rafw007/bielik-custom-ocr-vision-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rafw007/bielik-custom-ocr-vision-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use rafw007/bielik-custom-ocr-vision-GGUF with Docker Model Runner:
docker model run hf.co/rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
- Lemonade
How to use rafw007/bielik-custom-ocr-vision-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rafw007/bielik-custom-ocr-vision-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.bielik-custom-ocr-vision-GGUF-Q4_K_M
List all available models
lemonade list
Bielik Custom OCR Vision — local Polish text recognition
A custom merged model: the vision layers were borrowed from Mistral-3 and joined with Bielik-7B (SpeakLeash). The result is a compact multimodal model that reads text from images — printed pages, scans and documents — with excellent handling of Polish and its diacritics (ą, ć, ę, ł, ń, ó, ś, ź, ż). On request it will also translate the recognized text into foreign languages, always answering in flawless language.
The model is honest about what it is. It is built for text recognition (OCR), and it is very good at it. It is not a general image-understanding model: it was not fine-tuned for scene/object recognition, because that requires a real training lab, not a hobby homelab — we don't have the setup to train models at that scale, so we didn't pretend to. What it does, it does well; what it wasn't trained for, it doesn't claim.
What it's for
- OCR / text transcription from images — faithful, character-for-character, layout preserved (line breaks, paragraphs, indentation; tables as plain aligned text, no markdown).
- Strong Polish — correct diacritics, punctuation, casing, numbers, dates and amounts.
- On-request translation of the recognized text into foreign languages, in flawless target language.
- Fully local & private — documents never leave your machine.
Measured behavior
- Faithful transcription by default — transcribes what is on the image, preserves the layout,
marks unreadable fragments as
[nieczytelne], and returns an empty answer when there is no text — no hallucinated content. (For Polish text see the note below.) - Two clean modes — plain OCR by default; correct-Polish answers and translation only when the user explicitly asks. The faithful transcription is never altered by the language polish.
- Excellent on real text — clean recognition of Polish documents in day-to-day use through AnythingLLM and OpenWebUI.
Built-in Polish proofreading (a feature, not a bug)
The language half of this model is Bielik-7B — a model trained natively on Polish. Because of
that, it doesn't just copy Polish text, it understands it: on Polish input it will
automatically correct spelling and restore missing diacritics — e.g. it turns Rafal into
Rafał, zl into zł, and quietly fixes typos it recognises. This is simply what a native Polish
model does; the Polish language knowledge is baked into the weights.
Treat it as a bonus: the OCR output comes out as clean, correct Polish rather than a raw, diacritic-stripped scan. In testing, English and Russian scans were transcribed exactly, 1:1 (no such "correction" there), while Polish scans came back polished — proper ogonki and orthography. If you ever need a strictly literal transcription that preserves original Polish misspellings, this is the one thing to keep in mind — but for reading and reusing documents, having the text auto-normalised to correct Polish is a genuine plus.
Not designed for
- General image recognition (objects, scenes, charts, diagrams) — out of scope. The vision path was merged in, not fine-tuned on broad visual data, so treat this strictly as a text reader. Proper visual grounding would need a full training lab; this is a focused OCR tool, by design.
Context
- 8K tokens configured (
num_ctx 8192) — comfortable for single pages and typical documents. - Underlying architecture natively supports a much larger window; for very dense multi-page scans,
raise
num_ctxif your hardware has the headroom.
Test hardware
The model was built and tested on:
- Mac Mini M4, 24 GB RAM, macOS — Ollama, GPU (Metal) inference, loads 100% on GPU.
- Orchestration: AnythingLLM and OpenWebUI — both drove the model for real OCR workloads.
- Quantization: Q4_K_M GGUF (~6 GB).
How it was made
The two models were merged using Claude Code together with Fable 5, and the model was tuned with Claude Opus 4.8 — the best models in the world. The merge, the system prompt, the parameter choices and the two-mode (OCR / translation) design draw directly on that work: top-tier models preparing a small, private text reader that runs right on your desk.
Available files
| File | Quant | Size | Notes |
|---|---|---|---|
bielik-custom-ocr-vision-Q4_K_M.gguf |
Q4_K_M | ~6 GB | OCR-tuned build; runs fully on GPU on 24 GB-class Apple Silicon. |
Ships with the OCR system prompt and parameters (see Modelfile): faithful transcription by
default, correct Polish and on-request translation, temperature 0.
License
Apache 2.0 (inherited from the Mistral-3 and Bielik-7B bases).
- Downloads last month
- 260
4-bit