eisai/libretranslate

By eisai

Updated over 2 years ago

LibreTranslate for Windows containers with CUDA support

Image
Languages & frameworks
0

195

eisai/libretranslate repository overview

LibreTranslate for Windows containers with CUDA support.
(CUDA API level 11.8)

Using mcr.microsoft.com/windows/server:ltsc2022 as the base image, so it's quite big.

Only Windows build version 20348 or newer are supported (Win11, Server2022)
Hyper-V or CUDA toolkits are not required

Preparation

Create the following folders, because docker will not automatically create folders for mount on Windows.

LibreTranslate
├───models
└───docker-compose.yaml

Docker Compose

version: "3.8"

networks:
  LibreTranslate:

services:
  libretranslate:
    container_name: libretranslate
    image: eisai/libretranslate
    isolation: process
    networks:
      - LibreTranslate
    cpu_count: 4
    ports:
      - "5000:5000"
    volumes:
      - '.\models:C:\Users\ContainerAdministrator\.local\share\argos-translate\packages'    # storage for language models
    environment:
      - LT_UPDATE_MODELS=true    # Remove this line for offline use
      - LT_HOST=0.0.0.0
      - LT_PORT=5000
# Remove everything below if you dont want to use GPU
      - ARGOS_DEVICE_TYPE=cuda
    devices:
      - class/5B45201D-F2F2-4F3B-85BB-30FF1F953599     # Passing GPU, This GUID is fixed

Reference

LibreTranslate
https://github.com/LibreTranslate/LibreTranslate

Install an ultralight docker engine on Windows
https://eisaichen.com/?p=76

Tag summary

Content type

Image

Digest

sha256:9b9c562ce

Size

6.5 GB

Last updated

over 2 years ago

docker pull eisai/libretranslate