Downloads · 30 days
6
12% of all-time downloads
NayanPal/truthtriage-llama2-7b
truthtriage-llama2-7b is a machine learning model from NayanPal. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
TruthTriage is a safety-aligned medical assistant fine-tuned to:
Downloads · 30 days
6
12% of all-time downloads
All-time downloads
51
Public
Repo size
80.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors80 MB · 95%
From the Hugging Face model README
TruthTriage is a safety-aligned medical assistant fine-tuned to:
This model is a LoRA adapter built on top of:
Base Model: unsloth/llama-2-7b-bnb-4bit
Total Examples: 662
This dataset was designed and curated by our team specifically for safety-aligned medical AI fine-tuning.
| Source | Count |
|---|---|
| ChatDoctor (Reformatted & Structured) | 500 |
| Refusal (High-Risk Queries) | 20 |
| Clarification — Ask | 20 |
| Clarification — Answer | 20 |
| Escalation (Emergency Cases) | 20 |
| General Knowledge | 20 |
| Out of Scope | 20 |
| Identity / System Persona | 20 |
| No Source Found | 22 |
| Total | 662 |
The dataset explicitly teaches:
| Situation | Emoji |
|---|---|
| Danger / Disclaimer | 💀 |
| Out of Scope (Light Tone) | 🌚 |
| Serious Cases (Refusal / Clarification / Identity) | None |
from unsloth import FastLanguageModel
# Load base model
model, tokenizer = FastLanguageModel.from_pretrained(
"unsloth/llama-2-7b-bnb-4bit",
load_in_4bit=True,
)
# Load TruthTriage adapter
model.load_adapter("NayanPal/truthtriage-llama2-7b")
# Inference
FastLanguageModel.for_inference(model)
inputs = tokenizer("Can I take Ibuprofen with Warfarin?", return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))