Skip to content

[New Model] Add Baidu Unlimited-OCR - #29186

Merged
mickqian merged 10 commits into
sgl-project:mainfrom
adityakamat24:unlimited-ocr
Jun 27, 2026
Merged

mickqian merged 10 commits into
sgl-project:mainfrom
adityakamat24:unlimited-ocr

Conversation

@adityakamat24

@adityakamat24 adityakamat24 commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Add support for Baidu Unlimited-OCR. Closes #29115.

Modifications

  • New model, config, and multimodal processor for Unlimited-OCR (vision encoder/projector reuse DeepSeek-OCR, language model reuses DeepSeek MoE).
  • Prefill-aware sliding window attention in the FlashAttention backend: each decode step attends over the protected prefill range plus the recent window via a per-request page table, in both the normal and CUDA-graph decode paths.
  • All-SWA cache path: a pure-SWA radix cache, a single-pool token allocator, and a per-request evict floor that protects the prompt/image tokens, wired through the shared memory and scheduler code that assumed a full-attention pool exists.
  • Registered the config (AutoConfig, no trust_remote_code), processor, and chat template, and added an images_config request field to select the image mode (tiny/small/base/gundam).
  • Added the model to the fused MoE config tuner.

Usage

Launch the server:

python3 -m sglang.launch_server --model-path baidu/Unlimited-OCR --attention-backend fa3 --page-size 1

CUDA graph and the overlap scheduler are on by default and account for the throughput below, so no extra flags are needed (in particular, the overlap scheduler does not need to be disabled).

Example request; images_config selects the image mode (tiny, small, base, gundam):

curl http://localhost:30000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "baidu/Unlimited-OCR",
    "messages": [{"role": "user", "content": [
      {"type": "text", "text": "document parsing."},
      {"type": "image_url", "image_url": {"url": "https://example.com/doc.png"}}
    ]}],
    "images_config": {"image_mode": "base"}
  }'

Accuracy Tests

Evaluated on ParseBench, the benchmark Baidu reports on the model card, served through this implementation and scored with ParseBench's official unlimitedocr provider and offline rule-based metrics (no LLM judge). The port reproduces the published leaderboard scores on a single H100:

Dimension Documents This PR Published
Content Faithfulness (text_content) 506 85.59 86.81
Tables (table) 503 70.91 70.21

All 1009 documents completed with no failures (text_content 506/506, table 503/503). The numbers are the ParseBench leaderboard dimensions - text_content rule pass rate and table GriTS composite. Decoding follows the model's reference recipe: greedy with the model's DeepseekOCRNoRepeatNGramLogitProcessor (ngram 35, window 128) and gundam image mode, with the overlap scheduler on.

The optimizations do not change output: transcriptions are byte-for-byte identical with the CUDA graph on and off, the overlap scheduler on and off, across all four image modes, and for long inputs (3000+ token prompt, 2000+ token output spanning many sliding-window eviction cycles).

Reproduce - ParseBench's unlimitedocr provider posts {"image_base64"} and reads {"markdown"}, so a small adapter forwards the image to /v1/chat/completions and returns the response with the decoding above:

python3 -m sglang.launch_server --model-path baidu/Unlimited-OCR --served-model-name Unlimited-OCR \
  --attention-backend fa3 --page-size 1 --enable-custom-logit-processor --context-length 32768

export UNLIMITEDOCR_SERVER_URL=<adapter>
export LLAMACLOUD_BENCH_LLM_NORMALIZATION=off
uv run parse-bench run unlimitedocr --group text_content
uv run parse-bench run unlimitedocr --group table
Run logs, full metric reports, and per-document scores (all 1009 documents)

Run summary:

text_content: 506/506 succeeded, 0 failed; avg_rule_pass_rate 0.8559; Pipeline Complete!
table:        503/503 succeeded, 0 failed; grits_trm_composite 0.7091; Pipeline Complete!

text_content aggregate metrics (full _evaluation_report.md):

Metric Value
Content Faithfulness 0.6735
Normalized Order 0.7784
Normalized Text Correctness 0.6251
Normalized Text Score 0.6978
Rule Bag Of Digit Percent Pass Rate 0.9973
Rule Is Footer Pass Rate 0.0000
Rule Is Header Pass Rate 0.0000
Rule Missing Sentence Percent Pass Rate 0.6747
Rule Missing Specific Sentence Pass Rate 0.6733
Rule Missing Specific Word Pass Rate 0.9271
Rule Missing Word Percent Pass Rate 0.9346
Rule Order Pass Rate 0.7784
Rule Pass Rate 0.8559
Rule Too Many Sentence Occurence Percent Pass Rate 0.4452
Rule Too Many Word Occurence Percent Pass Rate 0.3653
Rule Unexpected Sentence Percent Pass Rate 0.2957
Rule Unexpected Word Percent Pass Rate 0.6788

table aggregate metrics (full _evaluation_report.md):

Metric Value
GriTS Con (All) 0.8557
GriTS Con (Among Predicted Tables) 0.8643
Grits Trm Composite 0.7091
Structural Consistency 0.9005
Table Record Match 0.5314
Table Record Match Perfect 0.3137
Tables Actual 2.1205
Tables Expected 1.7771
Tables Paired 1.6928
Tables Unmatched Expected 0.0843
Tables Unmatched Pred 0.4639
Tables Unparseable Pred 0.0000

Per-document scores - text_content (506 documents; columns: example_id, rule_pass_rate, content_faithfulness):

example_id	rule_pass_rate	content_faithfulness
text/text_dense__de	0.9627	0.7200
text/text_dense__japanese	0.0732	0.3041
text/text_dense__leaflet	0.9105	0.7066
text/text_dense__navarra	0.9491	0.6664
text/text_dense__cn_article	0.8213	0.6485
text/text_dense__legalRef	0.9707	0.6892
text/text_dense__underline	0.8063	0.6401
text/text_handwritting__address	0.7270	0.6162
text/text_handwritting__contract	0.6673	0.4032
text/text_dense__baoutou	0.8583	0.5961
text/text_handwritting__decla	0.4460	0.3487
text/text_handwritting__degraded	0.8426	0.6207
text/text_handwritting__handwritting	0.1275	0.2952
text/text_dense__livingWord	0.7949	0.5551
text/text_handwritting__filling	0.0378	0.2403
text/text_handwritting__impossible	0.1126	0.2464
text/text_handwritting__list	0.7717	0.5428
text/text_handwritting__math	0.4370	0.3402
text/text_handwritting__math2	0.2308	0.2222
text/text_handwritting__signatures	0.6934	0.4659
text/text_handwritting__manualunderline	0.8191	0.6007
text/text_handwritting__jp	0.0437	0.2853
text/text_misc__012-headline-certificate-fluidpower-group-uk-limited	0.8893	0.6109
text/text_misc__anthropicFirstPage	0.8492	0.7595
text/text_dense__topofthenews	0.8708	0.6916
text/text_misc__6slides	0.9853	0.6945
text/text_misc__censored	0.5833	0.4598
text/text_misc__colorprofile	0.6669	0.5165
text/text_dense__tableofcontent	0.8931	0.6966
text/text_misc__boxedtext	0.9503	0.7503
text/text_misc__dash	0.7569	0.4797
text/text_misc__doubleslides	0.9063	0.7322
text/text_misc__docusigned	0.8744	0.6194
text/text_misc__edit2	0.8354	0.6493
text/text_misc__edit	0.9106	0.7134
text/text_misc__gridofimages	0.0191	0.4286
text/text_misc__interface	0.4735	0.5711
text/text_misc__json	0.9420	0.7772
text/text_misc__justcode	0.6675	0.7161
text/text_misc__lightblue	0.9012	0.6190
text/text_dense__paper_cn_trad	0.7969	0.6996
text/text_misc__crash	0.9047	0.5427
text/text_misc__mark2	0.7430	0.6690
text/text_misc__missing	0.8694	0.6189
text/text_misc__atlantic	0.7968	0.5536
text/text_misc__ikea3	0.8358	0.6584
text/text_misc__notATable	0.6496	0.3329
text/text_misc__mangle	0.8870	0.6714
text/text_misc__redacted3	0.8382	0.6149
text/text_misc__2pages	0.9578	0.7438
text/text_dense__canara	0.9017	0.6760
text/text_misc__redacted	0.8261	0.4735
text/text_misc__yellow	0.9272	0.6720
text/text_misc__overlapping	0.4299	0.4546
text/text_misc__templated	0.9871	0.7956
text/text_misc__stepbystep	0.9347	0.6806
text/text_misc__skew3	0.9489	0.7534
text/text_multicolumns__2col	0.0121	0.1944
text/text_multicolumns__1815	0.8947	0.5974
text/text_multicolumns__2col_fund_summary	0.9839	0.8041
text/text_multicolumns__2col_paper	0.9806	0.8033
text/text_multicolumns__10k2col	0.9577	0.7870
text/text_multicolumns__2col_simple	0.9791	0.7798
text/text_misc__marks	0.8616	0.6368
text/text_multicolumns__2cc	0.9095	0.6361
text/text_multicolumns__2col_repport	0.9801	0.7690
text/text_multicolumns__2colanthropic	0.9796	0.7935
text/text_multicolumns__2colbold2	0.9806	0.7901
text/text_multicolumns__2colbolds	0.9581	0.7215
text/text_multicolumns__2colmercedes	0.9822	0.7965
text/text_multicolumns__14999	0.9030	0.7063
text/text_multicolumns__2pages	0.9200	0.6226
text/text_multicolumns__2colspace	0.9607	0.7791
text/text_multicolumns__2colrep	0.9817	0.7986
text/text_multicolumns__2colfr	0.9278	0.6887
text/text_multicolumns__2colword	0.9735	0.7861
text/text_multicolumns__2colpa	0.8905	0.6823
text/text_multicolumns__3col	0.9808	0.8130
text/text_multicolumns__3colchinese	0.8038	0.6115
text/text_multicolumns__3colP	0.8834	0.7210
text/text_multicolumns__3col_statment	0.9372	0.6584
text/text_multicolumns__3colceo	0.9720	0.7860
text/text_multicolumns__3cf	0.9022	0.7632
text/text_dense__legalnotices	0.8831	0.6083
text/text_multicolumns__3colpres	0.9493	0.7228
text/text_multicolumns__3colrules	0.9512	0.7386
text/text_multicolumns__3cols	0.9427	0.7105
text/text_multicolumns__3colsbeluga	0.9665	0.7858
text/text_multicolumns__4colimg	0.9855	0.8176
text/text_multicolumns__3colsep	0.9769	0.7650
text/text_multicolumns__4c	0.8701	0.3605
text/text_multicolumns__3cools	0.9280	0.6908
text/text_multicolumns__WEBSITE-LASH-LIFT-CONTRAINDICATIONS	0.9837	0.7442
text/text_multicolumns__ads	0.9381	0.7559
text/text_multicolumns__anual_2col	0.9759	0.8108
text/text_multicolumns__2x	0.9359	0.7580
text/text_multicolumns__battery	0.9649	0.7607
text/text_misc__reverRo	0.5104	0.4487
text/text_multicolumns__98-31231	0.9303	0.6814
text/text_multicolumns__article	0.9525	0.7842
text/text_multicolumns__bulettin	0.8753	0.5317
text/text_multicolumns__board_2col	0.9164	0.7102
text/text_multicolumns__analysis	0.9454	0.6921
text/text_multicolumns__blackrock_2col	0.9639	0.7553
text/text_multicolumns__definitions	0.9779	0.7442
text/text_multicolumns__coorp	0.9705	0.7248
text/text_multicolumns__document_001	0.9632	0.7472
text/text_multicolumns__dafta	0.7703	0.6489
text/text_multicolumns__drill	0.9811	0.7525
text/text_multicolumns__dnapaper	0.9404	0.7075
text/text_multicolumns__3collist	0.9617	0.7038
text/text_multicolumns__esg_whitespace	0.9787	0.7822
text/text_multicolumns__delays	0.9514	0.7851
text/text_multicolumns__esd_end	0.8890	0.6870
text/text_multicolumns__encar	0.9322	0.7633
text/text_multicolumns__ethbottens	0.9745	0.8027
text/text_multicolumns__elpais	0.8297	0.6125
text/text_multicolumns__ethic	0.9495	0.7484
text/text_multicolumns__fund2col	0.9719	0.8109
text/text_multicolumns__forword2cols	0.9735	0.7824
text/text_multicolumns__glossary	0.9779	0.7596
text/text_multicolumns__japanesefrench	0.9282	0.7359
text/text_multicolumns__heirloom	0.9617	0.7212
text/text_multicolumns__hydro	0.7953	0.5583
text/text_multicolumns__gridofnumbers	0.8936	0.3460
text/text_multicolumns__energy2	0.9622	0.7317
text/text_multicolumns__long2cols	0.9676	0.7630
text/text_multicolumns__energy	0.9037	0.7304
text/text_multicolumns__mckinsey	0.9758	0.7534
text/text_multicolumns__lotofcol	0.9814	0.7455
text/text_multicolumns__law2col	0.9107	0.6476
text/text_multicolumns__greek	0.8953	0.5836
text/text_multicolumns__ogire3col	0.9825	0.7693
text/text_multicolumns__maori	0.9773	0.8149
text/text_multicolumns__pwc	0.5792	0.3735
text/text_multicolumns__pap_2col	0.9140	0.6755
text/text_multicolumns__l	0.9407	0.6722
text/text_multicolumns__nurse	0.9462	0.7265
text/text_multicolumns__simple2	0.9883	0.8102
text/text_multicolumns__newspage	0.9727	0.7157
text/text_multicolumns__paper2	0.8892	0.7356
text/text_multicolumns__paperchem	0.8403	0.5921
text/text_multicolumns__tableOfContent8col	0.1604	0.3021
text/text_multicolumns__radioprogram	0.9490	0.6341
text/text_multicolumns__sbi	0.9551	0.7297
text/text_multicolumns__sustainability	0.9645	0.7844
text/text_multicolumns__simple2col2	0.9746	0.8039
text/text_multicolumns__vidsa2	0.9816	0.7854
text/text_multicolumns__ssrn-3007048	0.9579	0.7585
text/text_multicolumns__visa	0.9515	0.7216
text/text_multicolumns__simple2col	0.9668	0.7871
text/text_multicolumns__tableinmiddle2cols	0.9738	0.7661
text/text_multicolumns__waterfal	0.9756	0.7631
text/text_multicolumns__wef	0.9546	0.7292
text/text_multilang__cnnm	0.3943	0.4385
text/text_multilang__chinese2	0.7670	0.4921
text/text_multilang__dutch	0.8670	0.7049
text/text_multilang__chinese3	0.8292	0.5871
text/text_multilang__farsi	0.6911	0.4211
text/text_multilang__arabic	0.7613	0.3693
text/text_multicolumns__weeds	0.9807	0.8033
text/text_multicolumns__zh	0.7855	0.5917
text/text_multilang__german2	0.8844	0.6752
text/text_multilang__bengali	0.2913	0.3656
text/text_multilang__greek	0.9761	0.7905
text/text_multilang__enfr	0.9725	0.7539
text/text_multilang__german	0.9768	0.7850
text/text_multilang__hausa	0.8183	0.6482
text/text_multilang__hebrew	0.0257	0.2821
text/text_multilang__french2	0.9488	0.7856
text/text_multilang__discrimination	0.7163	0.6173
text/text_multilang__gujarati	0.0078	0.2222
text/text_multilang__japanese4	0.8965	0.7197
text/text_multilang__japanese2	0.8801	0.7110
text/text_multilang__japanese	0.7650	0.6152
text/text_multilang__japanese3	0.8910	0.6731
text/text_multilang__japan2	0.6466	0.4373
text/text_multilang__korean2	0.8639	0.6833
text/text_multilang__hindi	0.7499	0.6461
text/text_multilang__kannada	0.2206	0.3244
text/text_multilang__mandarin3	0.7903	0.5128
text/text_multilang__malayalam	0.0257	0.2846
text/text_multilang__mandarin4	0.8881	0.7091
text/text_multilang__punjabi	0.1420	0.2884
text/text_multilang__khazak	0.7015	0.5443
text/text_multilang__marathi	0.5876	0.6176
text/text_multilang__russian3	0.8568	0.6545
text/text_multilang__oromo	0.9110	0.7145
text/text_multilang__russian2	0.8877	0.6456
text/text_multicolumns__bluecol	0.8615	0.8077
text/text_multilang__russian	0.9484	0.7142
text/text_multilang__suomen	0.8852	0.7086
text/text_multilang__spanish2	0.9533	0.7259
text/text_multilang__japanese5	0.0423	0.2606
text/text_multilang__romanian	0.7386	0.6294
text/text_multilang__tegulu	0.2809	0.3014
text/text_multilang__spanish	0.8598	0.6538
text/text_multilang__thailayout	0.2708	0.4442
text/text_multilang__unknonw	0.0920	0.3857
text/text_multilang__khmer	0.0207	0.2823
text/text_multilang__turkish2	0.8718	0.6959
text/text_ocr__1182_Xerox Scan003	0.8060	0.5450
text/text_ocr__162774-266456-358050-153368146-663163649	0.7842	0.6197
text/text_ocr__3rd	0.7922	0.6094
text/text_ocr__069	0.9007	0.7197
text/text_ocr__ blockoftext	0.9736	0.7921
text/text_ocr__9	0.9327	0.6761
text/text_ocr__File0021	0.8453	0.5090
text/text_ocr__Declination-to-Proceed-Before-a-U.S.-Magistrate-Judge	0.7012	0.4627
text/text_ocr__012-25	0.5413	0.5497
text/text_ocr__MS201File81	0.8237	0.5934
text/text_ocr__File_002-Lembar-Pernyataan-Keaslian-Tugas-Akhir	0.8568	0.7098
text/text_multilang__tamil	0.0421	0.2817
text/text_ocr__RdZJGPSwfucvMonBwC15855594373897	0.8478	0.6378
text/text_ocr__admnh	0.9819	0.7913
text/text_ocr__Just-Security-Carroll-v-Trump-Memo-endorsement-of-Carroll-reponse-accepting-Trump-motion-approve-supersedeas-bond-91630000-stay-execution-judgment-pending-appeal-March-11-2024	0.8645	0.5739
text/text_ocr__abstract	0.9641	0.8205
text/text_ocr__adm	0.9741	0.7549
text/text_multilang__turkish	0.9129	0.7371
text/text_multilang__ukrainian	0.9570	0.7199
text/text_ocr__bg	0.9318	0.7225
text/text_ocr__archive	0.6813	0.4928
text/text_ocr__blurry2	0.5049	0.3736
text/text_ocr__blurry	0.8411	0.6409
text/text_ocr__article1col	0.9551	0.8281
text/text_ocr__arabic	0.5809	0.3770
text/text_ocr__attendence	0.8148	0.5698
text/text_ocr__cert_of_assistanvce	0.6848	0.4763
text/text_ocr__code	0.6554	0.7331
text/text_ocr__article	0.9471	0.6912
text/text_ocr__bolditalix	0.8755	0.7060
text/text_ocr__christmass	0.9801	0.7631
text/text_ocr__clearmont	0.9490	0.7296
text/text_ocr__bold	0.9309	0.6238
text/text_ocr__canada	0.9105	0.6464
text/text_ocr__courtSignature	0.9030	0.6717
text/text_ocr__cyber	0.9002	0.7654
text/text_ocr__data	0.9283	0.7186
text/text_ocr__contract	0.9602	0.6060
text/text_ocr__contrast	0.8787	0.7868
text/text_ocr__cramer	0.7041	0.4293
text/text_ocr__convenzione	0.8715	0.7067
text/text_ocr__diseeas	0.9709	0.7842
text/text_ocr__document-001	0.9101	0.6489
text/text_ocr__doubletext	0.8435	0.6780
text/text_ocr__diesel	0.9386	0.7209
text/text_ocr__email	0.9561	0.7393
text/text_ocr__eller	0.9109	0.7092
text/text_ocr__dhaka	0.2650	0.3340
text/text_ocr__2pages	0.8736	0.6383
text/text_ocr__das	0.9285	0.7348
text/text_ocr__energy	0.9554	0.7615
text/text_ocr__glitch2	0.8380	0.7554
text/text_ocr__eu	0.9861	0.8061
text/text_ocr__fpl	0.8943	0.7358
text/text_ocr__ens	0.8410	0.6231
text/text_ocr__glitch	0.7897	0.6335
text/text_ocr__guyana	0.9532	0.7198
text/text_ocr__inr	0.9803	0.7601
text/text_ocr__german	0.9093	0.6994
text/text_ocr__kr	0.9412	0.7096
text/text_ocr__italian2	0.9383	0.8051
text/text_ocr__italian	0.8208	0.6000
text/text_ocr__letter	0.8494	0.6527
text/text_ocr__letter2	0.9639	0.7825
text/text_ocr__letterhead	0.9480	0.7646
text/text_ocr__mariage	0.7740	0.5627
text/text_ocr__mix	0.7542	0.6150
text/text_ocr__ger	0.9066	0.7369
text/text_ocr__klein	0.9506	0.7562
text/text_ocr__mutlilang	0.8826	0.6727
text/text_ocr__orientedtex	0.7635	0.5425
text/text_ocr__ord-4000	0.9175	0.6751
text/text_ocr__nato	0.8496	0.7373
text/text_ocr__newspaperonecol	0.9622	0.7509
text/text_ocr__link	0.8977	0.6649
text/text_ocr__paperpenline	0.9277	0.7604
text/text_ocr__plow	0.9553	0.7819
text/text_ocr__p4013	0.9398	0.6733
text/text_ocr__parent	0.9871	0.8122
text/text_ocr__ikea	0.9520	0.7236
text/text_ocr__pol	0.8037	0.7154
text/text_ocr__mag	0.9180	0.6145
text/text_ocr__phd	0.6943	0.5991
text/text_ocr__plowlist	0.8757	0.4755
text/text_ocr__pretest	0.9295	0.7774
text/text_ocr__redacted	0.9666	0.7706
text/text_ocr__postit	0.8362	0.5745
text/text_ocr__polishlike	0.9214	0.7524
text/text_ocr__redacted2	0.8731	0.6468
text/text_ocr__roosvelt	0.9595	0.7611
text/text_ocr__routier	0.7885	0.6395
text/text_ocr__ref	0.8995	0.7537
text/text_ocr__rep	0.8741	0.6481
text/text_ocr__russina2	0.9173	0.7754
text/text_ocr__scaninfile	0.7005	0.6017
text/text_ocr__sharon	0.8096	0.6064
text/text_ocr__santacruz	0.8711	0.3838
text/text_ocr__protest	0.9491	0.7751
text/text_ocr__sigpae	0.7448	0.4492
text/text_ocr__simpleletter	0.8734	0.7120
text/text_ocr__skew	0.8242	0.6647
text/text_ocr__polish	0.9442	0.7830
text/text_ocr__skewGazette	0.9653	0.7334
text/text_ocr__simple	0.9489	0.7692
text/text_ocr__lowq	0.5440	0.3901
text/text_ocr__skewmac	0.9022	0.6172
text/text_ocr__secretaria	0.9400	0.7353
text/text_ocr__strikeout	0.9052	0.7421
text/text_ocr__sup	0.8196	0.5019
text/text_ocr__skewc	0.9355	0.7278
text/text_ocr__scanbook	0.9101	0.6872
text/text_ocr__tridimensional	0.9581	0.7856
text/text_ocr__underline	0.9214	0.7708
text/text_ocr__ups	0.8085	0.5579
text/text_ocr__wnd	0.1516	0.3170
text/text_ocr__tata	0.8500	0.6905
text/text_ocr__skew2	0.9178	0.7400
text/text_ocr__yellowtype	0.8803	0.7246
text/text_ocr__wooby	0.9614	0.6405
text/text_simple__1colmit	0.9874	0.8183
text/text_simple__1col	0.9895	0.8351
text/text_simple__10victoria	0.9746	0.7949
text/text_simple__1colmit.test	0.9124	0.6804
text/text_simple__10k2	0.9628	0.8011
text/text_simple__10k	0.9650	0.7933
text/text_simple__1pa	0.9885	0.7704
text/text_simple__addnum	0.9048	0.5467
text/text_simple__adhoc	0.9506	0.7516
text/text_simple__Earth-Day-Document-003	0.9539	0.7582
text/text_ocr__skew3	0.9065	0.6603
text/text_simple__Preview	0.9802	0.7969
text/text_simple__agenda2	0.9723	0.7653
text/text_simple__adminplan	0.9786	0.7985
text/text_simple__agent	0.9677	0.7637
text/text_simple__agenda	0.9616	0.7993
text/text_simple__4g	0.9769	0.8011
text/text_simple__aitools	0.9493	0.7448
text/text_simple__2025-11-05-S-P-Global-Report-Charts-Enterprise-Race-to-Build-AI-Agent-Ready-Infrastructure	0.9406	0.7469
text/text_simple__allcaps	0.9814	0.7859
text/text_simple__append	0.9154	0.6955
text/text_simple__ascii	0.9271	0.6443
text/text_simple__bamboo	0.9316	0.7167
text/text_simple__bill	0.8953	0.6924
text/text_simple__baoutocert	0.9082	0.6801
text/text_simple__agreement	0.9644	0.7464
text/text_simple__boat	0.9497	0.7208
text/text_simple__blankimageinmiddle	0.9829	0.8197
text/text_simple__appendix	0.9739	0.8101
text/text_simple__boldwords	0.9683	0.8756
text/text_simple__bold	0.9756	0.7832
text/text_simple__boldanditalic	0.9422	0.7755
text/text_simple__bottens	0.9740	0.7578
text/text_simple__bluebold	0.9833	0.8341
text/text_simple__bsalsa	0.8983	0.6726
text/text_simple__cardif	0.9294	0.7340
text/text_simple__att10k	0.8916	0.4793
text/text_simple__censored	0.5772	0.4933
text/text_simple__budget	0.9663	0.7721
text/text_simple__cap	0.9777	0.7941
text/text_simple__checkbox	0.9706	0.6750
text/text_simple__chrissmass	0.9880	0.7910
text/text_simple__concession	0.9291	0.5745
text/text_simple__cmn	0.9638	0.7920
text/text_simple__climbing	0.9781	0.7622
text/text_simple__caldera	0.4030	0.4062
text/text_simple__clilogs	0.9599	0.7199
text/text_simple__contract2	0.9869	0.8225
text/text_simple__color	0.9585	0.7695
text/text_simple__dhcs	0.9588	0.7809
text/text_simple__deploying	0.9728	0.7642
text/text_simple__disclaimer	0.9851	0.8042
text/text_simple__eastbaytimes	0.9825	0.8006
text/text_simple__contract	0.9571	0.7485
text/text_simple__eir	0.9278	0.7097
text/text_simple__dividend	0.9599	0.7731
text/text_simple__delinea	0.9530	0.7337
text/text_simple__data	0.9580	0.7175
text/text_simple__edited	0.9734	0.7940
text/text_simple__fillin	0.7303	0.4572
text/text_simple__financialReturnCover	0.8931	0.7659
text/text_simple__edits	0.8882	0.5941
text/text_simple__euexplain	0.9251	0.7355
text/text_simple__eu	0.9768	0.8064
text/text_simple__grayson	0.9349	0.6494
text/text_simple__fin	0.9482	0.7964
text/text_simple__gando	0.9825	0.7812
text/text_simple__genius	0.8584	0.5247
text/text_simple__hex	0.9497	0.8009
text/text_simple__iehp	0.9505	0.7636
text/text_simple__hca	0.9564	0.7690
text/text_simple__finra	0.9744	0.8041
text/text_simple__guidelines	0.9863	0.8094
text/text_simple__italicsummary	0.9616	0.8075
text/text_simple__intro	0.9599	0.7447
text/text_simple__instruct	0.9697	0.7491
text/text_simple__lab	0.9391	0.7769
text/text_simple__landscape	0.9782	0.7803
text/text_simple__green	0.8886	0.4799
text/text_simple__k10	0.9844	0.8089
text/text_simple__linespacing	0.9704	0.7957
text/text_simple__letter3	0.9453	0.7448
text/text_simple__landfill	0.9214	0.7086
text/text_simple__links	0.9039	0.7702
text/text_simple__linenum	0.8579	0.6919
text/text_simple__list	0.9637	0.7468
text/text_simple__marked	0.9520	0.7967
text/text_simple__listwarnings	0.9803	0.7667
text/text_simple__lisr2	0.9752	0.7388
text/text_simple__medien	0.9730	0.7925
text/text_simple__mission	0.9627	0.7914
text/text_simple__marknotTable	0.9661	0.7149
text/text_simple__minutes	0.9456	0.7668
text/text_simple__meripilus	0.9174	0.7649
text/text_simple__minutes2	0.9868	0.7968
text/text_simple__municipalidades	0.9809	0.7808
text/text_simple__motivational	0.9598	0.7499
text/text_simple__noa	0.9621	0.7576
text/text_simple__myctophidae	0.9001	0.7540
text/text_simple__numberedline	0.8639	0.6661
text/text_simple__notes	0.9535	0.7533
text/text_simple__mvab	0.9872	0.7481
text/text_simple__opcw	0.9752	0.7917
text/text_simple__order	0.9613	0.7609
text/text_simple__otago	0.9513	0.7650
text/text_simple__offering	0.9665	0.7549
text/text_simple__norman	0.8629	0.4977
text/text_simple__name_list	0.6803	0.6354
text/text_simple__oxygen	0.9793	0.8355
text/text_simple__paper	0.8997	0.6891
text/text_simple__partial	0.9320	0.7372
text/text_simple__endnote	0.9267	0.8120
text/text_simple__protoskol	0.9017	0.6841
text/text_simple__predictive	0.9212	0.7608
text/text_simple__program	0.9758	0.7519
text/text_simple__paper1page	0.9673	0.8202
text/text_simple__q37	0.9505	0.7628
text/text_simple__parish	0.9891	0.8487
text/text_simple__quoteblock	0.9664	0.7963
text/text_simple__recommend	0.9758	0.7527
text/text_simple__qmarks	0.9506	0.7656
text/text_simple__redirect	0.8721	0.6965
text/text_simple__redacted	0.9071	0.6137
text/text_simple__redlined	0.9633	0.7737
text/text_simple__redactedocean	0.9832	0.8266
text/text_simple__pest	0.9832	0.8270
text/text_simple__refpage	0.8916	0.6644
text/text_simple__repport	0.9772	0.7613
text/text_simple__registration	0.9734	0.7755
text/text_simple__reso	0.9802	0.7691
text/text_simple__results	0.8627	0.6363
text/text_simple__resolution	0.9787	0.7651
text/text_simple__revision	0.9205	0.7383
text/text_simple__references	0.9097	0.7854
text/text_simple__s302664	0.9270	0.6324
text/text_simple__returns	0.8092	0.3839
text/text_simple__slide	0.8331	0.7283
text/text_simple__res	0.9267	0.6149
text/text_simple__slide2	0.9509	0.7465
text/text_simple__smithville	0.8684	0.6953
text/text_simple__security	0.9645	0.7354
text/text_simple__spaceing	0.9360	0.7217
text/text_simple__solvay	0.9312	0.6472
text/text_simple__spd	0.9550	0.6981
text/text_simple__refs	0.9677	0.8192
text/text_simple__state	0.9718	0.8071
text/text_simple__statment	0.9347	0.7485
text/text_simple__staffrepport	0.9765	0.7900
text/text_simple__securities	0.9816	0.7985
text/text_simple__strikeout	0.9789	0.7787
text/text_simple__sub	0.9380	0.7780
text/text_simple__sunnyslope	0.9696	0.7312
text/text_simple__tagblatt	0.9684	0.7958
text/text_simple__strikeUnderline	0.6014	0.4810
text/text_simple__temporal	0.9162	0.7646
text/text_simple__unusual	0.9594	0.7775
text/text_simple__share	0.9516	0.7992
text/text_simple__underlinbackground	0.9568	0.7766
text/text_simple__textinsquare	0.9713	0.8180
text/text_simple__underlineLaw	0.9806	0.7986
text/text_simple__wclb	0.8885	0.7210
text/text_simple__templated	0.9361	0.6807
text/text_simple__whiteonyellow	0.9475	0.6835
text/text_simple__wired	0.9840	0.8323
text/text_simple__waterhill	0.9842	0.7450
text/text_simple__wildlife	0.9709	0.7684
text/text_sparse__agenda	0.5990	0.4653
text/text_sparse__answer	0.4391	0.4532
text/text_sparse__blank	0.6465	0.5197
text/text_sparse__conductivity	0.7106	0.5001
text/text_sparse__cover	0.6854	0.4325
text/text_sparse__cover2	0.5509	0.2855
text/text_sparse__dinner	0.9483	0.6979
text/text_sparse__guide	0.5616	0.4892
text/text_sparse__ikea	0.5344	0.4701
text/text_sparse__mcdo	0.7718	0.3740
text/text_simple__wordDefaultTheme	0.9635	0.7161
text/text_sparse__notes	0.7917	0.7222
text/text_sparse__note	0.4924	0.4881
text/text_simple__wordcensor	0.9636	0.7462
text/text_simple__webprint	0.9774	0.8174
text/text_sparse__numbers	0.6498	0.4986
text/text_simple__wordForwords	0.9692	0.7768
text/text_simple__yell	0.9396	0.7336
text/text_ocr__zaposlitve	0.7494	0.5459
text/text_ocr__paper8col	0.2361	0.3777

Per-document scores - table (503 documents; columns: example_id, grits_trm_composite, table_record_match):

example_id	grits_trm_composite	table_record_match
table/1 timetable (1)_page27	0.3669	0.0000
table/1634690602_page1	0.7722	0.6667
table/1634690602_page10	0.8305	0.6667
table/1634690602_page2	0.8865	0.7778
table/1634690602_page4	0.8296	0.6667
table/1634690602_page5	0.8318	0.6667
table/1634690602_page6	0.7865	0.5833
table/1634690602_page7	0.6283	0.4444
table/1634690602_page8	0.5557	0.3333
table/1634690602_page9	0.8729	0.7500
table/13_axa_world_funds_page59	0.7929	0.5857
table/1653739079_page2	1.0000	1.0000
table/1212.1661v1_page7	0.9009	0.8125
table/1653739079_page37	0.5463	0.0926
table/1653739079_page36	0.5917	0.1833
table/15_blackrock_strategic_funds_page29	0.7896	0.6468
table/1653739079_page34	0.4917	0.3062
table/1653739079_page41	1.0000	1.0000
table/1653739079_page40	0.5311	0.0622
table/1657221585_page14	0.9659	0.9333
table/1657221585_page26	0.9437	0.8889
table/1657221585_page19	0.9256	0.8542
table/1657221585_page62	0.9054	0.8125
table/1657221585_page6	1.0000	1.0000
table/1H-2025-Global-Catastrophe-Recap_page7	1.0000	1.0000
table/1653739079_page39	0.5774	0.1549
table/1657221585_page40	0.9189	0.8393
table/2023.02.07 Walmart Settlement Agreement_page27	1.0000	1.0000
table/2023-conocophillips-aim-presentation (1)_page7	0.7787	0.7429
table/20230125-weather-climate-catastrophe-insight_page9	1.0000	1.0000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page10	0.7760	0.7333
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page11	0.9973	0.7000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page12	0.3272	0.0000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page13	0.9898	0.7333
table/2023.02.07 Walmart Settlement Agreement_page300	1.0000	1.0000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page14	0.8430	0.7000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page21	0.9912	0.7600
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page22	0.9888	0.6500
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page23	0.9968	0.8000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page24	0.9953	0.8333
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page25	0.9948	0.8000
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page26	0.9035	0.5667
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page27	0.9262	0.7667
table/203924_fb04e77929bf4bbc93dbd659653a4f01_page28	0.9899	0.7714
table/222876fb_page2	1.0000	1.0000
table/222876fb_page22	0.8264	0.7500
table/222876fb_page21	0.6576	0.3333
table/222876fb_page28	0.9952	0.9905
table/0000027_page1	0.7028	0.5397
table/1 timetable (1)_page6	0.4699	0.0000
table/245804406-CV-Nevers-signé-EX_page10	1.0000	1.0000
table/222876fb_page5	0.3989	0.0523
table/222876fb_page3	0.4978	0.1775
table/1 timetable (1)_page7	0.4487	0.0000
table/222876fb_page4	0.5333	0.2722
table/AMZN.2005.page_32.pdf_61783_page1	0.4039	0.0429
table/AONR32314_page1	0.5471	0.3333
table/1 timetable (1)_page2	0.4713	0.0000
table/AZ LIC Rate Tables 2.0.v2_page100	0.5833	0.5000
table/AZ LIC Rate Tables 2.0.v2_page101	0.4667	0.0000
table/AZ LIC Rate Tables 2.0.v2_page103	1.0000	1.0000
table/AZ LIC Rate Tables 2.0.v2_page105	0.5278	0.0556
table/AZ LIC Rate Tables 2.0.v2_page47	0.4707	0.0000
table/AZ LIC Rate Tables 2.0.v2_page48	0.4865	0.0000
table/AZ LIC Rate Tables 2.0.v2_page57	1.0000	1.0000
table/7b9c8208-d2be-2a81-8a15-215a9a5a26e8_page1	0.2137	0.0533
table/AZ LIC Rate Tables 2.0.v2_page60	0.5876	0.2500
table/AZ LIC Rate Tables 2.0.v2_page78	0.4545	0.0000
table/AZ LIC Rate Tables 2.0.v2_page80	1.0000	1.0000
table/AZ LIC Rate Tables 2.0.v2_page89	0.7333	0.6667
table/AZ LIC Rate Tables 2.0.v2_page90	1.0000	1.0000
table/AZ LIC Rate Tables 2.0.v2_page93	1.0000	1.0000
table/AZ LIC Rate Tables 2.0.v2_page62	1.0000	1.0000
table/Apple 10-k_page1	1.0000	1.0000
table/AONR32314_page2	0.9090	0.7245
table/Apple 10-k_page23	0.9643	1.0000
table/Apple 10-k_page25	1.0000	1.0000
table/Apple 10-k_page22	1.0000	1.0000
table/Apple 10-k_page28	1.0000	1.0000
table/245804406-CV-Nevers-signé-EX_page60	0.3810	0.2132
table/Apple 10-k_page26	1.0000	1.0000
table/Apple 10-k_page30	1.0000	1.0000
table/Apple 10-k_page27	0.9115	0.9062
table/Apple 10-k_page43	0.9444	0.9423
table/Apple 10-k_page3	0.2432	0.0000
table/Apple 10-k_page45	0.9284	0.9250
table/Apple 10-k_page51	0.2799	0.2273
table/Apple 10-k_page76	1.0000	1.0000
table/BRWS-134565917_page1002	0.4272	0.0317
table/20250401_Axos_Bank_SFR_Correspondent_Rate_Sheet_page1	0.7204	0.4202
table/BRWS-134565917_page1017	0.8076	0.7000
table/Apple 10-k_page57	0.7985	0.6136
table/BRWS-134565917_page1100	1.0000	1.0000
table/BRWS-134565917_page1028	0.9111	0.9091
table/BRWS-134565917_page1103	0.6157	0.3929
table/BRWS-134565917_page1110	0.5957	0.5106
table/Apple 10-k_page50	0.6893	0.4464
table/BRWS-134565917_page1112	0.4926	0.0000
table/Apple 10-k_page59	0.6165	0.2500
table/1948bb0c-01f1-aa67-a1bd-4d54323f4f0d_page2	0.5300	0.2574
table/BRWS-134565917_page1113	0.5235	0.1298
table/BRWS-134565917_page1240	0.6541	0.5682
table/BRWS-134565917_page1419	0.5508	0.4936
table/BRWS-134565917_page1087	0.6615	0.3377
table/BRWS-134565917_page6	0.7390	0.6386
table/BRWS-134565917_page1210	0.4383	0.3909
table/BRWS-134565917_page1121	0.1967	0.0348
table/BRWS-134565917_page1420	0.6231	0.5271
table/BRWS-134565917_page1171	0.8156	0.6619
table/BRWS-134565917_page837	0.8313	0.7333
table/BRWS-134565917_page838	0.9642	0.9313
table/BRWS-134565917_page836	0.5408	0.2748
table/7bbe366d-1e09-b2c3-e969-c45940fc5d71_page2	0.0622	0.0000
table/BRWS-134565917_page852	0.9948	0.9900
table/BRWS-134565917_page1123	0.2014	0.2043
table/BRWS-134565917_page874	0.4809	0.0000
table/BRWS-134565917_page875	0.3717	0.0000
table/BRWS-134565917_page851	0.8635	0.7762
table/BRWS-134565917_page835	0.6785	0.4388
table/BRWS-134565917_page953	0.6215	0.4242
table/637951191e7b35ae07dbd4c76a2e6690c370_pg2_pg1_page1	0.1100	0.0000
table/BRWS-134565917_page853	0.4381	0.3909
table/BSC-Hospital-List-by-County (2)_page1	0.9999	1.0000
table/BXP.2008.page_112.pdf_57116_page1	0.7234	0.6984
table/BRWS-134565917_page990	0.9671	0.9669
table/Coca Cola 10-k_page1	1.0000	1.0000
table/Coca Cola 10-k_page107	0.7665	0.5625
table/Coca Cola 10-k_page30	0.6266	0.2540
table/Coca Cola 10-k_page39	1.0000	1.0000
table/BRWS-134565917_page877	0.1757	0.1429
table/Coca Cola 10-k_page49	1.0000	1.0000
table/Coca Cola 10-k_page48	0.4678	0.0875
table/Coca Cola 10-k_page50	0.9909	1.0000
table/Coca Cola 10-k_page51	1.0000	1.0000
table/Cost_Estimating_Guideline (1)_page1	1.0000	1.0000
table/Cost_Estimating_Guideline (1)_page3	0.6683	0.4222
table/Cost_Estimating_Guideline (1)_page6	0.7436	0.5000
table/Coca Cola 10-k_page68	0.8636	0.8618
table/DS5795A-06_page13	1.0000	1.0000
table/DS5795A-06_page15	0.5923	0.1846
table/DS5795A-06_page2	0.9786	0.9583
table/DS5795A-06_page4	0.8781	0.8269
table/DS5795A-06_page5	0.9452	0.9167
table/DS5795A-06_page6	0.7004	0.4286
table/Earnings Presentation (FY26 Q2)_page22	0.0000	0.0000
table/DLR.2004.page_61.pdf_21918_page1	0.9490	1.0000
table/FBLB-134215544_page10	0.8826	0.7778
table/FBLB-134215544_page11	0.9283	0.8571
table/FBLB-134215544_page110	0.6944	0.4848
table/CINF.2006.page_93.pdf_140594_page1	0.9414	0.0040
table/BRWS-134565917_page938	0.8288	0.6759
table/FBLB-134215544_page114	0.4615	0.0000
table/FBLB-134215544_page113	0.8897	0.4585
table/FBLB-134215544_page106	0.4618	0.0189
table/FBLB-134215544_page112	0.4977	0.0000
table/BRWS-134565917_page834	0.7930	0.6614
table/FBLB-134215544_page14	0.4720	0.0000
table/FBLB-134215544_page15	0.9191	0.2947
table/FBLB-134215544_page16	0.3654	0.0000
table/FBLB-134215544_page162	1.0000	0.5824
table/FBLB-134215544_page163	0.6625	0.6250
table/FBLB-134215544_page122	0.4666	0.0000
table/FBLB-134215544_page115	0.6626	0.0896
table/FBLB-134215544_page43	0.5055	0.2000
table/FBLB-134215544_page44	0.4928	0.0000
table/FBLB-134215544_page154	0.4845	0.0000
table/FBLB-134215544_page5	1.0000	1.0000
table/FBLB-134215544_page6	0.7838	0.6515
table/BRWS-134565917_page839	0.6299	0.5021
table/FBLB-134215544_page46	0.6602	0.4026
table/FBLB-134215544_page8	0.7900	0.5833
table/FBLB-134215544_page62	0.7977	0.7036
table/FBLB-134215544_page18	0.6918	0.1237
table/BRWS-134565917_page987	0.9831	0.9825
table/FBLB-134215544_page99	0.6625	0.6250
table/Goldman Sachs 10-k_page1	0.9371	0.8750
table/FBLB-134215544_page147	0.4462	0.0000
table/Goldman Sachs 10-k_page106	0.4688	0.0684
table/Goldman Sachs 10-k_page113	0.4854	0.1417
table/FBLB-134215544_page88	0.4451	0.0000
table/Goldman Sachs 10-k_page107	0.7096	0.5522
table/Goldman Sachs 10-k_page122	0.5832	0.1902
table/Goldman Sachs 10-k_page136	0.4941	0.0000
table/Goldman Sachs 10-k_page411	1.0000	1.0000
table/FBLB-134215544_page63	0.1677	0.0000
table/Goldman Sachs 10-k_page432	1.0000	1.0000
table/Goldman Sachs 10-k_page433	1.0000	1.0000
table/Goldman Sachs 10-k_page79	0.5297	0.1042
table/Goldman Sachs 10-k_page118	0.7699	0.6900
table/Goldman Sachs 10-k_page137	0.4955	0.0000
table/Goldman Sachs 10-k_page74	0.5091	0.0697
table/Home Depot 10-k unrestricted_page106	0.6797	0.4423
table/Goldman Sachs 10-k_page94	0.4692	0.1512
table/Goldman Sachs 10-k_page84	0.7611	0.5701
table/Goldman Sachs 10-k_page85	0.6498	0.3594
table/FBLB-134215544_page19	1.0000	1.0000
table/Home Depot 10-k unrestricted_page31	0.6375	0.3333
table/Home Depot 10-k unrestricted_page45	0.9978	1.0000
table/Home Depot 10-k unrestricted_page3	1.0000	1.0000
table/Home Depot 10-k unrestricted_page46	0.9993	1.0000
table/Home Depot 10-k unrestricted_page58	0.9970	1.0000
table/Home Depot 10-k unrestricted_page72	0.6054	0.4250
table/Home Depot 10-k unrestricted_page33	0.4297	0.0898
table/Home Depot 10-k unrestricted_page71	0.5990	0.4161
table/IBM_Annual_Report_2018_page17	0.1802	0.0000
table/IBM_Annual_Report_2018_page32	0.3082	0.0000
table/Home Depot 10-k unrestricted_page47	0.9896	1.0000
table/Home Depot 10-k unrestricted_page57	0.8408	0.6910
table/IT.2009.page_74.pdf_78635_page1	0.5276	0.0551
table/JNPR.2011.page_82.pdf_110673_page1	0.7486	0.5211
table/FBLB-134215544_page84	1.0000	1.0000
table/JNPR.2010.page_167.pdf_111113_page1	0.5864	0.1731
table/JNPR.2017.page_127.pdf_110920_page1	0.4972	0.0593
table/JNPR.2011.page_114.pdf_110685_page1	0.5964	0.1929
table/Kimco-Realty-2023-Annual-Report-Web_page43	1.0000	1.0000
table/Kimco-Realty-2023-Annual-Report-Web_page11	0.4312	0.3333
table/Kimco-Realty-2023-Annual-Report-Web_page41	1.0000	1.0000
table/Layout with Boxes and text_page1	0.6625	0.3333
table/JNPR.2008.page_50.pdf_110961_page1	0.4481	0.0565
table/Low-Back-Guideline (1)_page2	0.7735	0.5556
table/MAP-CategoryI-LON_page1	0.8303	0.6667
table/MAP-CategoryI-LON_page2	0.8303	0.6667
table/LTCprodkitLincolnStateAvailabilty0216_page2	0.9970	1.0000
table/JNPR.2018.page_212.pdf_110717_page1	0.5937	0.1929
table/LTCprodkitLincolnStateAvailabilty0216_page1	0.0142	0.0000
table/METLIFE-10Q-20240205 unrestricted_page8	0.2893	0.2500
table/SERFF_CA_random_pages 1_page1020	1.0000	1.0000
table/NEE.2011.page_47.pdf_133659_page1	0.5363	0.0881
table/NFLX.2005.page_70.pdf_72335_page1	0.5288	0.0740
table/SERFF_CA_random_pages 1_page1116	0.3363	0.0000
table/METLIFE-10Q-20240205 unrestricted_page16	0.9603	0.9596
table/SERFF_CA_random_pages 1_page1187	1.0000	1.0000
table/KEY.2014.page_103.pdf_98246_page1	0.8504	0.7143
table/SERFF_CA_random_pages 1_page1201	0.8206	0.6481
table/SERFF_CA_random_pages 1_page1213	0.4983	0.3250
table/SERFF_CA_random_pages 1_page1221	0.0000	0.0000
table/SERFF_CA_random_pages 1_page1226	0.5009	0.1169
table/SERFF_CA_random_pages 1_page1131	0.4896	0.1399
table/SERFF_CA_random_pages 1_page1261	0.6543	0.4429
table/FBLB-134215544_page98	0.8568	0.7361
table/SERFF_CA_random_pages 1_page1220	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1387	0.6604	0.5600
table/SERFF_CA_random_pages 1_page1414	0.2827	0.0667
table/SERFF_CA_random_pages 1_page1262	0.8636	0.7273
table/SERFF_CA_random_pages 1_page1434	0.6420	0.1182
table/SERFF_CA_random_pages 1_page1433	0.7543	0.2341
table/SERFF_CA_random_pages 1_page1498	1.0000	1.0000
table/SERFF_CA_random_pages 1_page115	0.3207	0.2176
table/SERFF_CA_random_pages 1_page1634	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1551	0.3869	0.2847
table/SERFF_CA_random_pages 1_page1637	1.0000	1.0000
table/SERFF_CA_random_pages 1_page168	0.9710	0.9500
table/SERFF_CA_random_pages 1_page1682	0.5000	0.0000
table/SERFF_CA_random_pages 1_page1661	0.1192	0.0000
table/SERFF_CA_random_pages 1_page1492	0.3751	0.1071
table/SERFF_CA_random_pages 1_page179	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1800	1.0000	1.0000
table/SERFF_CA_random_pages 1_page106	0.4430	0.3333
table/SERFF_CA_random_pages 1_page1869	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1751	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1878	0.6767	0.4650
table/SERFF_CA_random_pages 1_page1915	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1801	0.1724	0.0000
table/SERFF_CA_random_pages 1_page1999	0.9159	0.8333
table/SERFF_CA_random_pages 1_page1961	0.5278	0.3462
table/SERFF_CA_random_pages 1_page2024	1.0000	1.0000
table/SERFF_CA_random_pages 1_page2005	0.9782	0.9574
table/SERFF_CA_random_pages 1_page204	1.0000	1.0000
table/SERFF_CA_random_pages 1_page2029	0.5278	0.3462
table/BRWS-134565917_page841	0.3099	0.1804
table/SERFF_CA_random_pages 1_page1377	0.6238	0.2911
table/SERFF_CA_random_pages 1_page2139	0.6699	0.3457
table/SERFF_CA_random_pages 1_page223	0.9747	0.9500
table/SERFF_CA_random_pages 1_page22	0.6479	0.3333
table/SERFF_CA_random_pages 1_page2321	1.0000	1.0000
table/SERFF_CA_random_pages 1_page2323	0.7482	0.4625
table/SERFF_CA_random_pages 1_page2324	1.0000	1.0000
table/SERFF_CA_random_pages 1_page2326	0.7312	0.1806
table/SERFF_CA_random_pages 1_page1423	0.0274	0.0000
table/SERFF_CA_random_pages 1_page2373	1.0000	1.0000
table/SERFF_CA_random_pages 1_page1724	0.1667	0.0000
table/SERFF_CA_random_pages 1_page2248	0.1796	0.0000
table/SERFF_CA_random_pages 1_page2329	0.4765	0.0000
table/SERFF_CA_random_pages 1_page2467	0.3199	0.0235
table/SERFF_CA_random_pages 1_page2526	1.0000	1.0000
table/SERFF_CA_random_pages 1_page2538	1.0000	1.0000
table/SERFF_CA_random_pages 1_page2402	0.3654	0.3068
table/SERFF_CA_random_pages 1_page2600	0.3515	0.0000
table/SERFF_CA_random_pages 1_page2561	0.5881	0.0000
table/SERFF_CA_random_pages 1_page2747	0.0000	0.0000
table/SERFF_CA_random_pages 1_page2706	0.9583	0.9184
table/SERFF_CA_random_pages 1_page2475	0.1732	0.0127
table/SERFF_CA_random_pages 1_page283	0.9963	1.0000
table/SERFF_CA_random_pages 1_page2867	0.9780	0.9565
table/SERFF_CA_random_pages 1_page2884	0.7949	0.3571
table/SERFF_CA_random_pages 1_page2893	1.0000	1.0000
table/SERFF_CA_random_pages 1_page275	0.9814	1.0000
table/SERFF_CA_random_pages 1_page2861	0.6799	0.5308
table/SERFF_CA_random_pages 1_page2930	0.3470	0.3137
table/SERFF_CA_random_pages 1_page2443	0.1855	0.0775
table/SERFF_CA_random_pages 1_page310	0.9873	0.9752
table/PrintableRulesSection_page17	0.2009	0.0685
table/SERFF_CA_random_pages 1_page36	0.3961	0.0547
table/SERFF_CA_random_pages 1_page330	0.9695	0.9778
table/SERFF_CA_random_pages 1_page37	0.9951	0.9907
table/SERFF_CA_random_pages 1_page408	0.7769	0.6833
table/SERFF_CA_random_pages 1_page449	0.9164	0.0409
table/SERFF_CA_random_pages 1_page513	0.8040	0.7955
table/SERFF_CA_random_pages 1_page523	0.9998	1.0000
table/SERFF_CA_random_pages 1_page316	0.9896	1.0000
table/SERFF_CA_random_pages 1_page56	0.4811	0.0000
table/SERFF_CA_random_pages 1_page1870	0.8423	0.7500
table/SERFF_CA_random_pages 1_page622	1.0000	1.0000
table/SERFF_CA_random_pages 1_page647	0.5535	0.1081
table/SERFF_CA_random_pages 1_page536	1.0000	1.0000
table/SERFF_CA_random_pages 1_page65	0.4799	0.4821
table/SERFF_CA_random_pages 1_page2905	0.8744	0.7454
table/SERFF_CA_random_pages 1_page2069	0.9427	0.9421
table/SERFF_CA_random_pages 1_page696	0.3129	0.0123
table/SERFF_CA_random_pages 1_page748	0.9996	1.0000
table/SERFF_CA_random_pages 1_page822	1.0000	1.0000
table/SERFF_CA_random_pages 1_page844	0.9987	1.0000
table/SERFF_CA_random_pages 1_page883	0.2065	0.1172
table/SERFF_CA_random_pages 1_page728	0.4360	0.0000
table/SERFF_CA_random_pages 1_page890	0.9996	1.0000
table/SERFF_CA_random_pages 1_page569	0.4679	0.0000
table/SERFF_CA_random_pages 1_page900	1.0000	1.0000
table/SERFF_CA_random_pages 1_page96	0.3997	0.0000
table/SERFF_CA_random_pages 1_page756	0.5176	0.0000
table/SERFF_CA_random_pages 1_page995	1.0000	1.0000
table/SERFF_CA_random_pages 1_page887	0.9545	1.0000
table/SERFF_CA_random_pages 1_page687	0.7816	0.6686
table/SERFF_Interstate_random_pages 1_page178	1.0000	1.0000
table/SERFF_Interstate_random_pages 1_page157	0.9499	0.9074
table/SERFF_Interstate_random_pages 1_page205	1.0000	1.0000
table/SERFF_Interstate_random_pages 1_page224	0.7413	0.5000
table/SERFF_CA_random_pages 1_page965	0.5435	0.2857
table/SERFF_Interstate_random_pages 1_page255	0.9000	1.0000
table/SERFF_Interstate_random_pages 1_page274	1.0000	1.0000
table/SERFF_Interstate_random_pages 1_page276	0.4706	0.0000
table/SERFF_Interstate_random_pages 1_page277	1.0000	1.0000
table/SERFF_Interstate_random_pages 1_page42	1.0000	1.0000
table/SERFF_CA_random_pages 1_page917	0.5954	0.3333
table/SERFF_Interstate_random_pages 1_page230	1.0000	1.0000
table/SERFF_CA_random_pages 1_page46	0.9982	1.0000
table/SERFF_Interstate_random_pages 1_page9	0.6133	0.2500
table/SERFF_TX_random_pages 1_page1028	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1	1.0000	1.0000
table/SERFF_Interstate_random_pages 1_page222	0.5000	0.0000
table/SERFF_TX_random_pages 1_page1045	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1051	0.5174	0.0348
table/SERFF_Interstate_random_pages 1_page50	0.9017	0.8242
table/SERFF_TX_random_pages 1_page1036	0.4912	0.0281
table/SERFF_TX_random_pages 1_page1065	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1029	0.7928	0.5887
table/SERFF_Interstate_random_pages 1_page174	0.6622	0.3243
table/SERFF_TX_random_pages 1_page1124	0.1636	0.0000
table/SERFF_TX_random_pages 1_page1139	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1168	0.0000	0.0000
table/SERFF_TX_random_pages 1_page1193	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1197	0.8628	0.7956
table/SERFF_CA_random_pages 1_page2104	0.5126	0.0293
table/SERFF_TX_random_pages 1_page1212	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1213	0.4370	0.3278
table/SERFF_TX_random_pages 1_page1214	0.6500	0.5000
table/SERFF_TX_random_pages 1_page1209	0.1505	0.0000
table/SERFF_TX_random_pages 1_page1282	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1284	0.4242	0.0000
table/SERFF_TX_random_pages 1_page1057	0.3070	0.0000
table/SERFF_TX_random_pages 1_page1293	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1299	1.0000	1.0000
table/SERFF_TX_random_pages 1_page159	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1220	0.4902	0.0000
table/SERFF_TX_random_pages 1_page201	1.0000	1.0000
table/SERFF_TX_random_pages 1_page244	0.9916	0.9833
table/SERFF_TX_random_pages 1_page284	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1288	0.5683	0.1395
table/SERFF_CA_random_pages 1_page41	0.2407	0.1886
table/SERFF_Interstate_random_pages 1_page80	0.0004	0.0000
table/SERFF_TX_random_pages 1_page301	0.1024	0.0000
table/SERFF_TX_random_pages 1_page298	1.0000	1.0000
table/SERFF_TX_random_pages 1_page398	1.0000	1.0000
table/SERFF_TX_random_pages 1_page384	0.9969	1.0000
table/SERFF_TX_random_pages 1_page402	1.0000	1.0000
table/SERFF_TX_random_pages 1_page300	0.9353	0.8714
table/SERFF_TX_random_pages 1_page414	0.2792	0.0000
table/SERFF_TX_random_pages 1_page173	0.8427	0.5000
table/SERFF_TX_random_pages 1_page455	1.0000	1.0000
table/SERFF_TX_random_pages 1_page43	0.5541	0.1081
table/SERFF_TX_random_pages 1_page503	1.0000	1.0000
table/SERFF_TX_random_pages 1_page434	0.4913	0.0541
table/SERFF_TX_random_pages 1_page453	0.5856	0.3232
table/SERFF_TX_random_pages 1_page461	0.4722	0.0541
table/SERFF_TX_random_pages 1_page3	0.4086	0.0000
table/SERFF_TX_random_pages 1_page649	0.7400	0.5980
table/SERFF_TX_random_pages 1_page650	1.0000	1.0000
table/SERFF_TX_random_pages 1_page580	0.1678	0.0000
table/SERFF_TX_random_pages 1_page587	1.0000	1.0000
table/SERFF_TX_random_pages 1_page783	1.0000	1.0000
table/SERFF_TX_random_pages 1_page754	0.4691	0.0389
table/SERFF_TX_random_pages 1_page823	0.5374	0.0758
table/SERFF_TX_random_pages 1_page824	0.8727	0.0000
table/SERFF_TX_random_pages 1_page827	1.0000	1.0000
table/SERFF_TX_random_pages 1_page830	0.9904	0.9821
table/SERFF_TX_random_pages 1_page831	1.0000	1.0000
table/SERFF_TX_random_pages 1_page838	0.9545	1.0000
table/SERFF_TX_random_pages 1_page706	0.5327	0.4149
table/SERFF_TX_random_pages 1_page848	0.6094	0.3333
table/SERFF_TX_random_pages 1_page857	1.0000	1.0000
table/SERFF_TX_random_pages 1_page847	0.5256	0.0515
table/SERFF_TX_random_pages 1_page889	0.4069	0.0000
table/SERFF_TX_random_pages 1_page891	0.4240	0.0000
table/SERFF_TX_random_pages 1_page865	0.5541	0.1081
table/SERFF_TX_random_pages 1_page905	0.9175	0.8889
table/SERFF_TX_random_pages 1_page898	0.4722	0.0541
table/SERFF_TX_random_pages 1_page92	0.0000	0.0000
table/SERFF_TX_random_pages 1_page964	0.4398	0.0541
table/SERFF_TX_random_pages 1_page985	1.0000	1.0000
table/SERFF_TX_random_pages 1_page993	0.9967	1.0000
table/SYK.2010.page_26.pdf_136878_page1	0.5033	0.0714
table/TEDS Paper_page2	0.6387	0.6000
table/TEDS Paper_page6	0.6042	0.2222
table/Tables - Apple Def 14a_page102	1.0000	1.0000
table/Tables - Apple Def 14a_page18	0.5210	0.3750
table/Tables - Apple Def 14a_page40	1.0000	1.0000
table/Tables - Apple Def 14a_page67	0.5833	0.1667
table/Tables - Apple Def 14a_page75	0.9963	1.0000
table/Tables - Apple Def 14a_page8	1.0000	1.0000
table/UNM.2007.page_51.pdf_45297_page1	0.9931	0.9872
table/USPS 10-k_page27	1.0000	1.0000
table/USPS 10-k_page29	1.0000	1.0000
table/USPS 10-k_page3	1.0000	1.0000
table/USPS 10-k_page36	1.0000	1.0000
table/USPS 10-k_page37	1.0000	1.0000
table/USPS 10-k_page47	1.0000	1.0000
table/USPS 10-k_page49	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1072	0.5166	0.0334
table/USPS 10-k_page50	0.5626	0.1389
table/SERFF_TX_random_pages 1_page563	0.7971	0.7833
table/Victoria Secret 10-k_page1	1.0000	1.0000
table/VRSK.2012.page_125.pdf_105195_page1	0.5085	0.0493
table/Victoria Secret 10-k_page4	0.9700	1.0000
table/Victoria Secret 10-k_page39	1.0000	1.0000
table/Victoria Secret 10-k_page5	1.0000	1.0000
table/Victoria Secret 10-k_page41	0.7139	0.5625
table/Victoria Secret 10-k_page54	0.9480	0.9474
table/Victoria Secret 10-k_page72	0.9972	1.0000
table/VRSK.2018.page_141.pdf_105144_page1	0.7364	0.5176
table/axa_urd2024_accessible_va_page21	0.4756	0.1364
table/WU.2015.page_161.pdf_68095_page1	0.8261	0.6868
table/blackrock-funds-i-icav-annual-report-2022_page13	0.4646	0.0000
table/blackrock-funds-i-icav-annual-report-2022_page25	0.4505	0.0000
table/blackrock-funds-i-icav-annual-report-2022_page42	0.4758	0.0515
table/SERFF_TX_random_pages 1_page810	0.0771	0.0004
table/Victoria Secret 10-k_page55	0.5309	0.2808
table/corp-q1-2025_page10	0.5279	0.1224
table/bls-Feb-2026_page16	0.4828	0.0474
table/corp-q1-2025_page13	1.0000	1.0000
table/drill angle hierarchical table header_page7	0.7166	0.4409
table/drought-tolerant-plant-list_page1	1.0000	1.0000
table/drought-tolerant-plant-list_page3	0.3629	0.0524
table/SERFF_TX_random_pages 1_page975	0.2500	0.0000
table/drill angle hierarchical table header_page5	0.6369	0.3333
table/gallagherre-reinsurance-market-report-2024_page20	0.9815	1.0000
table/fqr-retail-blackrock-global-allocation-fund-inc_page4	0.9225	0.9054
table/bls-Feb-2026_page14	0.4977	0.0536
table/iCoolPSC+Blower+Catalog+2024_page27	0.9995	1.0000
table/iCoolPSC+Blower+Catalog+2024_page33	1.0000	1.0000
table/SERFF_TX_random_pages 1_page1075	0.4712	0.0269
table/bls-Feb-2026_page15	0.5259	0.0518
table/llama_page6	0.5781	0.3083
table/fqr-retail-blackrock-global-allocation-fund-inc_page8	0.8726	0.8534
table/llama_page7	1.0000	1.0000
table/llong_page1	0.0000	0.0000
table/long-table_page5	0.6917	0.5500
table/long-table_page1	1.0000	1.0000
table/left-side sparse and no outline_page1	0.3348	0.1926
table/metlife_sustainability_report_2024_non_gaap_and_other_financial_disclosures_page3	1.0000	1.0000
table/SERFF_TX_random_pages 1_page568	0.7690	0.7674
table/myco hierarchical table header_page3	0.4173	0.1083
table/myco hierarchical table header_page4	0.6515	0.4935
table/myco hierarchical table header_page5	0.8523	0.0870
table/pub-derivatives-quarterly-qtr1-2019_page6	1.0000	1.0000
table/myco hierarchical table header_page6	0.6256	0.2520
table/sizingchart_page1	0.9821	0.0000
table/sample_page_16_page1	0.0115	0.0229
table/synthetic_colspan_table_no_borders_page1	0.5000	0.0000
table/hard_page1	0.3688	0.0000
table/sizingchart_page2	0.9790	0.9762
table/synthetic_page81_detached_cells_page1	0.9081	0.8750
table/synthetic_invoice_page2	0.0000	0.1297
table/SERFF_TX_random_pages 1_page1056	0.1028	0.0099
table/walmart-earnings-release-fy24-q4_page13	0.5131	0.0899
table/walmart-earnings-release-fy24-q4_page4	0.9909	0.9841
table/xl-re-europe-se-sfcr-2024_page10	0.5875	0.1750
table/xl-re-europe-se-sfcr-2024_page19	0.3592	0.1682
table/llama_page18	0.4930	0.0547
table/synthetic_duplicate_tables_page1	0.2166	0.1756
table/tabular_2_page2	0.3828	0.0457
table/hard_page2	0.3118	0.0000
table/synthetic_invoice_page1	0.8035	0.0000
table/test_page1	0.4898	0.0000
table/p29_page1	0.3383	0.2710

Speed Tests and Profiling

Single H100 80GB, FA3, page size 1, tp 1, temperature 0, single stream. Decode is the server-side gen throughput. Baseline is the conservative launch with the overlap scheduler disabled; optimized enables the overlap scheduler. CUDA graph is on for both.

Decode throughput:

mode input tok output tok baseline (tok/s) optimized (tok/s) speedup
tiny 77 527 513 845 1.65x
small 115 527 513 843 1.64x
base 277 527 510 830 1.63x
gundam 1517 527 500 808 1.62x

Latency (optimized):

mode input tok output tok TTFT e2e
tiny 77 527 68ms 0.69s
small 115 527 88ms 0.71s
base 277 527 110ms 0.75s
gundam 1517 527 537ms 1.20s

The R-SWA cache is correct with the overlap scheduler, so it does not need to be disabled. Keeping it on pipelines the per-step CPU work (scheduling, sampling, detokenization) behind the GPU forward, which is the ~60% decode gain. Output was checked byte-for-byte with the scheduler on vs off and is identical across all image modes and for long inputs (3000+ token prompt, 2000+ token output across many eviction cycles). CUDA graph is required for these numbers; eager decode is ~70 tok/s. Tuning the fused MoE config for this shape was also tried and moved throughput about 2 percent, within noise, so the default is kept.

Checklist


CI States

Latest PR Test (Base): ✅ Run #28285309464
Latest PR Test (Extra): ❌ Run #28285309384

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@mickqian mickqian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also attach the results of accuracy test?

image_max_dynamic_patch: Optional[int] = None
video_max_dynamic_patch: Optional[int] = None

images_config: Optional[dict] = None

@mickqian mickqian Jun 26, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: For Unlimited-OCR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted!

Comment thread python/sglang/srt/managers/scheduler.py Outdated
else:
new_batch.decoding_reqs = None

if getattr(self.tp_worker.model_runner, "prefill_aware_swa", False):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we avoid getattr?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it.

@adityakamat24

Copy link
Copy Markdown
Contributor Author

Could you also attach the results of accuracy test?

@mickqian I updated the pr body with the accuracy tests results and made changes to the code as per your review. Please do re-review it. Thanks!

src_base = req_idx * req_to_token_stride
dst_base = bid * dst_stride

for start in range(0, kv_len, BLOCK_SIZE):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kv_len is dynamic, tl.range(0, kv_len, BLOCK_SIZE) is better for JIT

@github-actions github-actions Bot added documentation Improvements or additions to documentation Multi-modal multi-modal language model labels Jun 27, 2026
@mickqian

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Jun 27, 2026
@mickqian
mickqian merged commit 1589603 into sgl-project:main Jun 27, 2026
163 of 178 checks passed
dougyster added a commit to dougyster/sglang that referenced this pull request Jul 17, 2026
…ped in v0.5.15

Ancestry-checked each rolling-:dev model against v0.5.15.post1. Support that
landed in the release moves to the stable tag:
- Baidu Unlimited-OCR (sgl-project#29186), LFM2.5 (sgl-project#29659) -> :latest
- MiniCPM-V-4.6 (sgl-project#24855): :dev -> :latest, :dev-cu12 -> :latest-cu129

Kept on :dev (support NOT in the release cut):
- LongCat-2.0 (FP8 support sgl-project#30275 not in v0.5.15.post1)
- Hy3 (HunyuanV3 NextN/MTP fix sgl-project#30331 not in release; MTP is a headline feature)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation Multi-modal multi-modal language model run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Model] Support Unlimited OCR

2 participants