Closed Zenglinxiao closed 2 years ago
Hi,
Thank you for reporting and locating the issue. This is indeed a bug introduced by the PR you referenced.
I will look how to best fix this issue.
Thanks for the fix! Having verified with some examples, it can reproduce the same result as pre 2.15. Any chance for a patch release including this fix?
There will be a new version by the end of the week.
Hi @guillaumekln, I recently encountered an issue after upgrading ctranslate2 to the latest version. The beam search with prefix bias no long work with
--disable_unk
. After some debugging and testing, I can confirm this bug comes from release 2.15.0, maybe specifically from #764.To Reproduce
Take fairseq en-de WMT16 model and convert it to ctranslate2 format based on the doc here
Before the 2.15.0 release(tested with 2.14.0):
From 2.15.0 onwards(validated with 2.15.0 and 2.21.1)
As you can see, once
disable_unk
is enabled, prefix bias decodingprefix_bias_beta
providingtarget_prefix
no longer works properly after 2.15.0, while it worked perfectly with 2.14.0.Any idea?