Downloads · 30 days
0
mic7ch/manchu-ocr-llama-final-v2
manchu-ocr-llama-final-v2 is a image-text-to-text model from mic7ch. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
LoRA adapters for Manchu script OCR, fine-tuned from unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit on the mic7ch/manchu-2025-0033 dataset. Part of a replication / ablation study on VLM-based OCR for Manchu.
Downloads · 30 days
0
Access
Public
Updated Aug 8, 2026
Repo size
6.2 GB
Likes
1
Public
Click a slice to open those files.
.safetensors6.6 GB · 96%
From the Hugging Face model README
LoRA adapters for Manchu script OCR, fine-tuned from unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit on the
mic7ch/manchu-2025-0033 dataset.
Part of a replication / ablation study on VLM-based OCR for Manchu.
The VLM is asked to output both the Manchu graph and a romanized transliteration
in a structured format (Manchu: {text}\nRoman: {text}).
best_model/ — trainer's final-step save (selected by load_best_model_at_end on manchu_cer).checkpoints/checkpoint-{step}/ — every intermediate save at save_steps=500 (13 checkpoints total).Paper selection uses the sweep winner on held-out
real_valrather than the trainer'sbest_model/, becausebest_model/is selected on training-timemanchu_cerand does not always coincide with the real-test peak. See the table below.
| Split | Checkpoint path | manchu_word_accuracy |
|---|---|---|
| real_val | checkpoints/checkpoint-6000/ | 0.9881 |
| test | checkpoints/checkpoint-6000/ | 0.9628 |
unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit (4-bit, bitsandbytes)SFTTrainerpaged_adamw_8bit, lr=2e-4, cosine_with_restarts, warmup=100per_device_train_batch_size=4, gradient_accumulation_steps=2, 4× GPU DDP → effective 32save_steps=500, save_total_limit=50manchu_cermanchu_word_accuracy on held-out real_valfrom transformers import AutoProcessor, AutoModelForVision2Seq
from peft import PeftModel
base = "unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit"
adapter = "mic7ch/manchu-ocr-llama-final-v2" # loads best_model by default; or use subfolder=
processor = AutoProcessor.from_pretrained(base)
model = AutoModelForVision2Seq.from_pretrained(base, device_map="auto", load_in_4bit=True)
model = PeftModel.from_pretrained(model, adapter, subfolder="best_model")
# For a specific step:
# model = PeftModel.from_pretrained(model, adapter, subfolder="checkpoints/checkpoint-{N}")
The model outputs:
Manchu: <manchu glyphs>
Roman: <romanized transliteration>
We strip optimizer state (optimizer.pt), scheduler state (scheduler.pt), RNG state
(rng_state_*.pth), and TensorBoard events from each checkpoint. The uploaded files are
sufficient for inference and for continued LoRA fine-tuning from any step, but not for an
exact bit-identical training resume.
Paper forthcoming. Please cite the repository meanwhile:
@software{manchu_ocr_2026,
author = {Chung, H.-M. and collaborators},
title = {Vision-language-model OCR for Manchu script},
year = {2026},
url = {https://huggingface.co/mic7ch/manchu-ocr-llama-final-v2}
}