CoolFace
Modelpublic

cstr/posformer-mathwriting-GGUF

sourceHugging Facebsd-2-clauseupdated 3mo agoView on Hugging Face
0likes17downloads
Model Card

PosFormer MathWriting — GGUF

GGUF conversion of SJTU-DeepVisionLab/PosFormer for CrispEmbed.

Handwritten mathematical expression OCR — takes a photo of handwritten math and outputs LaTeX. Trained on CROHME 2014.

Architecture

  • —Encoder: DenseNet (growth_rate=24, 16 layers/block, 1-channel grayscale input)
  • —Decoder: 3-layer transformer (256-dim, 8 heads, 1024 FFN)
  • —ARM: coverage-based Attention Reading Module (dc=32) for tracking decoded symbols
  • —Vocab: 113 tokens, max output length 200
  • —Input: grayscale image (arbitrary resolution)
  • —Output: LaTeX string + per-token confidence

Files

FileSizeDescription
posformer-mathwriting_v2-f32.gguf36 MBF32 full precision

Usage

bash
crispembed --backend posformer -m posformer-mathwriting_v2-f32.gguf \
    --image equation.png

License

BSD-2-Clause (same as the original model).

Credits