RedCastle Crosslabel (Phase 1)
RedCastle Crosslabel is a free, open, CPU-ready token-level hallucination detector that highlights character spans in an answer not supported by the given sources.
This repository hosts the two Phase 1 model checkpoints (Apache-2.0, built on jhu-clsp/ettin-encoder-400m):
general/— questions (QA), data-to-text (Data2txt), and the default for unknown tasks. See general-model-card.md.summary/— summaries (Summary). See summary-model-card.md.
Code, CLI, Python package, install guide, and SHA-256 hashes (MANIFEST.md) live on GitHub: github.com/redcastleproducts/crosslabel.
Official RAGTruth scores
Measured once on the official RAGTruth test set (2,700 answers), NVIDIA A100 fp16, using the same example-level and character-span F1 protocol published by LettuceDetect:
| Example-level hallucinated F1 | Character-span F1 | |
|---|---|---|
| RedCastle Crosslabel | 78.76 | 59.24 |
| LettuceDetect-large (published) | 79.22 | 58.93 |
We do not redistribute RAGTruth texts.
Download and quick start
git clone https://github.com/redcastleproducts/crosslabel.git
cd crosslabel
python -m venv .venv
source .venv/bin/activate
pip install -e ".[detect]"
hf download redcastleproducts/crosslabel --local-dir checkpoints
Then run:
crosslabel detect examples/detect-qa.json --task-type QA
Each checkpoint is ~1.48 GB (model.safetensors, config.json, tokenizer.json, tokenizer_config.json). Inference runs on CPU by default (4,096-token max length, 0.30 default threshold).
Limits
- Not a fact-checker: compares the answer only against the supplied sources.
- Checks close textual grounding, not arithmetic or multi-step inference.
- Not token-perfect: spans can include a few neighboring supported words or borderline hits near the 0.30 threshold.
- Do not use as the sole check for medical, legal, financial, or other safety-critical work.
License and credit
- Code and checkpoints: Apache License 2.0 (Copyright 2026 Red Castle).
- Backbone: jhu-clsp/ettin-encoder-400m (MIT).
- Method: LettuceDetect (Kovács & Recski, 2025, MIT).
- Benchmark: RAGTruth (Niu et al., ACL 2024, repo MIT).
Model tree for redcastleproducts/crosslabel
Base model
jhu-clsp/ettin-encoder-400m