Run this model with HF Jobs
Run northlight-ai/chart-to-table-multilingual-small on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/northlight-ai/chart-to-table-multilingual-small. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/northlight-ai/chart-to-table-multilingual-small on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/northlight-ai/chart-to-table-multilingual-small. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use northlight-ai/chart-to-table-multilingual-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use northlight-ai/chart-to-table-multilingual-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="northlight-ai/chart-to-table-multilingual-small") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("northlight-ai/chart-to-table-multilingual-small") model = AutoModelForMultimodalLM.from_pretrained("northlight-ai/chart-to-table-multilingual-small", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Transformers.js
How to use northlight-ai/chart-to-table-multilingual-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'northlight-ai/chart-to-table-multilingual-small'); - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use northlight-ai/chart-to-table-multilingual-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "northlight-ai/chart-to-table-multilingual-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "northlight-ai/chart-to-table-multilingual-small", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/northlight-ai/chart-to-table-multilingual-small
- SGLang
How to use northlight-ai/chart-to-table-multilingual-small with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "northlight-ai/chart-to-table-multilingual-small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "northlight-ai/chart-to-table-multilingual-small", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "northlight-ai/chart-to-table-multilingual-small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "northlight-ai/chart-to-table-multilingual-small", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use northlight-ai/chart-to-table-multilingual-small with Docker Model Runner:
docker model run hf.co/northlight-ai/chart-to-table-multilingual-small
- chart-to-table-multilingual-small: Multilingual Chart-to-Markdown-Table De-plotter (258M Apache-2.0 VLM & ONNX)
- Quick start (PyTorch /
transformers) - Browser / Node.js usage (
@huggingface/transformersONNX) - Locked Blind Benchmark Results (
eval_blind: 13 splits, 900 charts, 450 unique source charts)- Summary vs baselines (strict Claim-Rule disclosure)
- 1. Source-chart clustered blind aggregates (95% CIs)
- 2. Per-split primary
deplot_f1_10_loc& paired 95% CIs (eval_blind) - 3. Per-split pinned upstream
deplot_f1_10_strict(title-preserving) & secondary metrics (eval_blind) - 4. Development suite note (
eval_frozen, 823 charts / 437 clusters)
- ONNX export & CPU parity (
onnx/parity.json) - Training procedure
- Limitations
- Citation
- Quick start (PyTorch /
chart-to-table-multilingual-small: Multilingual Chart-to-Markdown-Table De-plotter (258M Apache-2.0 VLM & ONNX)
Built by Pankaj Garg at Northlight.
Try it in your browser: chart-to-table-demo (runs 100% client-side with @huggingface/transformers / ONNX Runtime Web; default q8 bundle 360.18 MB / 343.49 MiB).
An Apache-2.0, 257.5M-parameter multilingual chart-to-Markdown-table vision-language model fine-tuned from ibm-granite/granite-docling-258M (Idefics3ForConditionalGeneration: SigLIP2-base-patch16-512 + Granite-165M) in two stages (full_v3 -> full_v4) exclusively on 72,000 original programmatic multi-locale charts (48,000 synth_v3 + 24,000 synth_v4) across 10 languages (en, de, fr, es, it, pt, ja, zh, ar, ru). Northlight fine-tuning uses 100% original synthetic data with zero LLM teacher labels and zero GPL/non-commercial datasets (inherited pretraining overlap inside IBM's upstream granite-docling-258M checkpoint is unverified beyond IBM's model card).
It outputs clean GitHub-Flavored Markdown tables that preserve native-script headers and categories while normalizing locale-formatted numbers (German 2.098,25 β¬, French 2 098,25 β¬, Spanish 12,4 %, English $1,234.56) into canonical dot-decimal floats (2098.25, 12.4%, 1234.56) directly parseable by pandas, SQL, and downstream LLMs.
Quick start (PyTorch / transformers)
import torch
from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "northlight-ai/chart-to-table-multilingual-small"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
dtype=torch.bfloat16,
use_safetensors=True,
device_map="auto",
).eval()
image = Image.open("chart.png").convert("RGB")
if max(image.size) > 1024:
scale = 1024.0 / max(image.size)
image = image.resize((int(image.width * scale), int(image.height * scale)), Image.BICUBIC)
messages = [
{
"role": "user",
"content": [
{"type": "image"},
{"type": "text", "text": "Convert this chart to a Markdown table."},
],
}
]
prompt = processor.apply_chat_template(messages, add_generation_prompt=True)
inputs = processor(text=[prompt], images=[[image]], return_tensors="pt").to(model.device)
with torch.no_grad():
out_ids = model.generate(**inputs, max_new_tokens=512, do_sample=False)
markdown_table = processor.batch_decode(
out_ids[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True
)[0].strip()
print(markdown_table)
Browser / Node.js usage (@huggingface/transformers ONNX)
import { AutoProcessor, AutoModelForVision2Seq, load_image } from "@huggingface/transformers";
const model_id = "northlight-ai/chart-to-table-multilingual-small";
const processor = await AutoProcessor.from_pretrained(model_id);
const model = await AutoModelForVision2Seq.from_pretrained(model_id, {
dtype: "q8", // 360.18 MB asymmetric block-32 uint8 ONNX (or "fp32" for 1,262.13 MB exact)
device: "wasm",
});
const image = await load_image("chart.png");
const messages = [
{
role: "user",
content: [
{ type: "image" },
{ type: "text", text: "Convert this chart to a Markdown table." },
],
},
];
const prompt = processor.apply_chat_template(messages, { add_generation_prompt: true });
const inputs = await processor(prompt, [image], { do_image_splitting: true });
const outIds = await model.generate({ ...inputs, max_new_tokens: 512, do_sample: false });
const table = processor.batch_decode(
outIds.slice(null, [inputs.input_ids.dims.at(-1), null]),
{ skip_special_tokens: true }
)[0].trim();
console.log(table);
Locked Blind Benchmark Results (eval_blind: 13 splits, 900 charts, 450 unique source charts)
All four models' blind-test predictions (3,600 raw predictions across 900 charts) were generated once in a single locked inference run (gpu-queue #3133) on an untouched 900-chart blind test suite (eval_blind, 450 unique source_chart_ids across 13 splits: 200 ChartQA blind, 150 ChartX blind, 7 Γ 50 = 350 PolyChartQA blind, and 4 Γ 50 = 200 EU-locale heldout blind) after locking the final checkpoint (full_v4/best) and comparators. Those saved raw predictions were subsequently rescored on CPU (zero model retraining or re-inference) to fix upstream Google DePlot zero-target, empty-corner-cell, and strict-US parseability edge cases caught during adversarial audit. Programmatically verified 0 image SHA-256 overlap and 0 source-chart overlap against the separate 823-chart development suite (eval_frozen, which guided synth_v2βsynth_v4 iterations and rejected the full_v5 ablation), 0 cross-dataset overlap across ChartQA/ChartX/PolyChartQA, and 0 exact image/table/EU-category overlap against all training corpora (synth_v3, synth_v4, synth_v5). (Note: achang/plot_qa was excluded prior to training because its XML/DePlot table export replaces x-axis labels with integer indices 0..5; kppkkp/OneChart hit its 4,096-token limit in the Gate 0 diagnostic run, scoring 0.00 under that transformers 5.x setup.)
Metrics & Deterministic Table Adapters:
deplot_f1_10_loc(primary): Table-body DePlot key-firsttable_datapoints_f1(text_theta = 0.5,number_theta = 0.10, scoring headers + rows withoutTITLE |rows so all four models are compared on extracted table cells, including value-column headers on single-series charts) with locale-aware EU/US numeric parsing so baselines are never penalized solely for EU comma/space formatting.deplot_f1_10_strict: Pinned upstreamgoogle-research/deplot/metrics.py::table_datapoints_precision_recall_per_point(text_theta = 0.5,number_theta = 0.10, upstream_to_float, upstream zero-target text fallback) fed through explicit title-preserving and empty-cell-preserving adapters (adapt_gt_table_to_deplot_str,adapt_pred_to_deplot_strinsrc/metrics_table.py: DePlot<0x0A>+TITLE |preserved verbatim; Markdown fences &| --- |separator rows stripped while preserving empty cells and anyTITLE |line; OTSL parsed with empty cell tags and optional<caption>preserved). Note: becausegoogle/deplotoutputsTITLE | ...rows while pure Markdown-table models (full_v4,PP-Chart2Table) omit titles,deplot_f1_10_strictreflects both table-body and title-row agreement.deplot_f1_05_us: Table-body key-firsttable_datapoints_f1(text_theta = 0.5,number_theta = 0.05) with strict canonical-US numeric parsing (0.0value credit whenever a numeric target's prediction fails strict-US parsing, rejecting EU commas such as12,4 %with no text-equality fallback) to test direct downstreamfloat()parseability.num05_loc: Numeric-only bipartite F1 (tau = 0.05, locale-aware).- Clustered 95% CIs: Paired bootstrap (
2,000resamples,seed = 42), resampled jointly bysource_chart_idacross parallel language/locale renderings (450clusters overall,50clusters on PolyChartQA 7-lang,50clusters on EU heldout 4-locale).
Summary vs baselines (strict Claim-Rule disclosure)
- vs
ibm-granite/granite-docling-258M(257.5M, Apache-2.0 β base checkpoint): BETTER across all 13/13 blind splits (Claim Rule: PASS). Source-clustered overalldeplot_f1_10_loc:61.80vs27.72(+34.09 [+29.51, +38.95], worst splitpolychartqa_blind_ru+24.61). Under pinned upstreamdeplot_f1_10_strict:43.55vs19.56(+23.98 [+19.72, +28.45], 13/13 wins, worst splitchartqa_blind_test+18.33). - vs
google/deplot(282.3M, Apache-2.0 β primary incumbent): NOT better overall (Claim Rule "better overall": FAIL); substantially ahead on 11/13 multilingual, EU-locale, and ChartX splits underdeplot_f1_10_loc(7/13 under title-preservingdeplot_f1_10_strict) while trailing on English ChartQA. Source-clustered overalldeplot_f1_10_loc:61.80vs49.24(+12.56 [+8.87, +16.34]; pinned upstream title-preservingdeplot_f1_10_strict:43.55vs42.74,+0.81 [-2.81, +4.53]), with large gains on PolyChartQA 7-lang (+19.95 [+14.27, +25.47]loc /+14.85 [+8.62, +20.88]strict;0.0%empty vs4.0%AR /6.0%JA /4.0%ZH for DePlot), EU heldout 4-locale (+34.46 [+25.23, +44.31]loc /+36.46 [+26.81, +46.42]strict canonical-USdeplot_f1_05_us), and ChartX (+11.82 [+6.82, +16.94]loc;-7.54 [-10.58, -4.17]title-preserving strict where DePlot emitsTITLE |rows). However, this model trailsgoogle/deploton Englishchartqa_blind_test(67.88vs89.58,-21.70 [-27.05, -16.34]deplot_f1_10_loc;45.32vs65.59,-20.27 [-25.43, -14.85]deplot_f1_10_strict; numeric-onlynum05_loc88.60vs91.95,-3.35 [-6.21, -0.53]). Under Northlight's strict< 5.0worst-split safety floor, we explicitly do not claim overall superiority overgoogle/deplot: usegoogle/deplotif your workload is exclusively English ChartQA-style web charts, and use this model for multilingual, non-Latin script, and EU-locale charts. - vs
PaddlePaddle/PP-Chart2Table_safetensors(560.5M, Apache-2.0 β 2.2Γ larger EN+ZH reference): NOT better overall (Claim Rule: FAIL). Ahead on 8/13 blind splits underdeplot_f1_10_loc(61.80vs53.15,+8.65 [+4.91, +12.70]overall;43.55vs41.45,+2.10 [-2.14, +6.29]pinned upstreamdeplot_f1_10_strict, 6/13 splits), leading strongly on EU-decimal DE/ES/FR (+33.99to+47.16loc;+38.35 [+28.65, +47.89]strict canonical-USdeplot_f1_05_us),eu_heldout_blind_en_us(+18.03), Russian (+46.05), Arabic (+26.50), and Japanese (+20.89), while trailing the 2.2Γ larger model on Chinese (polychartqa_blind_zh-14.76), Englishchartqa_blind_test(-12.15), andpolychartqa_blind_{en,es,fr}(-8.98,-7.00,-1.74).
1. Source-chart clustered blind aggregates (95% CIs)
Aggregate (n items / clusters) |
Metric | granite-docling base |
google/deplot |
PP-Chart2Table (560M) |
This model (full_v4) |
Ξ vs granite-docling (95% CI) |
Ξ vs google/deplot (95% CI) |
Ξ vs PP-Chart2Table (95% CI) |
|---|---|---|---|---|---|---|---|---|
All 13 blind splits (900 / 450) |
deplot_f1_10_loc |
27.72 | 49.24 | 53.15 | 61.80 | +34.09 [+29.51, +38.95] |
+12.56 [+8.87, +16.34] |
+8.65 [+4.91, +12.70] |
All 13 blind splits (900 / 450) |
deplot_f1_10_strict |
19.56 | 42.74 | 41.45 | 43.55 | +23.98 [+19.72, +28.45] |
+0.81 [β2.81, +4.53] |
+2.10 [β2.14, +6.29] |
All 13 blind splits (900 / 450) |
deplot_f1_05_us |
24.15 | 47.49 | 51.79 | 60.34 | +36.19 [+31.66, +41.06] |
+12.85 [+9.00, +16.67] |
+8.55 [+4.74, +12.56] |
PolyChartQA 7-lang (350 / 50) |
deplot_f1_10_loc |
17.19 | 26.92 | 38.17 | 46.87 | +29.68 [+19.59, +39.07] |
+19.95 [+14.27, +25.47] |
+8.71 [+2.39, +14.83] |
PolyChartQA 7-lang (350 / 50) |
deplot_f1_10_strict |
14.37 | 27.18 | 32.82 | 42.04 | +27.66 [+18.57, +36.15] |
+14.85 [+8.62, +20.88] |
+9.21 [+3.94, +14.37] |
EU heldout 4-locale (200 / 50) |
deplot_f1_10_loc |
42.65 | 51.02 | 49.68 | 85.48 | +42.83 [+34.05, +52.45] |
+34.46 [+25.23, +44.31] |
+35.81 [+25.81, +46.14] |
EU heldout 4-locale (200 / 50) |
deplot_f1_10_strict |
24.04 | 45.73 | 37.78 | 49.30 | +25.26 [+16.21, +35.27] |
+3.57 [β4.76, +12.95] |
+11.52 [β3.87, +25.75] |
EU heldout 4-locale (200 / 50) |
deplot_f1_05_us |
32.14 | 48.84 | 46.96 | 85.30 | +53.16 [+44.17, +61.80] |
+36.46 [+26.81, +46.42] |
+38.35 [+28.65, +47.89] |
2. Per-split primary deplot_f1_10_loc & paired 95% CIs (eval_blind)
| Blind Split | n | granite-docling base |
google/deplot (282M) |
PP-Chart2Table (560M) |
This model (258M) | Ξ vs granite-docling (95% CI) |
Ξ vs google/deplot (95% CI) |
Ξ vs PP-Chart2Table (95% CI) |
|---|---|---|---|---|---|---|---|---|
chartqa_blind_test (EN, GPL-3.0 eval-only) |
200 | 38.49 | 89.58 | 80.03 | 67.88 | +29.39 [+23.06, +35.53] |
β21.70 [β27.05, β16.34] |
β12.15 [β16.48, β7.67] |
chartx_blind_test (EN, Apache-2.0 eval-only) |
150 | 17.98 | 45.15 | 56.93 | 56.97 | +38.99 [+32.97, +44.53] |
+11.82 [+6.82, +16.94] |
+0.04 [β5.78, +6.01] |
eu_heldout_blind_en_us (EN, US $1,234.56) |
50 | 43.78 | 50.52 | 68.76 | 86.78 | +43.00 [+32.13, +54.15] |
+36.27 [+23.53, +49.34] |
+18.03 [+8.32, +28.22] |
eu_heldout_blind_de_eu (DE, EU 2.098,25 β¬) |
50 | 53.40 | 56.77 | 44.54 | 88.60 | +35.19 [+24.83, +46.24] |
+31.82 [+21.81, +42.64] |
+44.05 [+31.17, +56.83] |
eu_heldout_blind_fr_eu (FR, EU 2 098,25 β¬) |
50 | 36.27 | 50.27 | 43.75 | 77.74 | +41.47 [+29.57, +54.14] |
+27.47 [+15.78, +40.30] |
+33.99 [+16.95, +50.83] |
eu_heldout_blind_es_eu (ES, EU 1.234,56 β¬) |
50 | 37.16 | 46.54 | 41.66 | 88.82 | +51.66 [+40.32, +63.36] |
+42.28 [+30.38, +54.39] |
+47.16 [+34.30, +60.21] |
polychartqa_blind_en (EN, eval-only) |
50 | 22.02 | 52.13 | 62.36 | 53.38 | +31.36 [+20.34, +42.50] |
+1.26 [β6.63, +10.04] |
β8.98 [β17.08, β0.44] |
polychartqa_blind_es (ES, eval-only) |
50 | 20.20 | 50.00 | 56.32 | 49.31 | +29.12 [+14.08, +43.31] |
β0.68 [β8.89, +6.89] |
β7.00 [β17.48, +3.39] |
polychartqa_blind_fr (FR, eval-only) |
50 | 26.42 | 50.12 | 56.64 | 54.90 | +28.48 [+12.95, +42.96] |
+4.79 [β0.36, +9.59] |
β1.74 [β8.62, +4.51] |
polychartqa_blind_ja (JA, eval-only) |
50 | 12.93 | 1.10 | 28.92 | 49.80 | +36.87 [+23.89, +49.01] |
+48.71 [+37.43, +58.94] |
+20.89 [+10.28, +30.90] |
polychartqa_blind_zh (ZH, eval-only) |
50 | 14.13 | 1.29 | 60.12 | 45.36 | +31.24 [+19.40, +42.56] |
+44.07 [+32.83, +54.19] |
β14.76 [β22.26, β7.31] |
polychartqa_blind_ru (RU, eval-only) |
50 | 23.87 | 33.82 | 2.44 | 48.49 | +24.61 [+10.83, +36.97] |
+14.67 [+5.87, +23.74] |
+46.05 [+33.30, +57.54] |
polychartqa_blind_ar (AR, eval-only) |
50 | 0.79 | 0.00 | 0.36 | 26.85 | +26.06 [+16.45, +35.96] |
+26.85 [+17.76, +36.30] |
+26.50 [+17.31, +35.94] |
3. Per-split pinned upstream deplot_f1_10_strict (title-preserving) & secondary metrics (eval_blind)
| Blind Split | n | granite strict |
deplot strict |
PP-560M strict |
Ours strict | Ξ vs deplot strict (95% CI) |
Ours deplot_f1_05_us |
Ours num05_loc |
Empty % (ours / deplot) |
|---|---|---|---|---|---|---|---|---|---|
chartqa_blind_test |
200 | 26.99 | 65.59 | 56.28 | 45.32 | β20.27 [β25.43, β14.85] |
66.75 | 88.60 | 0.0% / 0.0% |
chartx_blind_test |
150 | 15.80 | 44.57 | 46.68 | 37.03 | β7.54 [β10.58, β4.17] |
52.88 | 76.87 | 0.0% / 0.0% |
eu_heldout_blind_en_us |
50 | 23.94 | 46.52 | 51.18 | 49.58 | +3.06 [β6.28, +13.53] |
86.61 | 98.94 | 0.0% / 2.0% |
eu_heldout_blind_de_eu |
50 | 28.87 | 50.17 | 33.68 | 49.26 | β0.91 [β9.83, +8.84] |
88.41 | 98.95 | 0.0% / 0.0% |
eu_heldout_blind_fr_eu |
50 | 20.98 | 44.15 | 35.59 | 49.03 | +4.88 [β5.62, +15.99] |
77.55 | 98.70 | 0.0% / 0.0% |
eu_heldout_blind_es_eu |
50 | 22.39 | 42.07 | 30.66 | 49.32 | +7.25 [β2.18, +18.24] |
88.63 | 98.95 | 0.0% / 0.0% |
polychartqa_blind_en |
50 | 19.98 | 51.44 | 53.47 | 46.78 | β4.66 [β12.26, +3.36] |
51.87 | 84.02 | 0.0% / 0.0% |
polychartqa_blind_es |
50 | 18.42 | 51.67 | 46.79 | 43.00 | β8.67 [β15.03, β2.78] |
48.07 | 83.61 | 0.0% / 0.0% |
polychartqa_blind_fr |
50 | 20.47 | 49.89 | 51.41 | 49.16 | β0.73 [β7.43, +6.19] |
53.26 | 84.99 | 0.0% / 0.0% |
polychartqa_blind_ja |
50 | 11.60 | 1.03 | 25.69 | 46.15 | +45.12 [+33.77, +55.91] |
48.24 | 81.74 | 0.0% / 6.0% |
polychartqa_blind_zh |
50 | 12.02 | 1.22 | 51.26 | 41.95 | +40.73 [+29.91, +50.67] |
44.44 | 81.87 | 0.0% / 4.0% |
polychartqa_blind_ru |
50 | 18.12 | 35.02 | 1.03 | 42.70 | +7.68 [β0.26, +15.33] |
47.39 | 82.90 | 0.0% / 0.0% |
polychartqa_blind_ar |
50 | 0.00 | 0.00 | 0.13 | 24.52 | +24.52 [+15.80, +33.78] |
26.02 | 77.87 | 0.0% / 4.0% |
4. Development suite note (eval_frozen, 823 charts / 437 clusters)
Before locking full_v4/best and running the one-shot eval_blind evaluation above, the 823-chart eval_frozen suite was used strictly as a development/iteration suite to diagnose missing chart families and select between checkpoints (full_v4: 63.78 overall deplot_f1_10_loc, 83.58 EU heldout, 58.62 ChartX, 44.96 PolyChartQA 7-lang, 73.55 ChartQA vs full_v5 ablation: 59.06 overall, -4.73 [-7.22, -2.57], losing 10/13 splits).
ONNX export & CPU parity (onnx/parity.json)
This repository ships modular, pure-opset-17 ONNX graphs matching the Idefics3ForConditionalGeneration layout used by @huggingface/transformers (vision_encoder, embed_tokens, decoder_model_merged), with zero custom ops and zero external data shards. Because standard per-tensor dynamic activation quantization distorts SigLIP2 vision features (cos = 0.888), the quantized (q8) release uses asymmetric block-32 UINT8 weight-only quantization (preserving fp32 activations, achieving 3.50Γ compression).
Verified end-to-end on CPU across a stratified 26-chart blind slice (2 charts from every one of the 13 blind splits in data/eval_blind/manifest.json, seed = 42, greedy decoding max_new_tokens = 512, 16 CPU threads):
| Format | Files (onnx/) |
Total Size | Greedy Token Agree vs PT fp32 | Exact Strings | deplot_f1_10_loc (mean drift vs PT fp32) |
num05_loc |
CPU Speed (16T) |
|---|---|---|---|---|---|---|---|
| PyTorch fp32 CPU | model.safetensors |
515.09 MB (bf16 on disk) | ref | ref | 73.45 (ref) | 85.53 | 11.39 s/chart |
| Saved GPU bf16 | model.safetensors |
515.09 MB | β | β | 73.82 (+0.37) | β | GPU ref |
| ONNX fp32 | vision_encoder.onnx (374.23 MB), embed_tokens.onnx (231.21 MB), decoder_model_merged.onnx (656.69 MB) |
1,262.13 MB (1,203.66 MiB) | 100.00% (2,926/2,926) | 26/26 | 73.45 (+0.0000) |
85.53 | 7.81 s/chart |
ONNX q8 (asym u8 blk-32) |
vision_encoder_quantized.onnx (109.74 MB), embed_tokens_quantized.onnx (65.03 MB), decoder_model_merged_quantized.onnx (185.41 MB) |
360.18 MB (343.49 MiB) | 90.44% (2,657/2,938) | 16/26 | 73.88 (+0.4284 vs fp32; +0.0618 vs bf16) |
85.75 | 7.58 s/chart |
q8 item-level & per-split dispersion disclosure (26-chart blind slice): While mean q8 drift across all 26 blind items is +0.4284 pts (<= 1.0 pt gate), individual items can shift further under 8-bit weight quantization: max_abs_item_drift_pts = 14.07 (best item gain +14.07 on chartx_blind_pie_158), worst item drop -6.67 pts (poly_blind_ru_two_col_22355, 80.00 -> 73.33), and per-split 2-chart mean drifts range from -3.33 (polychartqa_blind_ru) and -1.00 (chartqa_blind_test) to +2.87 (polychartqa_blind_zh) and +7.05 (chartx_blind_test), with 0.00 drift on 8/13 splits (eu_heldout_blind_*, polychartqa_blind_{ar,en,es,ja}) and -0.01 on polychartqa_blind_fr. Use fp32 ONNX if exact PyTorch fp32 parity (100.00% token agreement, 26/26 exact strings) is required.
Training procedure
- Base model:
ibm-granite/granite-docling-258M(257.5M parameters, Apache-2.0; upstream model card listsSynthCodeNet,SynthFormulaNet,SynthChartNet, andDoclingMatix; inherited upstream pretraining overlap is unverified beyond IBM's model card). - Stage 1 (
full_v3,synth_v3): 48,000 train + 1,200 internal dev original programmatic charts across 10 languages (en12,106;de4,711;fr4,590;ar4,558;es4,428;ru4,289;ja4,273;zh4,210;it2,445;pt2,390). Full-parameter bf16 fine-tuning for 1.5 epochs (2,250 steps, effective batch size 32, cosine LR8e-5,0.3Γvision LR multiplier, assistant-only cross-entropy loss). - Stage 2 (
full_v4,synth_v4β released weights): Continuation fine-tuning fromfull_v3/beston 24,000 train + 1,200 internal dev original programmatic charts (en5,981;ar2,379;de2,322;es2,237;fr2,237;ja2,151;zh2,117;ru2,104;pt1,238;it1,234) adding decoupled chart titles vs verbatim value-axis labels and footer/URL watermark immunity (1.0 epoch = 750 steps, effective batch size 32, cosine LR3e-5,0.3Γvision LR multiplier). Best checkpoint selected on language-stratified internalsynth_v4dev at step 500 (dev RMS05(loc) = 83.41,0.0%empty). Trained on a single AMD Radeon AI PRO R9700 (32 GB VRAM, ROCm).
Limitations
- English ChartQA gap vs
google/deplot: On Englishchartqa_blind_test, this model trailsgoogle/deploton keyed table F1 (67.88vs89.58,-21.70pts ondeplot_f1_10_loc;45.32vs65.59on pinned upstreamdeplot_f1_10_strict), while unkeyed numeric-only F1 (num05_loc) is much closer (88.60vs91.95,-3.35 [-6.21, -0.53]). On the evaluatedchartqa_blind_testsplit, bothgoogle/deplotandPP-Chart2Table(560M) score higher. - Unlabeled / dense scientific plots: On
chartx_blind_test,deplot_f1_10_locis56.97(num05_loc = 76.87). - Arabic keyed table F1: While this model improves substantially over
google/deplot(0.00),granite-docling-258M(0.79), andPP-Chart2Table(0.36) onpolychartqa_blind_ar, its keyeddeplot_f1_10_loc(26.85) remains much lower than its unkeyed numeric-onlynum05_loc(77.87) and lower than its keyed scores on Latin-script and CJK PolyChartQA splits (45.36β54.90). - Non-tabular visualizations & length: Designed for standard data charts (bar, stacked/grouped/diverging bar, line, area, pie, donut). Box plots, heatmaps, radar charts, and 3D plots are out of scope. Evaluated with
max_new_tokens = 512; tables with >30 rows Γ many series may require a higher limit.
Citation
@misc{garg2026charttotablemultilingual,
author = {Garg, Pankaj},
title = {chart-to-table-multilingual-small: A 258M Apache-2.0 Multilingual Chart-to-Markdown-Table De-plotter},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/northlight-ai/chart-to-table-multilingual-small}}
}
- Downloads last month
- 35
Model tree for northlight-ai/chart-to-table-multilingual-small
Base model
ibm-granite/granite-docling-258MSpace using northlight-ai/chart-to-table-multilingual-small 1
Evaluation results
- Table-Body DePlot Key-First RMS-F1 (tau=0.10, locale-aware) on ChartQA (EN blind test slice, N=200)test set self-reported67.880
- Pinned Upstream Google DePlot RMS-F1 (tau=0.10, title-preserving, strict _to_float) on ChartQA (EN blind test slice, N=200)test set self-reported45.320
- Numeric-Only F1 (tau=0.05) on ChartQA (EN blind test slice, N=200)test set self-reported88.600
- Table-Body DePlot Key-First RMS-F1 (tau=0.10, locale-aware) on ChartX (EN blind test slice, N=150)test set self-reported56.970
- Pinned Upstream Google DePlot RMS-F1 (tau=0.10, title-preserving, strict _to_float) on ChartX (EN blind test slice, N=150)test set self-reported37.030
- Table-Body DePlot Key-First RMS-F1 (tau=0.10, locale-aware) on PolyChartQA-Blind (EN, N=50)test set self-reported53.380
- Pinned Upstream Google DePlot RMS-F1 (tau=0.10, title-preserving, strict _to_float) on PolyChartQA-Blind (EN, N=50)test set self-reported46.780
- Table-Body DePlot Key-First RMS-F1 (tau=0.10, locale-aware) on PolyChartQA-Blind (FR, N=50)test set self-reported54.900