MetalTranslate icon indicating copy to clipboard operation
MetalTranslate copied to clipboard

Error with translate-en_zh-1_9.argosmodel

Open xinliu9451 opened this issue 11 months ago • 6 comments

terminate called after throwing an instance of 'std::runtime_error' what(): Unsupported model binary version. This executable supports models with binary version v5 or below, but the model has binary version v6. This usually means that the model was generated by a later version of CTranslate2. (Forward compatibility is not guaranteed.)

translate-en_zh-1_9.argosmodel from http://data.argosopentech.com/argospm/v1/translate-en_zh-1_9.argosmodel Is there a solution to this problem?

xinliu9451 avatar Jan 16 '25 07:01 xinliu9451

You need a newer version of Argos Translate and CTranslate2. CTranslate2 models aren't forward compatible

PJ-Finlay avatar Jan 16 '25 21:01 PJ-Finlay

You need a newer version of Argos Translate and CTranslate2. CTranslate2 models aren't forward compatible

My CTranslate2 has been upgraded to v2.24.0, but it still reports errors. If I continue to upgrade to the latest version, it reports an error saying that the include/ctranslate2/translator_pool.h file is missing. What are some other solutions to this problem?

xinliu9451 avatar Jan 17 '25 02:01 xinliu9451

I also encountered the same problem

Niche180 avatar Feb 17 '25 08:02 Niche180

I upgraded CTranslate2 to v4.4.0, and the CHANGELOG.md said the change are "* Rename or remove some classes and methods:

  • TranslationStats -> ExecutionStats
  • GeneratorPool -> Generator
  • TranslatorPool -> Translator
  • TranslatorPool::consume_* -> Translator::translate_*
  • TranslatorPool::consume_stream -> removed
  • TranslatorPool::score_stream -> removed"

buptmengjj avatar Mar 04 '25 02:03 buptmengjj

I think the en_zh 1.9 model was ported from Opus-MT using LibreTranslate/Locomotive and ctranslate2==3.20.0. I think we need a version of CTranslate2 newer than that for it to work.

I think the best solution is to update the CTranslate2 git submodule in third_party but I'm open to suggestions.

argosopentech avatar Mar 04 '25 23:03 argosopentech

translate-en_zh-1_9.argosmodel from http://data.argosopentech.com/argospm/v1/translate-en_zh-1_9.argosmodel

Also are you guys using the Argos Translate models in MetalTranslate? That's awesome. If you have notes/docs feel free to make a pull request and I can merge them. Or fork the repo and I can link to the fork from the README.

argosopentech avatar Mar 04 '25 23:03 argosopentech