Instructions to use resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0") model = AutoModelForCausalLM.from_pretrained("resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0
- SGLang
How to use resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0 with Docker Model Runner:
docker model run hf.co/resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0
About Resect Research Labs
- Resect Research Labs focuses on improving factual grounding as well as detecting, reducing, and mitigating hallucinations in AI models through proprietary reinforcement learning and novel fine-tuning techniques.
Introducing: Veritas-0.6B-Fact-Checker-Non-Thinking-1.0
- Veritas-0.6B-Fact-Checker-Non-Thinking-1.0 is built on the Qwen3 architecture, starting from (Qwen/Qwen3-0.6B). Resect Research Labs has specialized, finetuned, and optimized this model for fact-checking and factual consistency verification.
Model Performance
- The performance of this model is evaluated on LLM-AggreFact (unseen by this model during training), the benchmark is an aggregation of 11 human annotated datasets on fact-checking and grounding.
Overall Performance
- Veritas-0.6B-Fact-Checker-Non-Thinking-1.0 achieves an average score of 72.30%, an improvement of 7.37% above Qwen3-0.6B in non-thinking mode.
Benchmark Details (LLM-AggreFact)
Balanced Accuracy Scores
| Model | Size | Avg | CNN | XSum | MediaS | MeetB | WiCE | REVEAL | Claim Verify | Fact Check | Expert QA | LFQA | RAG Truth |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3-0.6B (non-thinking) | 0.6B | 64.93 | 57.93 | 66.71 | 57.13 | 62.60 | 67.23 | 86.99 | 59.85 | 72.63 | 56.44 | 70.18 | 56.56 |
| Veritas-0.6B-Fact-Checker-Non-Thinking-1.0 | 0.6B | 72.30 | 65.84 | 66.75 | 68.45 | 73.47 | 73.43 | 83.32 | 71.89 | 73.45 | 58.66 | 82.57 | 77.49 |
The benchmarks noted here for Veritas-0.6B-Fact-Checker-Non-Thinking-1.0 were performed on the test set and a PR has been submitted to Minicheck's Library (Pull Request) to support additional operating modes including this model. Note: Performance may vary slightly depending on hardware configuration and vLLM version
Model Usage
Scope of Use
- Veritas-0.6B-Fact-Checker-Non-Thinking model must only be used strictly for the prescribed scoring mode, which generates a binary classification based on the specified template. Any deviation from this intended use may lead to unexpected outputs.
Using Minicheck's library [^2]
Requires the changes from our Pull Request to be merged, see [^2]
Please run the following command to install the MiniCheck package and all necessary dependencies.
pip install "minicheck[llm] @ git+https://github.com/Liyan06/MiniCheck.git@main"
[^2]: Pull Request to Minicheck's library submitted awaiting review
Below is a simple use case
from minicheck.minicheck import MiniCheck
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
doc = "A group of students gather in the school library to study for their upcoming final exams."
claim_1 = "The students are preparing for an examination."
claim_2 = "The students are on vacation."
chat_kwargs = {'enable_thinking': False}
scorer = MiniCheck(model_name='resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0', enable_prefix_caching=False, extra_chat_template_kwargs=chat_kwargs, operating_mode="bespoke", max_tokens=1, cache_dir='./ckpts', bypass_model_check=True)
pred_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.
print(pred_label) # [1, 0]
print(raw_prob) # [0.9796443054985795, 0.008577403129593576]
Test on LLM-AggreFact Benchmark [^2]
import pandas as pd
from datasets import load_dataset
from minicheck.minicheck import MiniCheck
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
# load 30K test data
df = pd.DataFrame(load_dataset("lytang/LLM-AggreFact")['test'])
docs = df.doc.values
claims = df.claim.values
chat_kwargs = {'enable_thinking': False}
scorer = MiniCheck(model_name='resect-ai/veritas-0.6B-fact-checker-non-thinking-1.0', enable_prefix_caching=False, extra_chat_template_kwargs=chat_kwargs, operating_mode="bespoke", max_tokens=1, cache_dir='./ckpts', bypass_model_check=True)
pred_label, raw_prob, _, _ = scorer.score(docs=docs, claims=claims)
To evaluate the result on the benchmark
from sklearn.metrics import balanced_accuracy_score
df['preds'] = pred_label
result_df = pd.DataFrame(columns=['Dataset', 'BAcc'])
for dataset in df.dataset.unique():
sub_df = df[df.dataset == dataset]
bacc = balanced_accuracy_score(sub_df.label, sub_df.preds) * 100
result_df.loc[len(result_df)] = [dataset, bacc]
result_df.loc[len(result_df)] = ['Average', result_df.BAcc.mean()]
result_df.round(1)
[^2]: Pull Request to Minicheck's library submitted awaiting review
License
- This model Veritas-0.6B-Fact-Checker-Non-Thinking-1.0 is bound by the Apache 2.0 license found at https://choosealicense.com/licenses/apache-2.0. By downloading and using this model you agree to the license terms.
Acknowledgements
Model perfected by Resect Research Labs.
- Downloads last month
- 169