Text Classification
Transformers
Safetensors
internlm2
text-generation
hallucination-detection
custom_code
Instructions to use opencompass/anah-20b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opencompass/anah-20b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="opencompass/anah-20b", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("opencompass/anah-20b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Add missing metadata: `pipeline_tag`, `library_name`, and `license`
Browse filesThis PR adds the missing `pipeline_tag`, `library_name`, and `license` to the model card metadata. The `pipeline_tag` is set to `text-classification`, which reflects the model's function of classifying text segments as hallucinations or not. The license is retrieved from the Github page. This improved metadata enhances the model's discoverability and provides essential information for users.
README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# ANAH: Analytical Annotation of Hallucinations in Large Language Models
|
| 2 |
|
| 3 |
[](https://arxiv.org/abs/2405.20315)
|
|
@@ -14,8 +23,12 @@ You have to follow the prompt in [our paper](https://arxiv.org/abs/2405.20315) t
|
|
| 14 |
The models follow the conversation format of InternLM2-chat, with the template protocol as:
|
| 15 |
|
| 16 |
```python
|
| 17 |
-
dict(role='user', begin='<|im_start|>user
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
```
|
| 20 |
|
| 21 |
## 🖊️ Citation
|
|
@@ -28,4 +41,4 @@ If you find this project useful in your research, please consider citing:
|
|
| 28 |
journal={arXiv preprint arXiv:2405.20315},
|
| 29 |
year={2024}
|
| 30 |
}
|
| 31 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: text-classification
|
| 5 |
+
tags:
|
| 6 |
+
- hallucination-detection
|
| 7 |
+
- text-classification
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
# ANAH: Analytical Annotation of Hallucinations in Large Language Models
|
| 11 |
|
| 12 |
[](https://arxiv.org/abs/2405.20315)
|
|
|
|
| 23 |
The models follow the conversation format of InternLM2-chat, with the template protocol as:
|
| 24 |
|
| 25 |
```python
|
| 26 |
+
dict(role='user', begin='<|im_start|>user
|
| 27 |
+
', end='<|im_end|>
|
| 28 |
+
'),
|
| 29 |
+
dict(role='assistant', begin='<|im_start|>assistant
|
| 30 |
+
', end='<|im_end|>
|
| 31 |
+
'),
|
| 32 |
```
|
| 33 |
|
| 34 |
## 🖊️ Citation
|
|
|
|
| 41 |
journal={arXiv preprint arXiv:2405.20315},
|
| 42 |
year={2024}
|
| 43 |
}
|
| 44 |
+
```
|