m4xi/texo-unimer-replication
0
Texo — UniMER replication (step 1750 checkpoint)
Full fine-tune of PP-FormulaNet-S on m4xi/unimer-merged for math formula recognition (image → LaTeX).
Base model
PP-FormulaNet-S (formulanet.pt from alephpi/FormulaNet): 58M parameter model with HGNetV2 encoder + MBart decoder. This is the distilled checkpoint from the original Texo paper, prior to any UniMER training.
Training
Checkpoint selection
The run crashed after ~70k steps. Validation BLEU peaked at step 1750 (BLEU=0.7247, editdistance=0.0582) and degraded monotonically after that. `savetop_k=5` retained only the five best-BLEU checkpoints, all of which fell within the first ~15% of epoch 1; consistent with rapid convergence from a strong pretrained base.
Usage
import torch
from task import FormulaNetLit # Texo src/task.py
model = FormulaNetLit.load_from_checkpoint("texo-cp-1750.ckpt", map_location="cpu")
model.eval()
outputs = model.generate(pixel_values, num_beams=1, do_sample=False, max_new_tokens=512)
pred = model.tokenizer.batch_decode(outputs, skip_special_tokens=True)