Downloads · 30 days
0
ThuraAung1601/jawi-ocr-al-models
jawi-ocr-al-models is a machine learning model from ThuraAung1601. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository hosts the final adapters (iter5model) from an Active Learning (AL) study for Jawi OCR.
Downloads · 30 days
0
Access
Public
Updated Aug 10, 2026
Repo size
493 GB
Likes
0
Public
Click a slice to open those files.
.safetensors493 GB · 100%
From the Hugging Face model README
This repository hosts the final adapters (iter_5_model) from an Active Learning (AL) study for Jawi OCR.
The models are organized into subfolders based on their dataset, AL strategy, and pool size:
workspace_models/)These models were trained in the root workspace models/ directory:
workspace_models/al-run-dynamic-10/iter_5_modelworkspace_models/al-run-dynamic-50/iter_5_modelworkspace_models/al-run-new-way-20/iter_5_modelworkspace_models/al-run-new-way-30/iter_5_modelworkspace_models/al-run-new-way-40/iter_5_modelworkspace_models/al-run-new-way/iter_5_modelworkspace_models/al-run-new-way_pool10/iter_5_modelworkspace_models/al-run-old-way/iter_5_modelworkspace_models/al-run-old-way_pool10/iter_5_modelworkspace_models/al_entropy_full_orig_models_pool10/iter_5_modelworkspace_models/al_entropy_full_orig_models_pool20/iter_5_modelworkspace_models/al_entropy_full_orig_models_pool30/iter_5_modelworkspace_models/al_entropy_full_orig_models_pool40/iter_5_modelworkspace_models/al_entropy_full_orig_models_pool50/iter_5_modelworkspace_models/al_kmeans_center_full_orig_models_pool10/iter_5_modelworkspace_models/al_kmeans_center_full_orig_models_pool20/iter_5_modelworkspace_models/al_kmeans_center_full_orig_models_pool30/iter_5_modelworkspace_models/al_kmeans_center_full_orig_models_pool40/iter_5_modelworkspace_models/al_kmeans_center_full_orig_models_pool50/iter_5_modelworkspace_models/al_random_full_aug_models_pool10/iter_5_modelworkspace_models/al_random_full_aug_models_pool20/iter_5_modelworkspace_models/al_random_full_aug_models_pool30/iter_5_modelworkspace_models/al_random_full_aug_models_pool40/iter_5_modelworkspace_models/al_random_full_aug_models_pool50/iter_5_modelworkspace_models/al_random_full_orig_models_pool10/iter_5_modelworkspace_models/al_random_full_orig_models_pool20/iter_5_modelworkspace_models/al_random_full_orig_models_pool30/iter_5_modelworkspace_models/al_random_full_orig_models_pool40/iter_5_modelworkspace_models/al_random_full_orig_models_pool50/iter_5_modelJawi_Paper_Repo/)These models are from the main paper replication repository:
other_hist_bench/)These models are historical benchmarks evaluated on historical lines datasets (like Belfort, Esposalles, Himanis, NewsEye, NorHand):
other_hist_bench/Jawi-OCR-data-v4_al_diva_alpha10/iter_5_modelother_hist_bench/Jawi-OCR-data-v4_al_entropy/iter_5_modelother_hist_bench/Jawi-OCR-data-v4_al_kmeans_center/iter_5_modelother_hist_bench/Jawi-OCR-data-v4_al_random/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_diva_alpha10/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_diva_alpha10_full/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_diva_alpha10_full_50/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_entropy/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_entropy_full/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_entropy_full_50/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_kmeans_center/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_kmeans_center_full/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_kmeans_center_full_50/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_random/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_random_full/iter_5_modelother_hist_bench/Teklia_Esposalles-line_al_random_full_50/iter_5_modelTo load any of the adapter models, you can use the transformers and peft libraries in Python.
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
from peft import PeftModel
# 1. Specify the base model and this repository
base_model_id = "aisingapore/Qwen-SEA-LION-v4-8B-VL"
adapter_repo_id = "ThuraAung1601/jawi-ocr-al-models"
# 2. Choose the specific adapter subfolder path from the list above
# Example: Loading the random active learning run with pool size 30
subfolder_path = "workspace_models/al_random_full_orig_models_pool30/iter_5_model"
print("Loading base model...")
model = AutoModelForImageTextToText.from_pretrained(
base_model_id,
device_map="auto",
torch_dtype=torch.bfloat16,
trust_remote_code=True
)
processor = AutoProcessor.from_pretrained(base_model_id, trust_remote_code=True)
print(f"Loading adapter from {subfolder_path}...")
model = PeftModel.from_pretrained(
model,
adapter_repo_id,
subfolder=subfolder_path
)
print("Model is successfully loaded and ready for inference!")