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, )
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- README.md +13 -13
- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
tags:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
pipeline_tag: image-to-text
|
| 17 |
base_model: unsloth/qwen3-vl-2b-instruct-unsloth-bnb-4bit
|
| 18 |
datasets:
|
| 19 |
-
|
| 20 |
-
|
| 21 |
library_name: peft
|
| 22 |
---
|
| 23 |
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
+
- ar
|
| 5 |
+
- fr
|
| 6 |
+
- en
|
| 7 |
tags:
|
| 8 |
+
- ocr
|
| 9 |
+
- arabic
|
| 10 |
+
- vision-language-model
|
| 11 |
+
- qwen3-vl
|
| 12 |
+
- lora
|
| 13 |
+
- unsloth
|
| 14 |
+
- text-recognition
|
| 15 |
+
- handwriting-recognition
|
| 16 |
pipeline_tag: image-to-text
|
| 17 |
base_model: unsloth/qwen3-vl-2b-instruct-unsloth-bnb-4bit
|
| 18 |
datasets:
|
| 19 |
+
- context212/atlas-ocr-data
|
| 20 |
+
- ahmedheakl/arocrbench_khatt
|
| 21 |
library_name: peft
|
| 22 |
---
|
| 23 |
|
adapter_config.json
CHANGED
|
@@ -35,13 +35,13 @@
|
|
| 35 |
"rank_pattern": {},
|
| 36 |
"revision": null,
|
| 37 |
"target_modules": [
|
| 38 |
-
"
|
| 39 |
-
"v_proj",
|
| 40 |
"down_proj",
|
| 41 |
-
"gate_proj",
|
| 42 |
-
"up_proj",
|
| 43 |
"k_proj",
|
| 44 |
-
"
|
|
|
|
|
|
|
|
|
|
| 45 |
],
|
| 46 |
"target_parameters": null,
|
| 47 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 35 |
"rank_pattern": {},
|
| 36 |
"revision": null,
|
| 37 |
"target_modules": [
|
| 38 |
+
"q_proj",
|
|
|
|
| 39 |
"down_proj",
|
|
|
|
|
|
|
| 40 |
"k_proj",
|
| 41 |
+
"v_proj",
|
| 42 |
+
"gate_proj",
|
| 43 |
+
"o_proj",
|
| 44 |
+
"up_proj"
|
| 45 |
],
|
| 46 |
"target_parameters": null,
|
| 47 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 69788264
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:033c8c8b58aa68a7e7ec2cbd0ea88a1ebac2f0dbf2bf6bc5a12482f11f8ba847
|
| 3 |
size 69788264
|