redcastleproducts commited on
Commit
bf68dec
·
verified ·
1 Parent(s): b4306b6

Add model card README for RedCastle Crosslabel v1

Browse files
Files changed (1) hide show
  1. README.md +62 -0
README.md CHANGED
@@ -1,3 +1,65 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model: jhu-clsp/ettin-encoder-400m
6
+ tags:
7
+ - hallucination-detection
8
+ - token-classification
9
+ - rag
10
  ---
11
+
12
+ # RedCastle Crosslabel (Phase 1)
13
+
14
+ **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.
15
+
16
+ This repository hosts the two Phase 1 model checkpoints (Apache-2.0, built on `jhu-clsp/ettin-encoder-400m`):
17
+
18
+ - **`general/`** — questions (`QA`), data-to-text (`Data2txt`), and the default for unknown tasks. See [general-model-card.md](https://github.com/redcastleproducts/crosslabel/blob/main/docs/general-model-card.md).
19
+ - **`summary/`** — summaries (`Summary`). See [summary-model-card.md](https://github.com/redcastleproducts/crosslabel/blob/main/docs/summary-model-card.md).
20
+
21
+ Code, CLI, Python package, install guide, and SHA-256 hashes (`MANIFEST.md`) live on GitHub: [github.com/redcastleproducts/crosslabel](https://github.com/redcastleproducts/crosslabel).
22
+
23
+ ## Official RAGTruth scores
24
+
25
+ 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:
26
+
27
+ | | Example-level hallucinated F1 | Character-span F1 |
28
+ |---|---:|---:|
29
+ | **RedCastle Crosslabel** | **78.76** | **59.24** |
30
+ | LettuceDetect-large (published) | 79.22 | 58.93 |
31
+
32
+ We do not redistribute RAGTruth texts.
33
+
34
+ ## Download and quick start
35
+
36
+ ```bash
37
+ git clone https://github.com/redcastleproducts/crosslabel.git
38
+ cd crosslabel
39
+ python -m venv .venv
40
+ source .venv/bin/activate
41
+ pip install -e ".[detect]"
42
+ hf download redcastleproducts/crosslabel --local-dir checkpoints
43
+ ```
44
+
45
+ Then run:
46
+
47
+ ```bash
48
+ crosslabel detect examples/detect-qa.json --task-type QA
49
+ ```
50
+
51
+ 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).
52
+
53
+ ## Limits
54
+
55
+ - Not a fact-checker: compares the answer only against the supplied sources.
56
+ - Checks close textual grounding, not arithmetic or multi-step inference.
57
+ - Not token-perfect: spans can include a few neighboring supported words or borderline hits near the 0.30 threshold.
58
+ - Do not use as the sole check for medical, legal, financial, or other safety-critical work.
59
+
60
+ ## License and credit
61
+
62
+ - **Code and checkpoints:** Apache License 2.0 (Copyright 2026 Red Castle).
63
+ - **Backbone:** [jhu-clsp/ettin-encoder-400m](https://huggingface.co/jhu-clsp/ettin-encoder-400m) (MIT).
64
+ - **Method:** [LettuceDetect](https://github.com/KRLabsOrg/LettuceDetect) (Kovács & Recski, 2025, MIT).
65
+ - **Benchmark:** [RAGTruth](https://github.com/ParticleMedia/RAGTruth) (Niu et al., ACL 2024, repo MIT).