Docker instance with custom models

Hi folks!

I want to run an docker instance without installing ALL the models. I only need to translate from English to Spanish and I don’t want to install ALL models.

Is there a way to do this? Thanks!

Yes!

docker run -ti --rm -p 5000:5000 libretranslate/libretranslate --load-only en,es

Other options: https://github.com/LibreTranslate/LibreTranslate#arguments

2 Likes