ArissBandoss commited on
Commit
885853c
·
verified ·
1 Parent(s): 065813f

Update goai_helpers/goai_traduction.py

Browse files
Files changed (1) hide show
  1. goai_helpers/goai_traduction.py +1 -0
goai_helpers/goai_traduction.py CHANGED
@@ -42,6 +42,7 @@ def goai_traduction(text, src_lang, tgt_lang):
42
  max_new_tokens=1024,
43
  min_length=10,
44
  length_penalty=1.0,
 
45
  no_repeat_ngram_size=0 # Désactive la pénalité pour les répétitions
46
  )
47
 
 
42
  max_new_tokens=1024,
43
  min_length=10,
44
  length_penalty=1.0,
45
+ early_stopping=False,
46
  no_repeat_ngram_size=0 # Désactive la pénalité pour les répétitions
47
  )
48