Update README.md
Browse files
README.md
CHANGED
@@ -7,6 +7,10 @@ tags:
|
|
7 |
- trl
|
8 |
- sft
|
9 |
licence: license
|
|
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
# Model Card for results
|
@@ -20,7 +24,7 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
20 |
from transformers import pipeline
|
21 |
|
22 |
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
23 |
-
generator = pipeline("text-generation", model="gljj/
|
24 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
25 |
print(output["generated_text"])
|
26 |
```
|
|
|
7 |
- trl
|
8 |
- sft
|
9 |
licence: license
|
10 |
+
datasets:
|
11 |
+
- Oliverluyu/Singapore-fake-news-clarification-llama2
|
12 |
+
language:
|
13 |
+
- en
|
14 |
---
|
15 |
|
16 |
# Model Card for results
|
|
|
24 |
from transformers import pipeline
|
25 |
|
26 |
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
27 |
+
generator = pipeline("text-generation", model="gljj/llama-2-7b-chat-Singapore-fake-news-SFT", device="cuda")
|
28 |
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
29 |
print(output["generated_text"])
|
30 |
```
|