Instructions to use prithivMLmods/TESS-QwenRe-Fact-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/TESS-QwenRe-Fact-0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/TESS-QwenRe-Fact-0.5B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/TESS-QwenRe-Fact-0.5B") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/TESS-QwenRe-Fact-0.5B", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use prithivMLmods/TESS-QwenRe-Fact-0.5B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/TESS-QwenRe-Fact-0.5B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/TESS-QwenRe-Fact-0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/TESS-QwenRe-Fact-0.5B
- SGLang
How to use prithivMLmods/TESS-QwenRe-Fact-0.5B 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 "prithivMLmods/TESS-QwenRe-Fact-0.5B" \ --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": "prithivMLmods/TESS-QwenRe-Fact-0.5B", "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 "prithivMLmods/TESS-QwenRe-Fact-0.5B" \ --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": "prithivMLmods/TESS-QwenRe-Fact-0.5B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/TESS-QwenRe-Fact-0.5B with Docker Model Runner:
docker model run hf.co/prithivMLmods/TESS-QwenRe-Fact-0.5B
TESS-QwenRe-Fact-0.5B
TESS-QwenRe-Fact-0.5B is a compact fact-checking and short reasoning model built upon Qwen2.5 0.5B. Designed for rapid response, real-world fact verification, and concise logical reasoning, this lightweight model is ideal for digital assistants, quick-response tools, and misinformation detection systems in English and Chinese.
Key Features
Fact Verification & Correction
Trained to analyze factual accuracy in statements and offer corrected or clarified responses, making it ideal for real-time verification tasks and misinformation mitigation.Concise Reasoning
Specializes in short-form reasoning, capable of analyzing and explaining claims, decisions, or statements in just a few logical steps — perfect for Q&A bots and assistant systems.Multilingual Support (EN + ZH)
Supports fact-checking tasks in both English and Simplified Chinese, enhancing accessibility for bilingual or regional use cases.Built on Qwen2.5 0.5B
Combines the latest architectural improvements from Qwen2.5 with a small parameter footprint (0.5B), optimized for speed, efficiency, and edge-device compatibility.Prompt-Friendly Output
Responds well to well-structured queries, returning clean, interpretable answers — especially for true/false classification, source-based fact validation, and yes/no reasoning.
Quickstart with Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "prithivMLmods/TESS-QwenRe-Fact-0.5B"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Is the capital of Australia Sydney? Explain briefly."
messages = [
{"role": "system", "content": "You are a concise and accurate fact-checking assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=256
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
Intended Use
- Fact-Checking Assistants: Quickly verify factual claims in conversation or content.
- Digital Truth Detectors: Misinformation and rumor detection in social feeds or news summaries.
- Micro-Reasoning Bots: Smart agents for short-form logic and rationale generation.
- Multilingual Knowledge Tools: Fact reasoning in EN/ZH, ideal for diverse platforms.
Limitations
Limited Depth
Focused on short-form reasoning — may not perform well on multi-step or abstract logic tasks.Compact Model Scale
At 0.5B parameters, it prioritizes efficiency over complexity — best for straightforward fact-based tasks.Language & Topic Bias
Inherits limitations and biases from its base model Qwen2.5 0.5B. Use carefully in sensitive contexts.Prompt Clarity Required
Structured prompts result in higher factual accuracy and shorter response latency.
- Downloads last month
- 10
