JordiBayarri commited on
Commit
d4309e7
1 Parent(s): da51463

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -161,7 +161,7 @@ prompt = pipeline.tokenizer.apply_chat_template(
161
 
162
  terminators = [
163
  pipeline.tokenizer.eos_token_id,
164
- pipeline.tokenizer.convert_tokens_to_ids("<|eot_id|>")
165
  ]
166
 
167
  outputs = pipeline(
@@ -169,8 +169,10 @@ outputs = pipeline(
169
  max_new_tokens=256,
170
  eos_token_id=terminators,
171
  do_sample=True,
172
- temperature=0.6,
173
- top_p=0.9,
 
 
174
  )
175
  print(outputs[0]["generated_text"][len(prompt):])
176
  ```
 
161
 
162
  terminators = [
163
  pipeline.tokenizer.eos_token_id,
164
+ pipeline.tokenizer.convert_tokens_to_ids("<|im_end|>")
165
  ]
166
 
167
  outputs = pipeline(
 
169
  max_new_tokens=256,
170
  eos_token_id=terminators,
171
  do_sample=True,
172
+ temperature=0.7,
173
+ top_p=0.8,
174
+ top_k=20,
175
+ repetition_penalty=1.05
176
  )
177
  print(outputs[0]["generated_text"][len(prompt):])
178
  ```