Instructions to use context212/alhazen-ocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use context212/alhazen-ocr with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/qwen3-vl-2b-instruct-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "context212/alhazen-ocr") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use context212/alhazen-ocr 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 context212/alhazen-ocr 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 context212/alhazen-ocr to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for context212/alhazen-ocr to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="context212/alhazen-ocr", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,7 @@ benchmark (100 samples each, greedy decoding):
|
|
| 41 |
| Model | Eval CER β | Eval WER β | KHATT-bench CER β | KHATT-bench WER β |
|
| 42 |
|---|---|---|---|---|
|
| 43 |
| Qwen3-VL-2B-Instruct (base) | 0.653 | 0.951 | 1.498 | 1.594 |
|
| 44 |
-
| **Alhazen-OCR
|
| 45 |
|
| 46 |
**Reading the numbers:** fine-tuning cuts character errors nearly in half on
|
| 47 |
in-distribution documents (0.65 β 0.37 CER) and word errors from 0.95 β 0.57.
|
|
|
|
| 41 |
| Model | Eval CER β | Eval WER β | KHATT-bench CER β | KHATT-bench WER β |
|
| 42 |
|---|---|---|---|---|
|
| 43 |
| Qwen3-VL-2B-Instruct (base) | 0.653 | 0.951 | 1.498 | 1.594 |
|
| 44 |
+
| **Alhazen-OCR** | **0.368** | **0.567** | 2.761 | 1.707 |
|
| 45 |
|
| 46 |
**Reading the numbers:** fine-tuning cuts character errors nearly in half on
|
| 47 |
in-distribution documents (0.65 β 0.37 CER) and word errors from 0.95 β 0.57.
|