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):

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

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for redcastleproducts/crosslabel

Finetuned
(37)
this model