Run this model with HF Jobs
Run ballsak/de-hallucinator on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ballsak/de-hallucinator. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ballsak/de-hallucinator on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ballsak/de-hallucinator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ballsak/de-hallucinator with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ballsak/de-hallucinator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
π‘οΈ De-Hallucinator
An inline token-probability uncertainty guard and semantic fact-checking engine for Small Language Models (SLMs).
De-Hallucinator extends the Hugging Face LogitsProcessor pipeline to intercept text generation token-by-token. The moment an SLM drops an uncertain token below a configured logprob threshold, the generation sequence halts instantly, triggers a quantized NLI cross-encoder factual pass against your grounding context, and forces an immediate End-of-Sentence (EOS) cutoff if the assertion fails.
π Installation
You can install the compiled wheel asset directly from this Hugging Face repository:
pip install [https://huggingface.co/YOUR_HF_USERNAME/YOUR_REPO_NAME/resolve/main/de_hallucinator-0.1.0-py3-none-any.whl](https://huggingface.co/YOUR_HF_USERNAME/YOUR_REPO_NAME/resolve/main/de_hallucinator-0.1.0-py3-none-any.whl)
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ballsak/de-hallucinator", device_map="auto")