Model reference · open weights

StructTable-InternVL2

Available as managed deployment LLMs InternScience Image→text 1 variants 603 dl/mo

StructTable-InternVL2 is an open-weight language model from InternScience. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byInternScience
TypeLanguage models
TaskImage→text
Parameters (lead)938M
Released2024-10-18
Popularity603 downloads / month
LicenceOpen weights

About

What StructTable-InternVL2 is

[ Github Repo ] [ Related Paper ] [ Website ]

[ Dataset🤗 ] [ Models🤗 ] [ Demo💬 ]

Welcome to the official repository of StructEqTable-Deploy, a solution that converts images of Table into LaTeX/HTML/MarkDown, powered by scalable data from DocGenome benchmark.

Read the full model card

Overview

Table is an effective way to represent structured data in scientific publications, financial statements, invoices, web pages, and many other scenarios. Extracting tabular data from a visual table image and performing the downstream reasoning tasks according to the extracted data is challenging, mainly due to that tables often present complicated column and row headers with spanning cell operation. To address these challenges, we present TableX, a large-scale multi-modal table benchmark extracted from DocGenome benchmark for table pre-training, comprising more than 2 million high-quality Image-LaTeX pair data covering 156 disciplinary classes. Besides, benefiting from such large-scale data, we train an end-to-end model, StructEqTable, which provides the capability to precisely obtain the corresponding LaTeX description from a visual table image and perform multiple table-related reasoning tasks, including structural extraction and question answering, broadening its application scope and potential.

Changelog

  • [2024/12/12] 🔥 We have released latest model StructTable-InternVL2-1B v0.2 with enhanced recognition stability for HTML and Markdown formats!

  • [2024/10/19] We have released our latest model StructTable-InternVL2-1B!

    Thanks to IntenrVL2 powerful foundational capabilities, and through fine-tuning on the synthetic tabular data and DocGenome dataset, StructTable can convert table image into various common table formats including LaTeX, HTML, and Markdown. Moreover, inference speed has been significantly improved compared to the v0.2 version.

  • [2024/8/22] We have released our StructTable-base-v0.2, fine-tuned on the DocGenome dataset. This version features improved inference speed and robustness, achieved through data augmentation and reduced image token num.

  • [2024/8/08] We have released the TensorRT accelerated version, which only takes about 1 second for most images on GPU A100. Please follow the tutorial to install the environment and compile the model weights.

  • [2024/7/30] We have released the first version of StructEqTable.

TODO

  • [x] Release inference code and checkpoints of StructEqTable.
  • [x] Support Chinese version of StructEqTable.
  • [x] Accelerated version of StructEqTable using TensorRT-LLM.
  • [x] Expand more domains of table image to improve the model's general capabilities.
  • [x] Efficient inference of StructTable-InternVL2-1B by LMDeploy Tookit.
  • [ ] Release our table pre-training and fine-tuning code

Installation

conda create -n structeqtable python>=3.10
conda activate structeqtable

# Install from Source code  (Suggested)
git clone https://github.com/UniModal4Reasoning/StructEqTable-Deploy.git
cd StructEqTable-Deploy
python setup develop

# or Install from Github repo
pip install "git+https://github.com/UniModal4Reasoning/StructEqTable-Deploy.git"

# or Install from PyPI
pip install struct-eqtable==0.3.0

Model Zoo

Base ModelModel SizeTraining DataData AugmentationLMDeployTensorRTHuggingFace
InternVL2-1B~1BDocGenome and Synthetic DataStructTable-InternVL2-1B v0.2
InternVL2-1B~1BDocGenome and Synthetic DataStructTable-InternVL2-1B v0.1
Pix2Struct-base~300MDocGenomeStructTable-base v0.2
Pix2Struct-base~300MDocGenomeStructTable-base v0.1

Quick Demo

  • Run the demo/demo.py
cd tools/demo

python demo.py \
  --image_path ./demo.png \
  --ckpt_path U4R/StructTable-InternVL2-1B \
  --output_format latex
  • HTML or Markdown format output (Only Supported by StructTable-InternVL2-1B)
python demo.py \
  --image_path ./demo.png \
  --ckpt_path U4R/StructTable-InternVL2-1B \
  --output_format html markdown

Efficient Inference

  • Install LMDeploy Tookit
pip install lmdeploy
  • Run the demo/demo.py
cd tools/demo

python demo.py \
  --image_path ./demo.png \
  --ckpt_path U4R/StructTable-InternVL2-1B \
  --output_format latex \
  --lmdeploy
  • Visualization Result

    You can copy the output LaTeX code into demo.tex, then use Overleaf for table visualization.

Acknowledgements

  • DocGenome. An Open Large-scale Scientific Document Benchmark for Training and Testing Multi-modal Large Models.
  • ChartVLM. A Versatile Benchmark and Foundation Model for Complicated Chart Reasoning.
  • Pix2Struct. Screenshot Parsing as Pretraining for Visual Language Understanding.
  • InternVL Family. A Series of Powerful Foundational Vision-Language Models.

From the published model card. Full card on the HuggingFace links in the sidebar.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys structtable-internvl2 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (structtable-internvl2 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"structtable-internvl2","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms