aumento de velocidad y cambios en el tema de noticias relacionadas
This commit is contained in:
parent
3eca832c1a
commit
95adc07f37
9 changed files with 275 additions and 97 deletions
|
|
@ -304,7 +304,7 @@ def _translate_texts(src, tgt, texts, beams, max_new_tokens):
|
|||
target_prefix=target_prefix,
|
||||
beam_size=beams,
|
||||
max_decoding_length=max_new,
|
||||
repetition_penalty=1.1,
|
||||
repetition_penalty=1.2,
|
||||
no_repeat_ngram_size=4,
|
||||
)
|
||||
dt = time.time() - start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue