Saltar al contenido
ModelPublicadoExterno
Descargar

Uni MuMER Qwen3 VL 2B

This model is a Uni-MuMER fine-tuned version of Qwen3-VL-2B-Instruct for Handwritten Mathematical Expression Recognition (HMER) -- converting images of handwritten math expressions into LaTeX.

TipoText modelModelo baseQwen/Qwen3-VL-2B-InstructVersiónmodelBcalidad

Fuente del modelo

Tipo
Text model
Tamaño del archivo
3,96 GB
Modelo base
Qwen/Qwen3-VL-2B-Instruct
Versión
vmodel
Actualizado
13 oct 2026
Descargas
539
Fuente
Hugging Face

Descripción de la fuente

Uni-MuMER-Qwen3-VL-2B

This model is a Uni-MuMER fine-tuned version of Qwen3-VL-2B-Instruct for Handwritten Mathematical Expression Recognition (HMER) -- converting images of handwritten math expressions into LaTeX.

Uni-MuMER uses unified multi-task fine-tuning with three auxiliary tasks (Tree-CoT, Error-Driven Learning, Symbol Counting) to inject domain-specific knowledge into a general-purpose vision-language model.

Paper: Uni-MuMER: Unified Multi-Task Fine-Tuning of Vision-Language Model for Handwritten Mathematical Expression Recognition (NeurIPS 2025 Spotlight)

Model Details

PropertyValue
Base ModelQwen/Qwen3-VL-2B-Instruct
ArchitectureQwen3-VL (dedicated vision-language model with ViT encoder)
Parameters2.1B
Training DataUni-MuMER-Data (~1.6M samples, 26 subsets)
Fine-tuningFull (all parameters, including vision encoder)
Precisionbf16
Templateqwen3_vl_nothink (via LLaMA-Factory)

Training Configuration

HyperparameterValue
Epochs1
Learning Rate1e-5 (cosine schedule, 10% warmup)
Effective Batch Size512 (8 GPUs x 4 per-device x 16 accumulation)
DeepSpeedZeRO-3
Image Max Pixels262,144 (512x512)
Cutoff Length2048 tokens
Hardware8x NVIDIA A100 80GB
Training Time~18 hours
Final Train Loss0.0433

Benchmark Results

ExpRate (Exact Match Rate)

DatasetSamplesUni-MuMER-3BQwen3.5-2BQwen3.5-4BThis ModelQwen3-VL-4B
CROHME 201498682.25%83.98%82.56%83.27%82.35%
CROHME 20161,14778.29%81.17%78.20%78.55%79.34%
CROHME 20191,19979.82%80.15%75.98%79.40%78.98%
CROHME 2023 Test2,30069.52%69.43%66.74%70.96%69.17%
CROHME 2023 Val55568.11%69.91%67.75%70.63%66.67%
HME100K Test24,60769.50%70.43%70.02%69.31%69.79%
Im2LaTeXv2 Test10,11876.99%77.82%77.20%77.11%77.46%
MathWriting Test7,64353.03%51.84%54.32%50.66%53.15%
Average72.19%73.09%71.60%72.49%72.11%

CDM Metrics (Visual-Equivalence-Aware)

DatasetCDM F1CDM ExpRate
CROHME 20140.970086.50%
CROHME 20160.966081.50%
CROHME 20190.970082.60%
HME100K Test0.971072.40%
Im2LaTeXv2 Test0.994092.60%
MathWriting Test0.948069.00%
Average0.969280.35%

Usage

Inference with vLLM

from vllm import LLM, SamplingParams

model = LLM(
    model="phxember/Uni-MuMER-Qwen3-VL-2B",
    trust_remote_code=True,
    max_model_len=2048,
)

sampling_params = SamplingParams(temperature=0.2, top_p=0.8, max_tokens=2048)

# See https://github.com/BFlameSwift/Uni-MuMER for full inference scripts

Batch Evaluation

git clone https://github.com/BFlameSwift/Uni-MuMER.git
cd Uni-MuMER
bash eval/eval_all.sh -m phxember/Uni-MuMER-Qwen3-VL-2B

Related Models

ModelBaseAvg ExpRateHuggingFace
Uni-MuMER-Qwen2.5-VL-3BQwen2.5-VL-3B72.19%Link
Uni-MuMER-Qwen2.5-VL-7BQwen2.5-VL-7B-Link
Uni-MuMER-Qwen3.5-2BQwen3.5-2B73.09%Link
Uni-MuMER-Qwen3.5-4BQwen3.5-4B71.60%Link
Uni-MuMER-Qwen3-VL-2BQwen3-VL-2B72.49%This model
Uni-MuMER-Qwen3-VL-4BQwen3-VL-4B72.11%Link

Citation

@article{li2025unimumer,
  title = {Uni-MuMER: Unified Multi-Task Fine-Tuning of Vision-Language Model for Handwritten Mathematical Expression Recognition},
  author = {Li, Yu and Jiang, Jin and Zhu, Jianhua and Peng, Shuai and Wei, Baole and Zhou, Yuxuan and Gao, Liangcai},
  year = {2025},
  journal = {arXiv preprint arXiv:2505.23566},
}

Fuentes

1 fuente
Hugging FacePrincipalVersión 26d57451c9182b68c60aef78634bfea20c41a866
huggingface.co/phxember/Uni-MuMER-Qwen3-VL-2B/tree/26d57451c9182b68c60aef78634bfea20c41a866

Verificado 27 ago

Artefactos del modelo

1 artefacto

model.safetensors

safetensors · 3,96 GB · SHA-256 e9e0bd18f91a…25d4 · Hugging Face

Download file

Extractos de fuentes

2 extractos

--- license: apache-2.0 base_model: Qwen/Qwen3-VL-2B-Instruct tags: - uni-mumer - hmer - math-ocr - handwritten-math - latex - qwen3-vl - vision-language pipeline_tag: image-to-text library_name: transformers datasets: - phxember/Uni-MuMER-Data language: - en --- # Uni-MuMER-Qwen3-VL-2B This model is a **Uni-MuMER** fine-tuned version of [Qwen3-VL-2B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-2B-Instruct) for **Handwritten Mathematical Expression Recognition (HMER)** -- converting images of handwritten math expressions into LaTeX. Uni-MuMER uses unified multi-task fine-tuning with three auxiliary tasks (Tree-CoT, Error-Driven Learning, Symbol Counting) to inject domain-specific knowledge into a general-purpose vision-language model. > **Paper**: [Uni-MuMER: Unified Multi-Task Fine-Tuning of Vision-Language Model for Handwritten Mathematical Expression Recognition](https://arxiv.org/abs/2505.23566) (NeurIPS 2025 Spotlight) ## Model Details | Property | Value | |----------|-------| | Base Model | Qwen/Qwen3-VL-2B-Instruct | | Architecture | Qwen3-VL (dedicated vision-language model with ViT encoder) | | Parameters | 2.1B | | Training Data | [Uni-MuMER-Data](https://huggingface.co/datasets/phxember/Uni-MuMER-Data) (~1.6M samples, 26 subsets) | | Fine-tuning | Full (all parameters, including vision encoder) | | Precision | bf16 | | Template | `qwen3_vl_nothink` (via LLaMA-Factory) | ## Training Configuration | Hyperparameter | Value | |----------------|-------| | Epochs | 1 | | Learning Rate | 1e-5 (cosine schedule, 10% warmup) | | Effective Batch Size | 512 (8 GPUs x 4 per-device x 16 accumulation) | | DeepSpeed | ZeRO-3 | | Image Max Pixels | 262,144 (512x512) | | Cutoff Length | 2048 tokens | | Hardware | 8x NVIDIA A100 80GB | | Training Time | ~18 hours | | Final Train Loss | 0.0433 | ## Benchmark Results ### ExpRate (Exact Match Rate) | Dataset | Samples | Uni-MuMER-3B | Qwen3.5-2B | Qwen3.5-4B | **This Model** | Qwen3-VL-4B | |---------|---------|:------------:|:----------:|:----------:|:--------------:|:-----------:| | CROHME 2014 | 986 | 82.25% | 83.98% | 82.56% | 83.27% | 82.35% | | CROHME 2016 | 1,147 | 78.29% | 81.17% | 78.20% | 78.55% | 79.34% | | CROHME 2019 | 1,199 | 79.82% | 80.15% | 75.98% | 79.40% | 78.98% | | CROHME 2023 Test | 2,300 | 69.52% | 69.43% | 66.74% | **70.96%** | 69.17% | | CROHME 2023 Val | 555 | 68.11% |...

Source context: 539 downloads · 0 likes · Pipeline image-to-text · Library transformers · Repo phxember/Uni-MuMER-Qwen3-VL-2B