Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Docker Container #69

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ m4t_predict <input_text> t2tt <tgt_lang> --src_lang <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.
Expand Down
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t seamlessm4t:latest .
14 changes: 14 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -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