Views
No views yet
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.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-outreal_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.9860 |
| test | checkpoints/checkpoint-3000/ | 0.9575 |
| validation | checkpoints/checkpoint-500/ | 0.9490 |
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_val1from transformers import AutoProcessor, AutoModelForVision2Seq
2from peft import PeftModel
3
4base = "unsloth/llama-3.2-11b-vision-instruct-unsloth-bnb-4bit"
5adapter = "mic7ch/manchu-ocr-llama-final" # loads best_model by default; or use subfolder=
6processor = AutoProcessor.from_pretrained(base)
7model = AutoModelForVision2Seq.from_pretrained(base, device_map="auto", load_in_4bit=True)
8model = PeftModel.from_pretrained(model, adapter, subfolder="best_model")
9
10# For a specific step:
11# model = PeftModel.from_pretrained(model, adapter, subfolder="checkpoints/checkpoint-{N}")Manchu: <manchu glyphs>
Roman: <romanized transliteration>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.@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}
}