Token Classification
Transformers
ONNX
Safetensors
Transformers.js
English
modernbert
hallucination-detection
groundedness
faithfulness
span-detection
rag
guardrails
agent-forensics
observability
tamarillo
hallucination
rag-evaluation
llm-observability
Instructions to use Tamarillo/groundedness-guard-tiny-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/groundedness-guard-tiny-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Tamarillo/groundedness-guard-tiny-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Tamarillo/groundedness-guard-tiny-en") model = AutoModelForTokenClassification.from_pretrained("Tamarillo/groundedness-guard-tiny-en", device_map="auto") - Transformers.js
How to use Tamarillo/groundedness-guard-tiny-en with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Tamarillo/groundedness-guard-tiny-en'); - Notebooks
- Google Colab
- Kaggle
Document parity-verified Gather-INT8 ONNX (onnx/model_quantized.onnx) and { dtype: 'q8' } usage
Browse files
README.md
CHANGED
|
@@ -275,6 +275,12 @@ Bundled reproducible scripts in this repository:
|
|
| 275 |
|
| 276 |
---
|
| 277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
## Limitations & Candid Comparison
|
| 279 |
|
| 280 |
1. **Multi-step numerical & tabular arithmetic (`FinQA`):** Compact bi-directional encoders do not execute symbolic arithmetic; subtle multi-step calculation errors in dense financial tables (`0.40–0.49` AUC across all tested encoders) require tool/code verification rather than an encoder alone.
|
|
|
|
| 275 |
|
| 276 |
---
|
| 277 |
|
| 278 |
+
|
| 279 |
+
### Gather-INT8 Quantized ONNX (`onnx/model_quantized.onnx` — `67.16 MB`, `1.82x` smaller)
|
| 280 |
+
|
| 281 |
+
- **Verified Parity (`onnx/quantization_check.json`):** `100.0%` prediction agreement vs. FP32 ONNX (mean abs probability diff `0.00119`, max `0.01946`; `26.84 ms` 4-thread CPU p50 @ 256 tokens).
|
| 282 |
+
- **Browser WASM / Node.js (`@huggingface/transformers` v3):** pass `{ dtype: "q8" }` to load `onnx/model_quantized.onnx` automatically.
|
| 283 |
+
|
| 284 |
## Limitations & Candid Comparison
|
| 285 |
|
| 286 |
1. **Multi-step numerical & tabular arithmetic (`FinQA`):** Compact bi-directional encoders do not execute symbolic arithmetic; subtle multi-step calculation errors in dense financial tables (`0.40–0.49` AUC across all tested encoders) require tool/code verification rather than an encoder alone.
|