nicholasKluge commited on
Commit
8bcaa9d
1 Parent(s): af880bb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -6
README.md CHANGED
@@ -15,16 +15,16 @@ 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 Learning?<|endofinstruction|>
22
  example_title: Machine Learning
23
  - text: >-
24
- <|startofinstruction|>Do you know anything about virtue ethics?<|endofinstruction|>
25
  example_title: Ethics
26
  - text: >-
27
- <|startofinstruction|>How can I make my girlfriend happy?<|endofinstruction|>
28
  example_title: Advise
29
  inference:
30
  parameters:
@@ -82,8 +82,9 @@ aira.to(device)
82
 
83
  question = input("Enter your question: ")
84
 
85
- # OPT tokenizer already adds the BOS token, so we do not need to add it manually
86
- inputs = tokenizer(question + tokenizer.sep_token, return_tensors="pt").to(device)
 
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,