Skip to content

how to make (slow) translation faster? #47

Answered by xhluca
banyous asked this question in Q&A
Discussion options

You must be logged in to vote

A few advice on speeding up:

  • Use a GPU when it's available, otherwise use as many CPU cores as possible
  • Try to batch the same languages together (in your case, the arabic sentences can be passed as a single list to mt.translate), since the translation processes in batches
  • Try to use mbart50 and see if it might be faster/slower
  • If you have a very long sequence, you can try to break it down into multiple sentences

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xhluca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #39 on January 13, 2022 17:41.