Surya 2 Model Architecture and Training
masterSurya 2 uses a unified vision-language model architecture (Qwen3.5-style, approximately 650M parameters) to handle Layout, OCR, and table recognition.
- Layout, OCR, and Table Recognition: These tasks share the single vision-language model. The model is trained to emit either a layout JSON or a full-page HTML output based on the provided prompt.
- Text-line Detection: This is handled by a separate, small PyTorch model. It is a modified EfficientViT segformer trained specifically on document line annotations.
If you require assistance fine-tuning Surya on custom data or wish to use the managed training stack, contact hi@datalab.to.