Update modeling_prot2text.py
Browse files- 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=
|
331 |
-
no_repeat_ngram_size=
|
332 |
-
early_stopping=
|
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)
|