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
|
|
@ -109,7 +109,7 @@ def get_pending_news(limit: int = BATCH_SIZE) -> List[Dict[str, Any]]:
|
|||
SELECT
|
||||
t.id as traduccion_id,
|
||||
t.noticia_id,
|
||||
t.lang_to as lang,
|
||||
TRIM(t.lang_to) as lang,
|
||||
t.titulo_trad as titulo,
|
||||
t.resumen_trad as resumen,
|
||||
n.url,
|
||||
|
|
|
|||
|
|
@ -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