I have made some changes with OpenNMT-tf, such as removing some classes and methods, changing package names, and refining some methods.
In order to convert the model trained with new codes into ctranslate2 format, I modified class ctranslate2.converters.OpenNMTTFConverterV2 by changing openmt into my own package, and finally I converted my model into ctranslate2 format. In this process, no error occured, and model.bin together with two vocab files are produced.
But when I loaded ctranslate2 model with ctranslate2.Translator, the following error occured:
Blockquote
File “D:\kidden\mt\open\github\mt-core\yimt\api\translator.py”, line 278, in init
self.translator = ctranslate2.Translator(
RuntimeError: CUDA failed with error out of memory
Is there some information about package names in the converted ctranslate2 model?
I just wanted to load ctranslate2 model using ctranslate2.Translator class, and during loading the error occurred.
I don’t read the cpp source codes of ctranslate2, and guess that there is some information about package names in the converted ctranslate2 model or model loading, because I changed some package names in OpenNMT-tf and ctranslate2.converters.OpenNMTTFConverterV2 class and the model was converted correctly.