App: Local Machine translation 2 (translate2)

The translate2 app is one of the apps that provide machine translation functionality in Nextcloud and act as a translation backend for the :ref:`Nextcloud Assistant app<ai-app-assistant>`. The translate2 app specifically runs only open source models and does so entirely on-premises. Nextcloud can provide customer support upon request, please talk to your account manager for the possibilities.

The app currently supports 400+ languages. See the complete list here: https://huggingface.co/datasets/allenai/MADLAD-400

Requirements

Space usage

  • ~ 2.95 GB for the docker container

  • ~ 2.77 GB for the default model

Installation

  1. Make sure the :ref:`Nextcloud Assistant app<ai-app-assistant>` is installed

  2. :ref:`Install AppAPI and setup a Deploy Demon<ai-app_api>`

  3. Install the "Local Machine Translation" (translate2) ExApp via the "Apps" page in the Nextcloud web admin user interface

Model Switch

  1. Remove hf_model_path key from loader object in the config.json file in the docker container named nc_app_translate2.

  2. Change model_name to the new model name to Nextcloud-AI/madlad400-7b-mt-bt-ct2-int8_float32.

  3. Restart the docker container docker restart nc_app_translate2

App store

You can also find the app in our app store, where you can write a review: https://apps.nextcloud.com/apps/translate2

Repository

You can find the app's code repository on GitHub where you can report bugs and contribute fixes and features: https://github.com/nextcloud/translate2

Nextcloud customers should file bugs directly with our Customer Support.

Ethical AI Rating

Rating: 🟢

Positive: * the software for training and inference of this model is open source * the trained model is freely available, and thus can be run on-premises * the training data is freely available, making it possible to check or correct for bias or optimise the performance and CO2 usage.

Learn more about the Nextcloud Ethical AI Rating in our blog.

Known Limitations