re-add scoring filtering
This commit is contained in:
@@ -471,8 +471,7 @@ class BartModelIntegrationTest(unittest.TestCase):
|
||||
attention_mask=dct["attention_mask"].to(torch_device),
|
||||
num_beams=4,
|
||||
length_penalty=2.0,
|
||||
# max_length=max_length + 2,
|
||||
max_length=max_length + 1,
|
||||
max_length=max_length + 2,
|
||||
min_length=min_length + 1,
|
||||
no_repeat_ngram_size=3,
|
||||
do_sample=False,
|
||||
|
||||
Reference in New Issue
Block a user