Instructions to use EvidenceGuard-Experiments/evidenceguard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use EvidenceGuard-Experiments/evidenceguard with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Model card: name EvidenceGuard
Browse files
README.md
CHANGED
|
@@ -14,9 +14,9 @@ tags:
|
|
| 14 |
- consistency
|
| 15 |
---
|
| 16 |
|
| 17 |
-
# EvidenceGuard
|
| 18 |
|
| 19 |
-
A LoRA adapter
|
| 20 |
strictly from a supplied context, and says "insufficient information" when the context does not decide the answer.
|
| 21 |
|
| 22 |
It was trained on EvidenceGuard decision groups. Each group is a base question plus controlled variants: paraphrases,
|
|
@@ -49,7 +49,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 49 |
base = "Qwen/Qwen3.8-27B"
|
| 50 |
tok = AutoTokenizer.from_pretrained(base)
|
| 51 |
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16, device_map="auto")
|
| 52 |
-
model = PeftModel.from_pretrained(model, "EvidenceGuard-Experiments/evidenceguard
|
| 53 |
|
| 54 |
SYSTEM = ("You answer multiple-choice questions strictly from the given context. If the context does not contain "
|
| 55 |
"enough information to decide, choose the option that says so when one is offered. Reply with the letter only.")
|
|
|
|
| 14 |
- consistency
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# EvidenceGuard
|
| 18 |
|
| 19 |
+
A model (LoRA adapter on [Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B)) that answers multiple-choice questions
|
| 20 |
strictly from a supplied context, and says "insufficient information" when the context does not decide the answer.
|
| 21 |
|
| 22 |
It was trained on EvidenceGuard decision groups. Each group is a base question plus controlled variants: paraphrases,
|
|
|
|
| 49 |
base = "Qwen/Qwen3.8-27B"
|
| 50 |
tok = AutoTokenizer.from_pretrained(base)
|
| 51 |
model = AutoModelForCausalLM.from_pretrained(base, torch_dtype=torch.bfloat16, device_map="auto")
|
| 52 |
+
model = PeftModel.from_pretrained(model, "EvidenceGuard-Experiments/evidenceguard").eval()
|
| 53 |
|
| 54 |
SYSTEM = ("You answer multiple-choice questions strictly from the given context. If the context does not contain "
|
| 55 |
"enough information to decide, choose the option that says so when one is offered. Reply with the letter only.")
|