From 01b892b96a2e6b54ae28a8b1cf80651c405d2f3f Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 20 Dec 2022 12:36:12 -0500 Subject: [PATCH] Update notes --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 4b0cd57..07f0373 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,22 @@ docker-compose up -d --build > The models are stored inside the container under `/home/libretranslate/.local/share` and `/home/libretranslate/.local/cache`. Feel free to use volumes if you do not want to redownload the models when the container is destroyed. To update the models, use the `--update-models` argument. +### Update + +#### Software + +If you installed with pip: + +`pip install -U libretranslate` + +If you're using docker: + +`docker pull libretranslate/libretranslate` + +#### Language Models + +Start the program with the `--update-models` argument. For example: `libretranslate --update-models` or `./run.sh --update-models`. + ### CUDA You can use hardware acceleration to speed up translations on a GPU machine with CUDA 11.2 and [nvidia-docker](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) installed.