Skip to content

Commit

Permalink
Fixed code boxes in README
Browse files Browse the repository at this point in the history
  • Loading branch information
lefterav authored May 12, 2021
1 parent 9bfe5a9 commit 62e8f1b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ The dockers do not contain any trained models. Additionally the users are recomm

Compiled dockers are uploaded in docker hub, so they can be pulled with

``` docker pull lefterav/marian-nmt:1.10.0_sentencepiece_cuda-11.3.0
```
docker pull lefterav/marian-nmt:1.10.0_sentencepiece_cuda-11.3.0
```

## Starting the container ##

After pulling the docker, it can be started with the following command (replace <username> with your linux account username).

``` docker run -v /home/<username>:/home/<username> -e HOME=/home/<username> -it lefterav/marian-nmt:1.10.0_sentencepiece_cuda-11.3.0
```
docker run -v /home/<username>:/home/<username> -e HOME=/home/<username> -it lefterav/marian-nmt:1.10.0_sentencepiece_cuda-11.3.0
```

This will provide a commandline which gives you the possibility to run `marian` coomands. Additionally, the `-v` parameter, makes the user folders accessible to the docker, so that the results of the experiments can be saved (otherwise they would be lost when the docker is unloaded).
Expand All @@ -31,7 +33,8 @@ In some server installations, the administrators suggest not using the home fold

The Marian command is compiled at `/marian/build/marian`. You can test if marian works by running

```/marian/build/marian --help
```
/marian/build/marian --help
```

By starting the Marian container, the commandline is already directed in the `experiments` directory of Marian. In the subdirectories one can run the bash scripts in order to perform the experiments. It is suggested to msave the data and the models to a mounted folder
Expand All @@ -52,7 +55,8 @@ You can exit the container by hitting Ctrl+D or typing `exit`

We provide different dockerfiles for different versions of Ubuntu and CUDA, and these can be found in the `/dockerfiles` subdirectory. The dockers can be compiled with the following command:

``` docker build --tag <username>/marian-nmt:1.10.0_sentencepiece_cuda-11.3.0 - < dockerfiles/marian_1.10.0_sentencepiece_cuda_11.3.0.Dockerfile
```
docker build --tag <username>/marian-nmt:1.10.0_sentencepiece_cuda-11.3.0 - < dockerfiles/marian_1.10.0_sentencepiece_cuda_11.3.0.Dockerfile
```

This gives the possibility to produce one containers with modified setup
Expand Down

0 comments on commit 62e8f1b

Please sign in to comment.