Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,3 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-nc-4.0
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
datasets:
|
| 6 |
-
- Universal-NER/Pile-NER-type
|
| 7 |
-
---
|
| 8 |
-
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
|
| 12 |
# UniNER-7B-all
|
| 13 |
|
| 14 |
**Description**: This model is self fine-tuned from [TinyLLama](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T). It is trained on ChatGPT-generated [Pile-NER-type data](https://huggingface.co/datasets/Universal-NER/Pile-NER-type).
|
|
@@ -16,16 +5,15 @@ datasets:
|
|
| 16 |
Check our [paper](https://arxiv.org/abs/2308.03279) for more information.
|
| 17 |
|
| 18 |
## Inference
|
|
|
|
| 19 |
# Install transformers from source - only needed for versions <= v4.34
|
| 20 |
# pip install git+https://github.com/huggingface/transformers.git
|
| 21 |
# pip install accelerate
|
| 22 |
-
|
| 23 |
import torch
|
| 24 |
from transformers import pipeline
|
| 25 |
|
| 26 |
pipe = pipeline("text-generation", model="/media/4TB_1/minhtt/Documents/test/axolotl/lora-out/merged",
|
| 27 |
torch_dtype=torch.bfloat16, device_map="auto")
|
| 28 |
-
# We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
|
| 29 |
messages = [
|
| 30 |
{
|
| 31 |
"role": "system",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# UniNER-7B-all
|
| 2 |
|
| 3 |
**Description**: This model is self fine-tuned from [TinyLLama](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T). It is trained on ChatGPT-generated [Pile-NER-type data](https://huggingface.co/datasets/Universal-NER/Pile-NER-type).
|
|
|
|
| 5 |
Check our [paper](https://arxiv.org/abs/2308.03279) for more information.
|
| 6 |
|
| 7 |
## Inference
|
| 8 |
+
```python
|
| 9 |
# Install transformers from source - only needed for versions <= v4.34
|
| 10 |
# pip install git+https://github.com/huggingface/transformers.git
|
| 11 |
# pip install accelerate
|
|
|
|
| 12 |
import torch
|
| 13 |
from transformers import pipeline
|
| 14 |
|
| 15 |
pipe = pipeline("text-generation", model="/media/4TB_1/minhtt/Documents/test/axolotl/lora-out/merged",
|
| 16 |
torch_dtype=torch.bfloat16, device_map="auto")
|
|
|
|
| 17 |
messages = [
|
| 18 |
{
|
| 19 |
"role": "system",
|