nicholasKluge
commited on
Commit
•
8bcaa9d
1
Parent(s):
af880bb
Update README.md
Browse files
README.md
CHANGED
@@ -15,16 +15,16 @@ tags:
|
|
15 |
- assistant
|
16 |
pipeline_tag: text-generation
|
17 |
widget:
|
18 |
-
- text:
|
19 |
example_title: Greetings
|
20 |
- text: >-
|
21 |
-
|
22 |
example_title: Machine Learning
|
23 |
- text: >-
|
24 |
-
|
25 |
example_title: Ethics
|
26 |
- text: >-
|
27 |
-
|
28 |
example_title: Advise
|
29 |
inference:
|
30 |
parameters:
|
@@ -82,8 +82,9 @@ aira.to(device)
|
|
82 |
|
83 |
question = input("Enter your question: ")
|
84 |
|
85 |
-
|
86 |
-
|
|
|
87 |
|
88 |
responses = aira.generate(**inputs,
|
89 |
do_sample=True,
|
|
|
15 |
- assistant
|
16 |
pipeline_tag: text-generation
|
17 |
widget:
|
18 |
+
- text: What is your name?<|endofinstruction|>
|
19 |
example_title: Greetings
|
20 |
- text: >-
|
21 |
+
Can you explain what is Machine Learning?<|endofinstruction|>
|
22 |
example_title: Machine Learning
|
23 |
- text: >-
|
24 |
+
Do you know anything about virtue ethics?<|endofinstruction|>
|
25 |
example_title: Ethics
|
26 |
- text: >-
|
27 |
+
How can I make my girlfriend happy?<|endofinstruction|>
|
28 |
example_title: Advise
|
29 |
inference:
|
30 |
parameters:
|
|
|
82 |
|
83 |
question = input("Enter your question: ")
|
84 |
|
85 |
+
inputs = tokenizer(tokenizer.bos_token + question + tokenizer.sep_token,
|
86 |
+
add_special_tokens=False,
|
87 |
+
return_tensors="pt").to(device)
|
88 |
|
89 |
responses = aira.generate(**inputs,
|
90 |
do_sample=True,
|