N Neurarch Try it See it Changes Bot Pricing API Open app

Models / table-transformer

table-transformer-structure-recognition: GPU memory to fine-tune

Fine-tuning table-transformer-structure-recognition at batch 1 and 1024 tokens takes about 0.40 GB of GPU memory for a full fine-tune (fits one T4 16 GB), and 0.13 GB with LoRA r=16 on a bf16 base (fits one T4 16 GB). Estimated from the model's structure, not measured. What fits on which card.

Reconstructed from its own config.json with no weights read. 1.2M downloads on Hugging Face.

Our count against the checkpoint

The left number comes from the graph. The right one is the number of scalars in the published weight files. Nothing on this page was tuned to make them agree.

Derived from structure
16.0M
15,963,136 parameters
In the published checkpoint
28.8M
28,847,819 scalars · safetensors.total, read 2026-09-06
Delta
-44.7%

What it costs to run

Cost is a roofline estimate on the priced GPU for 10 epochs at batch 32, 1024 tokens over 50,000 samples (assumed; no dataset attached).

Layers
26
Will it forward-pass
Yes
Priced on
A10G (24GB)
Est. one run
$0.40

Memory: what fits on which card

Largest batch per card. Training is sized at 1024 tokens per sample, serving at 1024 tokens per sequence.

Full fine-tune, batch 1 at 1024 tokens
0.40 GB
LoRA r=16, batch 1 at 1024 tokens
0.13 GB
Serve: bf16 weights
32 MB
Serve: KV cache, 1024 tokens
6.3 MB
CardFull fine-tuneLoRA r=16Serve bf16, 1024 tokens
T4 16 GBbatch 152batch 155batch 2206
L4 24 GBbatch 230batch 233batch 3312
A100 40 GBbatch 386batch 389batch 5523
A100 / H100 80 GBbatch 776batch 779batch 11052
H200 141 GBbatch 1371batch 1374batch 19483

Training: 1024 tokens per sample (2048, or the model's context when shorter), AdamW with bf16 autocast, SDPA attention (no score matrix stored), 1.15x headroom on every card. Full fine-tune holds weights, gradients and optimizer state (1.2 x 16 bytes per parameter) plus activations. LoRA is r=16 on every linear layer but the head, base frozen in bf16 (2 bytes per parameter), adapters at full AdamW state, same activations. A two-card split is a contiguous layer cut (pipeline parallel), computed only where one card cannot hold batch 1. Serving: bf16 weights plus the KV cache of 1024 tokens per sequence; prefill working set, CUDA context and framework reserve not counted.

These are estimates from the graph, not measurements. Against measured runs, held out by architecture, the estimate flagged 113 of the 131 jobs that did not fit their card and said "fits" on the other 18. Every measured run.

Structure

28 nodes. Output shapes are propagated from the input shape, batch dimension excluded, at 1024 tokens: the config's maximum context.

LayerTypeOutput shape
1InputInput1 × 1024
2EmbeddingEmbedding1 × 1024 × 256
3Positional_EmbeddingLearned Pos Embed1 × 1024 × 256
4Attention_1Multi-Head Attention1 × 1024 × 256
5Add_1Add1 × 1024 × 256
6LayerNorm_1_1LayerNorm1 × 1024 × 256
7FFN_1Feed Forward1 × 1024 × 256
8Attention_2Multi-Head Attention1 × 1024 × 256
9Add_2Add1 × 1024 × 256
10LayerNorm_2_1LayerNorm1 × 1024 × 256
11FFN_2Feed Forward1 × 1024 × 256
12Attention_3Multi-Head Attention1 × 1024 × 256
13Add_3Add1 × 1024 × 256
14LayerNorm_3_1LayerNorm1 × 1024 × 256
15FFN_3Feed Forward1 × 1024 × 256
16Attention_4Multi-Head Attention1 × 1024 × 256
17Add_4Add1 × 1024 × 256
18LayerNorm_4_1LayerNorm1 × 1024 × 256
19FFN_4Feed Forward1 × 1024 × 256
20Attention_5Multi-Head Attention1 × 1024 × 256
21Add_5Add1 × 1024 × 256
22LayerNorm_5_1LayerNorm1 × 1024 × 256
23FFN_5Feed Forward1 × 1024 × 256
24Attention_6Multi-Head Attention1 × 1024 × 256
25Add_6Add1 × 1024 × 256
26LayerNorm_6_1LayerNorm1 × 1024 × 256
27FFN_6Feed Forward1 × 1024 × 256
28OutputOutput1 × 1024 × 256

What the verifier says

No finding on the reconstructed graph. See the checks.

What changed upstream

The change tracker follows microsoft/table-transformer-structure-recognition: every revision it has read, what changed in the config, tokenizer, chat template or weights between them, and an OSV advisory per change.

Do this to your own model

Same numbers, on a model in your repo, in one command. No account.

pip install neurarch-trace
neurarch-trace microsoft/table-transformer-structure-recognition --plan --share