dahara1 commited on
Commit
f5a07de
1 Parent(s): a34415a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -3
README.md CHANGED
@@ -73,9 +73,7 @@ def trans(my_str):
73
 
74
  # Translation
75
  generated_ids = model.generate(input_ids=input_ids,
76
- num_beams=1, max_new_tokens=800,
77
- use_cache=True,
78
- prompt_lookup_num_tokens=10
79
  )
80
  full_outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
81
  return full_outputs[0].split("### Answer:\n")[-1].strip()
 
73
 
74
  # Translation
75
  generated_ids = model.generate(input_ids=input_ids,
76
+ max_new_tokens=800, use_cache=True
 
 
77
  )
78
  full_outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
79
  return full_outputs[0].split("### Answer:\n")[-1].strip()