faxenoff commited on
Commit
57653fb
·
verified ·
1 Parent(s): a2a69e2

docs: measured throughput + memory footprint

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -126,6 +126,22 @@ Four **length buckets** ship — seq 64 / 128 / 256 / 320 at batch 16. Attention
126
  sequence length, so routing short passages to a short engine is worth taking when your pairs vary in
127
  length. Padding is attention-masked, so a pair produces the same logits from any bucket that fits it.
128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  ---
130
 
131
  ## 5. Standalone use
 
126
  sequence length, so routing short passages to a short engine is worth taking when your pairs vary in
127
  length. Padding is attention-masked, so a pair produces the same logits from any bucket that fits it.
128
 
129
+ ### At corpus scale
130
+
131
+ The table above is a per-batch micro-benchmark. Sweeping a real corpus batches far wider, which
132
+ changes what the bottleneck is:
133
+
134
+ | | measured |
135
+ |---|--:|
136
+ | GPU inference, 267 pairs per call at seq 256 | **5.87 ms** → ~45 000 pairs/s |
137
+ | End-to-end incl. tokenisation (12 CPU threads, overlapped) | **~2 500 pairs/s** |
138
+ | Relations written, 3 043 chunks | 15 175 in 15.3 s → **994/s** |
139
+ | Relations written, 4 975 chunks | 31 696 in 45.0 s → **704/s** |
140
+
141
+ Once the engine is batched this wide the GPU is no longer the limit — **tokenisation is**, and it is
142
+ worth giving it real thread count. Measured padding waste at these batch sizes is 18–20%, which is
143
+ what the length buckets are there to keep down.
144
+
145
  ---
146
 
147
  ## 5. Standalone use