Image-Text-to-Text
PEFT
Safetensors
Transformers
Polish
lora
ocr
polish
experimental
broken
conversational
Instructions to use kacperwikiel/polish-ocr-lora-broken with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kacperwikiel/polish-ocr-lora-broken with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("PaddlePaddle/PaddleOCR-VL") model = PeftModel.from_pretrained(base_model, "kacperwikiel/polish-ocr-lora-broken") - Transformers
How to use kacperwikiel/polish-ocr-lora-broken with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="kacperwikiel/polish-ocr-lora-broken") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kacperwikiel/polish-ocr-lora-broken", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use kacperwikiel/polish-ocr-lora-broken with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kacperwikiel/polish-ocr-lora-broken" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kacperwikiel/polish-ocr-lora-broken", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/kacperwikiel/polish-ocr-lora-broken
- SGLang
How to use kacperwikiel/polish-ocr-lora-broken with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "kacperwikiel/polish-ocr-lora-broken" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kacperwikiel/polish-ocr-lora-broken", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "kacperwikiel/polish-ocr-lora-broken" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kacperwikiel/polish-ocr-lora-broken", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use kacperwikiel/polish-ocr-lora-broken with Docker Model Runner:
docker model run hf.co/kacperwikiel/polish-ocr-lora-broken
Polish OCR LoRA (BROKEN - DO NOT USE IN PRODUCTION)
WARNING: This model is broken and produces garbage output. It is uploaded for archival/experimental purposes only.
Status: FAILED EXPERIMENT
This is a LoRA adapter fine-tuned on PaddleOCR-VL for Polish OCR tasks. The training did not converge properly and the model outputs are unreliable.
Known Issues
- Model produces hallucinated text
- Poor accuracy on Polish characters (especially: a, e, o, s, z, n, c, l)
- Inconsistent output quality
- May output repetitive or nonsensical text
Model Details
- Base Model: PaddlePaddle/PaddleOCR-VL
- Adapter Type: LoRA (r=16, alpha=32)
- Target Modules: q_proj, v_proj, o_proj, k_proj
- Task: Polish document OCR (attempted)
- Language: Polish
- Training Data: Synthetic Polish OCR dataset (10k samples)
- Framework: PEFT 0.18.0
Why Upload a Broken Model?
- Transparency: To document what doesn't work
- Reproducibility: Others can learn from this failure
- Baseline: Can be used as a negative example for benchmarking
Training Configuration
LoRA rank: 16
LoRA alpha: 32
Dropout: 0.05
Checkpoints: 846 steps
Do Not Use For
- Production OCR systems
- Any task requiring accurate text extraction
- Anything where correctness matters
License
Apache 2.0
Framework Versions
- PEFT 0.18.0
- Transformers (latest at time of training)
- Downloads last month
- 4