Views
No views yet
| Model | Size | Avg | CNN | XSum | MediaS | MeetB | WiCE | REVEAL | Claim Verify | Fact Check | Expert QA | LFQA | RAG Truth |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3-8B (non-thinking) | 8B | 73.17 | 66.30 | 71.25 | 69.05 | 77.50 | 76.16 | 84.81 | 67.71 | 77.39 | 57.14 | 80.62 | 76.91 |
| Veritas-8B-Fact-Checker-Non-Thinking-1.0 | 8B | 75.47 | 68.84 | 74.33 | 71.83 | 76.44 | 79.06 | 86.94 | 72.40 | 76.75 | 58.12 | 84.14 | 81.30 |
pip install "minicheck[llm] @ git+https://github.com/Liyan06/MiniCheck.git@main"1from minicheck.minicheck import MiniCheck
2import os
3os.environ["CUDA_VISIBLE_DEVICES"] = "0"
4
5doc = "A group of students gather in the school library to study for their upcoming final exams."
6claim_1 = "The students are preparing for an examination."
7claim_2 = "The students are on vacation."
8
9chat_kwargs = {'enable_thinking': False}
10
11scorer = MiniCheck(model_name='resect-ai/veritas-8B-fact-checker-non-thinking-1.0', enable_prefix_caching=False, extra_chat_template_kwargs=chat_kwargs, operating_mode="bespoke", max_new_tokens=1, cache_dir='./ckpts', bypass_model_check=True)
12pred_label, raw_prob, _, _ = scorer.score(docs=[doc, doc], claims=[claim_1, claim_2]) # can set `chunk_size=your-specified-value` here, default to 32K chunk size.
13
14print(pred_label) # [1, 0]
15print(raw_prob) # [0.9465315396494047, 0.008577206810662688]1import pandas as pd
2from datasets import load_dataset
3from minicheck.minicheck import MiniCheck
4import os
5os.environ["CUDA_VISIBLE_DEVICES"] = "0"
6
7# load 30K test data
8df = pd.DataFrame(load_dataset("lytang/LLM-AggreFact")['test'])
9docs = df.doc.values
10claims = df.claim.values
11
12chat_kwargs = {'enable_thinking': False}
13
14scorer = MiniCheck(model_name='resect-ai/veritas-8B-fact-checker-non-thinking-1.0', enable_prefix_caching=False, extra_chat_template_kwargs=chat_kwargs, operating_mode="bespoke", max_new_tokens=1, cache_dir='./ckpts', bypass_model_check=True)
15pred_label, raw_prob, _, _ = scorer.score(docs=docs, claims=claims)1from sklearn.metrics import balanced_accuracy_score
2
3df['preds'] = pred_label
4result_df = pd.DataFrame(columns=['Dataset', 'BAcc'])
5for dataset in df.dataset.unique():
6 sub_df = df[df.dataset == dataset]
7 bacc = balanced_accuracy_score(sub_df.label, sub_df.preds) * 100
8 result_df.loc[len(result_df)] = [dataset, bacc]
9
10result_df.loc[len(result_df)] = ['Average', result_df.BAcc.mean()]
11result_df.round(1)