Text Classification
TensorRT
Core ML
ONNX
Safetensors
OpenVINO
code
multilingual
xlm-roberta
knowledge-graph
relation-extraction
relation-classification
cross-encoder
knowledge-distillation
Instructions to use faxenoff/code-daemon-relation-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use faxenoff/code-daemon-relation-v1 with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
docs: measured throughput + memory footprint
Browse files
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
|