habdine commited on
Commit
87dcc4e
1 Parent(s): 64c05f4

Update modeling_prot2text.py

Browse files
Files changed (1) hide show
  1. modeling_prot2text.py +3 -3
modeling_prot2text.py CHANGED
@@ -327,9 +327,9 @@ class Prot2TextModel(PreTrainedModel):
327
  output_scores=False,
328
  return_dict_in_generate=True,
329
  encoder_attention_mask=inputs['attention_mask'],
330
- length_penalty=2.0,
331
- no_repeat_ngram_size=3,
332
- early_stopping=True,
333
  num_beams=1)
334
 
335
  generated = tokenizer.batch_decode(tok_ids.get('sequences'), skip_special_tokens=True)
 
327
  output_scores=False,
328
  return_dict_in_generate=True,
329
  encoder_attention_mask=inputs['attention_mask'],
330
+ length_penalty=1.0,
331
+ no_repeat_ngram_size=None,
332
+ early_stopping=False,
333
  num_beams=1)
334
 
335
  generated = tokenizer.batch_decode(tok_ids.get('sequences'), skip_special_tokens=True)