nicholasKluge commited on
Commit
9c6137a
1 Parent(s): 588ff9d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -12
README.md CHANGED
@@ -15,19 +15,13 @@ tags:
15
  - assistant
16
  pipeline_tag: text-generation
17
  widget:
18
- - text: <|startofinstruction|>What is your name?<|endofinstruction|>
19
  example_title: Greetings
20
- - text: >-
21
- <|startofinstruction|>Can you explain what is Machine
22
- Learning?<|endofinstruction|>
23
  example_title: Machine Learning
24
- - text: >-
25
- <|startofinstruction|>Do you know anything about virtue
26
- ethics?<|endofinstruction|>
27
  example_title: Ethics
28
- - text: >-
29
- <|startofinstruction|>How can I make my girlfriend
30
- happy?<|endofinstruction|>
31
  example_title: Advise
32
  inference:
33
  parameters:
@@ -85,8 +79,9 @@ aira.to(device)
85
 
86
  question = input("Enter your question: ")
87
 
88
- # OPT tokenizer already adds the BOS token, so we do not need to add it manually
89
- inputs = tokenizer(question + tokenizer.sep_token, return_tensors="pt").to(device)
 
90
 
91
  responses = aira.generate(**inputs,
92
  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: "Can you explain what is Machine Learning?<|endofinstruction|>"
 
 
21
  example_title: Machine Learning
22
+ - text: "Do you know anything about virtue ethics?<|endofinstruction|>"
 
 
23
  example_title: Ethics
24
+ - text: "How can I make my girlfriend happy?<|endofinstruction|>"
 
 
25
  example_title: Advise
26
  inference:
27
  parameters:
 
79
 
80
  question = input("Enter your question: ")
81
 
82
+ inputs = tokenizer(tokenizer.bos_token + question + tokenizer.sep_token,
83
+ add_special_tokens=False,
84
+ return_tensors="pt").to(device)
85
 
86
  responses = aira.generate(**inputs,
87
  do_sample=True,