From 9fde1f8a4e6cf3dec2fc64195a2129b68355affb Mon Sep 17 00:00:00 2001 From: TheDuffman85 Date: Thu, 24 Aug 2023 11:21:00 +0200 Subject: [PATCH 1/2] Added Docker --- build.bat | 1 + dockerfile | 14 ++++++++++++++ run.bat | 1 + 3 files changed, 16 insertions(+) create mode 100644 build.bat create mode 100644 dockerfile create mode 100644 run.bat diff --git a/build.bat b/build.bat new file mode 100644 index 00000000..afc63650 --- /dev/null +++ b/build.bat @@ -0,0 +1 @@ +docker build -t seamlessm4t:latest . \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 00000000..ffb8cff4 --- /dev/null +++ b/dockerfile @@ -0,0 +1,14 @@ +FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime + +# Install base utilities +RUN apt-get update \ + && apt-get install -y build-essential \ + && apt-get install -y wget \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app +COPY . . + +RUN pip install . \ + && conda install -y -c conda-forge libsndfile \ No newline at end of file diff --git a/run.bat b/run.bat new file mode 100644 index 00000000..aad2b322 --- /dev/null +++ b/run.bat @@ -0,0 +1 @@ +docker run --privileged --gpus all -it -v %cd%/checkpoints:/root/.cache/torch/hub seamlessm4t:latest m4t_predict "This is a very nice and simple test!" t2tt deu --src_lang eng \ No newline at end of file From 1083d50f3e11436ed38fa0301a0deda69a8d64a6 Mon Sep 17 00:00:00 2001 From: TheDuffman85 Date: Thu, 24 Aug 2023 11:26:21 +0200 Subject: [PATCH 2/2] Added information how to run docker container --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 4e6fecee..894e2e34 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,21 @@ m4t_predict t2tt --src_lang Please refer to the [inference README](scripts/m4t/predict) for detailed instruction on how to run inference. +## Docker + +Here’s how you run Seamless Communication on Docker for Windows + +Build: +```cmd +.\build.bat +``` +Running inference: +```bash +.\run.bat +``` + +Please refer to the [inference README](scripts/m4t/predict) for detailed instruction on how to run inference. + # Libraries Seamless Communication depends on 3 libraries developed by Meta.