On the North Market receipt, I can run my finger down the right-hand column until I reach the total, 13.39. What does a model have to keep in memory to do the same thing? In my OCRia walkthrough, we could inspect the box around a line, crop the pixels and watch a recognizer read them. With Unlimited-OCR we can follow a different trail. The page becomes a grid of numbers. A language model looks back at that grid as it writes the shop name, the prices and even the coordinates of the table.
Read your first image with CKE
From a Linux machine with Git, a C compiler and Python 3.11 or newer, clone CKE and select the revision used for the gallery. Allow roughly 6.7 GB for the two model files and at least 16 GiB of additional free working space. The first run builds and loads five generated stages. You can give it several images in one process to share that setup.
git clone https://github.com/C-Kernel-Engine/C-Kernel-Engine.git
cd C-Kernel-Engine
git checkout 3e9f61afea1d8d3eb1893e1b1c8a9448f684c46b
python3 -m venv .venv
source .venv/bin/activate
python -m pip install numpy Pillow tokenizers jsonschema huggingface_hub
hf download baidu/Unlimited-OCR model.safetensors tokenizer.json \
--revision 8249d20b2822a7d8a4c22c8d8c9069b5ac36bda3 --local-dir ./checkpoint
mkdir -p ./ocr-workCK_NUM_THREADS=8 python -m version.v8.scripts.unlimited_ocr_reader_v8 \
--checkpoint ./checkpoint --work-dir ./ocr-work --vertical-border 128 \
tests/fixtures/nano_vl_ocr/receipt.png
# Use the default zero border for ordinary images.
CK_NUM_THREADS=8 python -m version.v8.scripts.unlimited_ocr_reader_v8 \
--checkpoint ./checkpoint --work-dir ./ocr-work path/to/document.pngEach output line is a JSON object. text holds the raw transcription and layout markers. stop says whether the model emitted EOS or used its token budget (up to 160). seconds.total starts when the reader opens the image and ends after decoding the text. Python prepares pixels, moves buffers and chooses tokens; the generated C libraries execute model arithmetic. I tested these five Python dependencies in a clean environment on P3 with PyTorch absent. The reader reproduced all 138 reference receipt IDs through EOS. PyTorch enters the workflow later, when a contributor wants a second implementation for numerical comparison. Reader source · Merged image-path reader and repeat-image test.
Start with the page we actually read

The source PNG is 512 × 512. For this diagnostic the test adds 128 light pixels above and below, then fits the resulting image into the 1,024 × 1,024 base canvas. This matters if you try to reproduce the coordinates. The CPU reference separately prepares its pixels and computes its own visual features. Each backend feeds its own feature vectors into its decoder. Pixel preparation and full SAM test.
Follow the circuit · two vision stacks, one bridge and one decoder
Start with one price on the receipt. SAM locates its strokes on a grid. CLIP lets the cell containing the price gather context from cells across the page. The bridge hands both descriptions to the text decoder, which can now predict a word, a digit or a box coordinate. Count 36 vision transformer layers (12 + 24) and 12 language transformer layers. The decoder appears twice in the drawing because its inputs change once generation begins. Both passes read the same layer weights.
Open SAM encoder and select Attention to compare a local window in layer 0 with full-grid attention in layer 2. Return to the parent and open CLIP tower for a page-wide layer, or Decoder prefill → Routed FFN for the expert weights. Each tile has its operation, buffer names and a link to the C implementation.
| Stage | What enters and leaves | What to look for |
|---|---|---|
| SAM patch projection | 1,024 × 1,024 RGB → 64 × 64 × 768 | Each 16 × 16 patch has 768 colour values. Learned filters turn those values into a vector and position embeddings record its place. |
| 12 SAM blocks and convolutional neck | 4,096 patch vectors → 256 vectors of width 1,024 | Most blocks attend inside windows. Blocks 2, 5, 8 and 11, counted from zero, attend across the grid. The neck shrinks it to 16 × 16. |
| 24 CLIP-derived blocks | 256 SAM rows plus one learned class row → 257 × 1,024 | Each patch can gather information from the rest of the page. Keep the patch rows for the bridge. |
| Image bridge | 256 × 2,048 → 273 × 1,280 | For each location, join the CLIP and SAM features. Project to decoder width, add 16 row endings and one final separator. |
| 12-layer language decoder · reused at each step | 279 prompt positions → 129,280 logits at the last position | Use the prompt once to fill the cache, then choose one token at a time. A token can represent text, a coordinate or document structure. |
One implementation detail helped me understand why we check intermediate arrays. At the edge of a 14 × 14 SAM window the circuit pads hidden rows before applying the query, key and value projections. For a projection y = Wx + b, a padded zero row produces b. Padding after the projection would give an edge pixel different neighbours in attention. SAM also adds separate relative-height and relative-width contributions to each query–key score. SAM circuit and spatial attention.
The bridge is small enough to work out by hand. Take cell (3, 5). Its two 1,024-element descriptions sit side by side. The learned projection gives that cell one 1,280-element description. Do that for all 256 cells. After every 16 cells, insert a learned vector meaning end of row. The result has 16 × 17 + 1 = 273 rows. Giving the decoder those row boundaries is how the two-dimensional page survives the trip into a one-dimensional prompt. Image bridge.
What do SAM and CLIP see in a receipt?
Find the decimal point between the two threes in the close-up below. It comes from the bottom-right corner of the original North Market receipt. At the entrance to the model, the dot is a few dark pixels. How can a decoder use the marks on either side, or even the word TOTAL across the page, to read an amount?

How SAM turns a piece of paper into spatial features
SAM stands for Segment Anything Model. The original system takes an image and a prompt, such as a point, and predicts a mask. Unlimited-OCR uses a SAM-derived image encoder. Its output here is a grid of vectors. The OCR decoder eventually produces the text and its coordinates. Original SAM paper
Take a 16 × 16 RGB patch surrounding the decimal point. That gives 768 channel values. For each learned feature, the patch projection multiplies those values by its own 768 coefficients, sums them and adds a bias. Performing the same calculation at every patch is a convolution with a 16 × 16 kernel and stride 16. On a 1,024-pixel square page, the result has 64 × 64 locations. Each location carries 768 features. A position embedding identifies where the patch came from. Kernel map · C implementation
In a windowed layer, the query from the decimal point can only gather values from patches in its window. The SAM score for two patches adds their scaled query–key dot product and two learned relative-position contributions, one for their row offset and one for their column offset. The dot product captures feature agreement. The offsets let the same features receive different scores when the other patch sits above the dot or beside it. Four layers allow this exchange across the full grid. The convolutional neck then reduces the spatial resolution to 16 × 16. Kernel map · C implementation · Spatial attention reduction
Why a second image tower reads those features
CLIP stands for Contrastive Language–Image Pre-training. In the original method, an image encoder and a text encoder learned to score matching image–caption pairs highly. Here we use a CLIP-derived vision tower. Its input is SAM’s 256 feature rows and one learned class row. Every row can gather information from all 257 positions. The bridge takes the resulting 256 patch rows and pairs each with the original SAM row at the same location. This keeps a direct path from local strokes to the decoder alongside a path carrying page-wide context. Original CLIP paper
Work one attention head by hand
Imagine just two patches, one on the decimal point and one on the adjacent digit. Call them rows 1 and 2. For one head the score matrix is S = QKᵀ/√d. Applying softmax independently to each row gives the mixing weights A. If the first row of scores is [ln 3, 0], exponentiation gives [3, 1] and division by their sum gives [0.75, 0.25]. Give the two patches value vectors [2, 0] and [0, 4]. The first output becomes 0.75 × [2, 0] + 0.25 × [0, 4] = [1.5, 1]. In the CLIP circuit each of 16 heads does this over 257 rows with 64 features per head. The two-patch numbers are a worked example.

How would the gradient get back to that patch?
Suppose a training loss sends a gradient of one into the first component of the first output, and zero everywhere else. Call this matrix G = ∂L/∂O. Follow the values first. Since O = AV, the gradient of the values is AᵀG. The first feature of patch 1 gets 0.75 and the first feature of patch 2 gets 0.25. Both influenced the same prediction.
The weights also influenced it. ∂L/∂A = GVᵀ gives [2, 0] in row 1. Softmax couples the two weights because they sum to one. Subtract the row’s weighted mean, 1.5, and multiply each difference by its attention weight. The two score gradients are 0.75 × (2 − 1.5) = +0.375 and 0.25 × (0 − 1.5) = −0.375. You can check the sign by increasing the second score slightly. More weight moves to the patch whose first feature is zero, so the first output falls.
Write the score gradient as D. For the dot-product path, ∂L/∂Q = DK/√d and ∂L/∂K = DᵀQ/√d. In SAM the relative-position terms contribute another gradient to the queries and position parameters. A residual addition sends its incoming gradient down both branches. At the image bridge, backprop through the projection splits the joined feature gradient into its CLIP and SAM halves. The direct SAM gradient and the gradient returning through CLIP add at the shared SAM output. Ultimately, for a patch projection written Y = XW + b, ∂L/∂W = Xᵀ(∂L/∂Y) sums evidence from every patch that used the same filter. These equations describe a possible training pass. The released reader runs inference.
Read a real kernel map beside the math
In the CLIP tower select Attention and inspect layer_0__context_f32. The map says that this call reads three contiguous FP32 arrays in token-major order. Each has shape [T, H × D], here [257, 1,024]. The projections earlier in the layer own the learned weights. This attention call receives their outputs and needs scratch for one row of 257 scores. Below are selected fields from its actual provider map. Kernel map · C implementation
{
"id": "attention_full_token_major_f32_checked",
"operation_interface": "attention.full_unmasked.token_major.fp32.checked.v1",
"quant": {
"weight": "none",
"activation": "fp32",
"output": "fp32"
},
"weights": [],
"modes": {
"inference": true,
"training": false,
"backward": false
}
}Zoom in on one vision layer
Pick the cell holding the last digit of the total. In SAM layer 0, twelve attention heads of width 64 read neighbours inside its window. The layer adds the attention result back to the cell, normalizes again, expands 768 features to 3,072, applies GELU, and projects back to 768 for the second residual addition. By layer 2 the same cell can read the whole 64 × 64 grid. The neck eventually delivers a smaller 16 × 16 grid. SAM circuit builder
In CLIP layer 0, each of 16 heads can read all 257 rows, including the learned class row. The attention result feeds a residual addition. The feed-forward path normalizes, expands each row from 1,024 to 4,096, applies QuickGELU and returns to 1,024. Layer 23 still outputs every row. That is why the bridge can pick up the features at the price’s location. CLIP circuit builder
Why the decoder can keep looking at the page
Imagine copying the last line of a long invoice. You still need the original invoice in view. You may only need the last few words you wrote to continue. Baidu calls this Reference Sliding Window Attention. In the CKE receipt circuit the 279 image-and-text prompt positions stay available. A separate ring holds the 128 most recent generated positions. Once full, the next generated entry replaces the oldest generated entry. The image stays where it was. Our 138-token receipt actually crosses that boundary. Baidu’s research paper · CKE cache layout.
Each of the 12 decoder layers has ten attention heads. The first layer uses a dense feed-forward network. In each of the remaining eleven, a router selects six of 64 learned experts for a token, combines their outputs and includes a shared expert branch. Prediction uses the final normalized row to score the vocabulary. Greedy decoding picks the highest-scoring ID, feeds it back and stops at the end-of-sequence ID or a configured budget. Two runtimes can make very similar calculations and still choose different coordinate tokens. Decoder and independent CPU reference.
In decoder layer 0 the ten heads each have 128 features. After causal attention, SwiGLU expands the 1,280-wide row through a 6,848-wide dense feed-forward path. Layer 1 keeps the attention structure and changes the feed-forward calculation to routed experts. Layer 11 completes the stack. The final RMS normalization and vocabulary projection turn its last row into 129,280 scores. For a worked example of one routing decision, see Inside a Mixture-of-Experts Layer. Decoder circuit and readout
Header, body and footer in the generated CKE circuits
There are two ways to read the drawing. When I trace the mathematics, I look for an entrance (patches or prompt rows), repeated transformer layers, and an exit (features or logits). When I open the CKE JSON, header, body and footer name actual execution slots. Here each of the five builders emits one block with empty header and footer arrays. Its body.ops contains the entrance, every unrolled layer and the exit in execution order. The decoder’s final vocabulary projection lives in that body too. Compare this arrangement with the Qwen3-VL header, body and footer walkthrough.
| Generated circuit | Header | Body | Footer |
|---|---|---|---|
| SAM · 12 layers | 0 | 252 | 0 |
| CLIP · 24 layers | 0 | 509 | 0 |
| Image bridge | 0 | 4 | 0 |
| Prompt · 12 decoder layers | 0 | 239 | 0 |
| One token · same 12 layers | 0 | 287 | 0 |
For example, open block_types.block.body.ops[2] in the image bridge. The graph_slots field below is copied from that call. Trace its output name into the next call to see exactly where the projected image features go.
{
"inputs": {
"input": "joined"
},
"outputs": {
"output": "projected"
}
}When I see projected in this template, I want to know two things. Who wrote that buffer, and who reads it next? Open the bridge, select Project, then select graph_slots. Its input is joined, the 2,048 features produced by Join features. Its output is projected, the 1,280 features that Frame rows will read. Now select weight_refs to see where the projection gets its matrix and bias.
In the full object, sequence identifies a block. Inside block_types.block.body.ops, array order gives the execution order. activation_buffers gives each intermediate a shape and activation_bindings gives a slot its storage name. params supplies dimensions and checked extents. A kernel map translates the provider name into a C function and its argument contract. The JSON holds references to the weights; the numeric values live in the checkpoint. Host code still opens the image, decides when to stop, and starts the next document with fresh history. Bridge authoring source · Projection kernel map.
Which kernels run inside each stage?
Open a stage to see every kernel identifier named by its generated circuit at this revision. Counts are occurrences in the circuit definition. The cached step is invoked repeatedly. A profiler is needed to turn any of these counts into CPU time.
SAM image encoder · 15 distinct kernels
add_bf16_checked× 24add_weight_bf16_checked× 1attention_spatial_terms_bf16_checked× 12gelu_rows_erf_checked_f32× 12image_patchify_rgb8_bf16_checked× 1layernorm_rows_checked_param_epsilon_f32× 24layernorm_rows_step_bf16_checked× 2linear_rows_bf16_checked× 4linear_rows_bias_bf16_checked× 49narrow_f32_bf16_checked× 36relative_position_terms_bf16_checked× 12spatial_im2rows_bf16_checked× 3spatial_window_layout_bf16_checked× 24widen_bf16_checked× 36window_qkv_split_bf16_checked× 12
CLIP vision tower · 10 distinct kernels
add_bf16_checked× 48add_weight_bf16_checked× 1attention_full_token_major_f32_checked× 24layernorm_rows_checked_param_epsilon_f32× 49linear_rows_bias_bf16_checked× 144narrow_f32_bf16_checked× 73prepend_weight_row_bf16_checked× 1scale_scalar_f32_bf16_checked× 24sigmoid_mul_bf16_checked× 24widen_bf16_checked× 121
Image bridge · 4 distinct kernels
concat_features_bf16_checked× 1frame_token_grid_bf16_checked× 1linear_rows_bias_bf16_checked× 1slice_bf16_checked× 1
279-position prefill · 11 distinct kernels
add_bf16_checked× 35attention_ranges_checked_bf16× 12full_softmax_topk_unrenormalized_f32_checked× 11linear_rows_bf16_checked× 85linear_rows_checked_no_bias_f32× 11rmsnorm_rows_bf16_checked× 25rope_split_tables_bf16_checked× 24routed_swiglu_fp32_route_sum_bf16_checked× 11slice_bf16_checked× 1swiglu_bf16_checked× 12widen_bf16_checked× 12
One cached step · 13 distinct kernels
add_bf16_checked× 35attention_ranges_checked_bf16× 12concat_features_bf16_checked× 24full_softmax_topk_unrenormalized_f32_checked× 11gather_rows_bf16_checked× 24linear_rows_bf16_checked× 85linear_rows_checked_no_bias_f32× 11rmsnorm_rows_bf16_checked× 25rope_split_tables_bf16_checked× 24routed_swiglu_fp32_route_sum_bf16_checked× 11slice_bf16_checked× 1swiglu_bf16_checked× 12widen_bf16_checked× 12
Read the output before you read the score
This is the CKE text after tokenizer decoding. The first line is part of the output. The table markers are printed literally below.
2020
title [272, 214, 728, 255]NORTH MARKET
text [119, 286, 559, 320]DATE 2026-11-28
table [116, 353, 884, 735]<table>OAT MILK4.25RYE BREAD5.50PEARS3.00SUBTOTAL12.75TAX0.64TOTAL13.39</table>The field check pairs each label with its printed amount. If the model prints 0.64 beside TOTAL and 13.39 beside TAX it fails even though both numbers appear. The first CKE–PyTorch token difference is at index 28. Compare the date’s top edge (CKE 286, PyTorch 285), the table’s top edge (353, 351) and its bottom edge (735, 744). Neither runtime has a manually annotated box in this test against which to claim a better location. The shared leading “2020” illustrates another limit of the eight-field score. Field scorer.
Where the seconds went
We ran the BF16 base-view checkpoint on an Intel Core i7-14700T, pinning eight threads to eight physical P-cores. The comparison is with CKE’s explicit PyTorch CPU reference for these stages. Baidu’s GPU examples use a different device and inference stack.
| Stage | CKE (s) | PyTorch (s) |
|---|---|---|
| SAM image encoder | 20.790 | 29.936 |
| CLIP tower | 4.941 | 1.073 |
| Image bridge | 0.011 | 0.009 |
| Decoder prefill | 2.482 | 2.418 |
| Cached generation | 5.623 | 3.560 |
| Sum of measured stages | 33.847 | 36.996 |
The fresh CKE prefix matched the archived CKE prefix byte for byte. The fresh PyTorch prefix differed from its archive. Across the two fresh prefixes the maximum absolute difference was 0.171875 and the root-mean-square difference was 0.003275. With archived prefixes the decoders differed on two coordinates. With fresh pixels the table’s top edge became the third difference. The field scores held in both runs.
The kernel timers start after each stage is ready. Reading the PNG, resizing it, loading weights, compiling and moving data between stages add time outside these counters. A user waiting for an answer experiences those costs too. In the previously merged diagnostic the five stages summed to 34.155 seconds for CKE and 38.866 seconds for PyTorch. Three decoder-only repeats took 8.30–8.48 seconds for CKE. A decoder-only speedup would leave much of the page-reading time untouched. Pinned CPU performance record.
For contributors · reproduce the historical decoder comparison
To reproduce the CKE decoder check: from the pinned CKE checkout, use a Python environment with the CKE build prerequisites, pytest, NumPy, tokenizers and CPU PyTorch for the reference. The fixture directory must contain the pinned decoder slices, tokenizer, header and independently generated receipt prefixes; the test checks the file hashes. Choose CPU IDs for your own machine.
CK_UNLIMITED_OCR_FULL_DECODER_FIXTURES=/path/to/fixtures \
CK_UNLIMITED_OCR_RING_STEPS=160 CK_NUM_THREADS=8 CK_THREADPOOL_CAPACITY=8 \
OMP_NUM_THREADS=8 MKL_NUM_THREADS=8 OPENBLAS_NUM_THREADS=1 \
taskset -c 0,2,4,6,8,10,12,14 python -m pytest -qs \
tests/test_v8_unlimited_ocr_prefill_logits.py::test_pinned_receipt_full_prefill_logitsThe regression above starts with saved image prefixes. The earlier fresh-pixel comparison regenerated independent prefixes for CKE and PyTorch. The image-path command at the top of this article is the user-facing workflow introduced in PR #1416. HTTP serving and multipage parsing were outside this run.
What the release tells us about training
The authors start from DeepSeek OCR and change decoder attention to keep a bounded working memory as documents get longer. Their paper evaluates long-document parsing. The release points to ms-swift training support. Here we loaded the published weights for inference. The receipt illustrates a consequence of the attention design; it cannot tell us what documents appeared in training or how accurately the model will read a new set. Unlimited-OCR technical report · Model card.
The same 15 pages as the OCRia experiment
These files also appear in our OCRia crop and form experiments. With OCRia I can isolate the detected crop. Here I can follow a page into visual features and inspect the decoder’s raw text. The earlier OCR evaluation notes explain why we keep the original labels around when a runtime produces plausible text.
On the same i7-14700T, eight physical P-cores and one loaded BF16 reader, 5 of 15 pages reached EOS and 10 used all 160 tokens. Warm image-open-to-text time ranged from 32.1 to 41.3 seconds (median 38.5). These are single observations per page with zero diagnostic border. The earlier eight-field receipt comparison used a different border and separately timed stages.

The café page shows why I keep the raw output. The model read “Coffee 3.75” and “TOTAL 8.40” and emitted boxes for both. It also put “2024” on its own line with no box. Choose a region below to check it against the source pixels. Dense forms use tokens on coordinates and markup as well as words. A budget stop can cut through a line.
I also scored the text in output order. I removed whitespace and the documented region prefixes and table tags, preserved case, punctuation, extra text and partial output, and counted character insertions, deletions and substitutions against the reference. Across 2,018 reference characters that gave 668 edits (33.1%). Counting OCRia’s rejected sideways page as empty output, the same text metric on its archived CKE strings gave 416 (20.6%). This measures the complete reader output on these particular pages, including truncation and reading order. The two readers have different output formats, limits and hardware runs; their timing figures cannot establish a model speed ratio.
| Input | Stop | Tokens | Seconds | Character edits / reference length |
|---|---|---|---|---|
| Low-resolution upright receipt | EOS | 7 | 32.1 | 81 / 91 |
| Clean portrait equipment form | BUDGET | 160 | 38.5 | 67 / 190 |
| Upright form, camera-style JPEG | BUDGET | 160 | 34.8 | 73 / 190 |
| Tall receipt with perspective and shadow | BUDGET | 160 | 38.9 | 13 / 91 |
| Form tilted 3 degrees | BUDGET | 160 | 38.7 | 69 / 190 |
| Form tilted 9 degrees | BUDGET | 160 | 38.6 | 65 / 190 |
| Form with glare and blur | BUDGET | 160 | 38.1 | 73 / 190 |
| Same camera-style form, rotated 90 degrees | BUDGET | 160 | 38.7 | 73 / 190 |
| Sideways form rotated upright before OCR | BUDGET | 160 | 38.6 | 73 / 190 |
| Square cafe slip with separated prices | EOS | 150 | 37.5 | 4 / 81 |
| Landscape delivery confirmation | EOS | 157 | 34.6 | 4 / 102 |
| Long, narrow repair ticket | BUDGET | 160 | 38.7 | 27 / 103 |
| Small landscape parts-bin label | EOS | 108 | 36.4 | 4 / 49 |
| Square stocktake sheet with two columns | BUDGET | 160 | 41.3 | 38 / 90 |
| Small, faint print under uneven lighting | EOS | 139 | 38.0 | 4 / 81 |
Low-resolution upright receipt · EOS · 7 tokens

Printed reference
CEDAR SUPPLY Receipt 00719 2026-11-30 Masking tape 6.95 Cable ties 4.50 Subtotal 11.45 Tax 0.57 Total 12.02
Raw CKE output
2026-11-30
Clean portrait equipment form · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
04/2022 title [62, 48, 936, 98]EQUIPMENT CHECKOUT text [62, 124, 574, 165]Request ID: EQ-1042 text [62, 202, 495, 240]Date: 2026-11-30 text [62, 283, 559, 325]Name: Riley Morgan text [62, 361, 724, 402]Department: Field Services text [62, 440, 655, 482]Item: Digital multimeter text [62, 521, 543, 563]Asset tag: DM-0821 text
Upright form, camera-style JPEG · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
2014-06-01 title [218, 128, 790, 182]EQUIPMENT CHECKOUT text [214, 186, 567, 226]Request ID: EQ-1042 text [214, 246, 513, 283]Date: 2026-11-30 text [212, 309, 556, 349]Name: Riley Morgan text [210, 373, 670, 410]Department: Field Services text [206, 438, 624, 475]Item: Digital multimeter text [202, 504, 550, 541]Asset tag: DM-0821
Tall receipt with perspective and shadow · BUDGET · 160 tokens

Printed reference
CEDAR SUPPLY Receipt 00719 2026-11-30 Masking tape 6.95 Cable ties 4.50 Subtotal 11.45 Tax 0.57 Total 12.02
Raw CKE output
2020 title [192, 119, 692, 163]CEDAR SUPPLY text [189, 206, 544, 247]Receipt 00719 text [185, 294, 474, 333]2026-11-30 text [185, 384, 662, 428]Masking tape 6.95 text [180, 476, 578, 515]Cable ties 4.50 text [177, 572, 570, 610]Subtotal 11.45 text [174, 668, 408, 709]Tax 0.57 text [171
Form tilted 3 degrees · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
100% sure. title [242, 116, 817, 194]EQUIPMENT CHECKOUT text [237, 175, 585, 226]Request ID: EQ-1042 text [232, 235, 532, 283]Date: 2026-11-30 text [227, 298, 570, 350]Name: Riley Morgan text [218, 362, 678, 414]Department: Field Services text [208, 428, 629, 478]Item: Digital multimeter text [200, 495, 550, 540]Asset tag: DM-0821 text [
Form tilted 9 degrees · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
100% sure. title [296, 100, 866, 218]EQUIPMENT CHECKOUT Request ID: 00-1042 text [269, 218, 567, 283]Date: 2026-11-30 text [255, 280, 593, 356]Name: Riley Morgan text [235, 344, 692, 428]Department: Field Services text [218, 406, 636, 485]Item: Digital multimeter text [202, 472, 548, 540]Asset tag: DM-0821 text [187, 538, 390, 590]Quantity:
Form with glare and blur · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
2014-10-01 title [216, 128, 793, 182]EQUIPMENT CHECKOUT text [214, 186, 567, 226]Request ID: EQ-1042 text [214, 246, 513, 283]Date: 2026-11-30 text [212, 309, 556, 349]Name: Riley Morgan text [210, 373, 670, 410]Department: Field Services text [206, 437, 624, 475]Item: Digital multimeter text [202, 505, 550, 541]Asset tag: DM-0821
Same camera-style form, rotated 90 degrees · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
2026-11-30 text [808, 219, 865, 790]EQUIPMENT CHECKOUT text [770, 214, 808, 567]Request ID: EQ-1042 text [713, 214, 748, 520]Date: 2026-11-30 text [648, 214, 686, 560]Name: Riley Morgan text [588, 214, 623, 662]Department: Field Services text [524, 214, 560, 630]Item: Digital multimeter text [460, 214, 495, 550]Asset tag: DM-0821
Sideways form rotated upright before OCR · BUDGET · 160 tokens

Printed reference
EQUIPMENT CHECKOUT Request ID: EQ-1042 Date: 2026-11-30 Name: Riley Morgan Department: Field Services Item: Digital multimeter Asset tag: DM-0821 Quantity: 2 Return by: 2026-12-07 Status: Approved Checked by: Jordan Lee
Raw CKE output
2014-06-01 title [216, 128, 793, 183]EQUIPMENT CHECKOUT text [214, 186, 567, 226]Request ID: EQ-1042 text [214, 246, 513, 283]Date: 2026-11-30 text [212, 309, 556, 349]Name: Riley Morgan text [210, 373, 670, 410]Department: Field Services text [205, 438, 624, 475]Item: Digital multimeter text [200, 504, 550, 541]Asset tag: DM-0821
Square cafe slip with separated prices · EOS · 150 tokens

Printed reference
PARKSIDE CAFE Counter sale 0297 Coffee 3.75 Bagel 4.25 Tax 0.40 TOTAL 8.40 Card payment accepted
Raw CKE output
2024 title [148, 158, 588, 212]PARKSIDE CAFE text [148, 246, 453, 285]Counter sale 0297 text [148, 336, 708, 382]Coffee 3.75 text [150, 435, 707, 481]Bagel 4.25 text [150, 533, 705, 577]Tax 0.40 text [150, 642, 698, 690]TOTAL 8.40 text [152, 789, 477, 824]Card payment accepted
Landscape delivery confirmation · EOS · 157 tokens

Printed reference
DELIVERY CONFIRMATION Shipment: PX-7204 Crates: 6 Received: 2026-11-28 Bay: 04 Condition: intact Reference: WH-0187
Raw CKE output
2024 title [172, 120, 567, 171]DELIVERY CONFIRMATION text [168, 222, 392, 272]Shipment: PX-7204 text [166, 324, 275, 366]Crates: 6 text [164, 426, 421, 472]Received: 2026-11-28 text [160, 558, 252, 609]Bay: 04 text [156, 678, 346, 723]Condition: intact text [152, 798, 374, 843]Reference: WH-0187
Long, narrow repair ticket · BUDGET · 160 tokens

Printed reference
REPAIR TICKET Ticket RG-2062 Pump controller Bench 7 Fault: no power Fuse replaced Output: 24 V Checked: 2026-11-29 READY
Raw CKE output
2024 title [199, 109, 728, 144]REPAIR TICKET text [192, 180, 554, 207]Ticket RG-2062 text [192, 255, 560, 283]Pump controller text [192, 331, 381, 356]Bench 7 text [188, 406, 545, 433]Fault: no power text [184, 495, 477, 520]Fuse replaced text [181, 574, 453, 599]Output: 24 V text [178, 670, 573, 694]
Small landscape parts-bin label · EOS · 108 tokens

Printed reference
PARTS BIN SKU: MX-0048 M4 washers Quantity: 250 Rack: B-12
Raw CKE output
2024 title [57, 82, 494, 182]PARTS BIN text [57, 262, 443, 333]SKU: MX-0048 text [57, 432, 388, 509]M4 washers text [57, 616, 430, 698]Quantity: 250 text [57, 788, 338, 858]Rack: B-12
Square stocktake sheet with two columns · BUDGET · 160 tokens

Printed reference
STOCKTAKE AISLE A Bolts: 40 Nuts: 70 Washers: 95 AISLE B Clips: 22 Pins: 15 Spacers: 31 Verified: 2026-11-29
Raw CKE output
2020 title [53, 57, 418, 108]STOCKTAKE text [50, 200, 197, 240]AISLE A text [52, 329, 207, 364]Bolts: 40 text [52, 445, 201, 480]Nuts: 70 text [52, 558, 264, 593]Washers: 95 text [549, 200, 690, 237]AISLE B text [550, 326, 698, 366]Clips: 22 text [550, 444, 686, 480
The changes behind this run
PR #1416 connected the five stages to a supplied image path. Its receipt → cheque → receipt test exercises document isolation while reusing loaded weights. Earlier work established the numerical baseline below.
The image side came together through the full SAM encoder, CLIP tower and image bridge. On the text side the milestones were dense prefill, routed experts, vocabulary logits, cached continuation and preserving the image prompt across a cache wrap. The receipt performance change then sped up the projections while keeping the same 138 CKE token IDs.
For the detector-and-recognizer approach and the original image gallery, read Inside LlamaIndex OCRia-nano-1. To follow the remaining CKE integration work, see the Unlimited-OCR tracker.
Recommended reading
- OCRia with LiteParse on a real form — follow a second OCR architecture from a detected region to text on the page.
- How we check OCR field correctness in CKE — what an independent expected answer adds to a successful kernel run.
- Granite Docling reading a receipt — compare another document model that produces DocLang markup.
- CKE Vision · Find the First Bad Edge — where to probe when two runtimes disagree before the first token.
- Qwen3-VL vision from header to footer — follow another image encoder into a language model.
- CKE user guides and Antshiv Robotics open-source projects — find the runtime, setup instructions and related engineering work.

Comments
Join the conversation. Replies can go three levels deep.