Closed KickItLikeShika closed 10 months ago
yep, this happens in many models too. right now i am facing the same issue with hebrew to english translation and have also raised the issue here in this repo. if u happen to find a way that works out then do update in this thread. and i also faced the issue of slow translation. i wonder how the time taken for translation is for you?
@mo-shahab yeah i solved the problem, it's mainly a problem in the sampling/decoding, the default sampling approach to all of the models is mainly greedy search, this article is very helpful and will help you learn more on how to sample/decode your generated text https://huggingface.co/blog/how-to-generate
I was wondering if anyone has seen some hallucinations from![Screenshot 2023-08-28 at 7 58 16 PM](https://github.com/Helsinki-NLP/Opus-MT/assets/54319724/98b67928-f279-4834-9f65-a10e904397ac)
Helsinki-NLP/opus-mt-fr-en
? The model's performance in most of the cases is quite decent, but i might see some strange translations and repeated words at some pointstranslate method:
UPDATE: I have noticed the same problem with other models too.