Skip to content

Commit

Permalink
Revert "Kavya fix docker readme (#82)" (#83)
Browse files Browse the repository at this point in the history
This reverts commit 204a82f.
  • Loading branch information
kavya-anbarasu authored Jun 5, 2024
1 parent 204a82f commit 746d1ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ To illustrate how to leverage the recipes for an end-to-end usecase, lets walk t
The instructions assume that the source code of the cookbook was checked out under `/workspace/cookbook`.
### Build and instantiate docker container
```bash
docker run --privileged -it --gpus '"device=0,1,2,3,4,5,6,7"' -p 8899:8899 \
--mount type=bind,source="$HOME",target="/workspace" \
--mount type=bind,source="/fw/huggingface",target="/root/.cache/huggingface" \
--mount type=bind,source="/fw",target="/fw" \
--mount type=bind,source="/mnt/text",target="/mnt/text" \
docker run --privileged -it --gpus all -p 8888:8888 \
--mount type=bind,source="/workspace",target="/workspace" \
--mount type=bind,source="$HOME/.cache/huggingface",target="/root/.cache/huggingface" \
--mount type=bind,source="$HOME/.ssh",target="/root/.ssh" \
--ipc=host --net=host --cap-add SYS_NICE \
fwai/cookbook:latest

Expand Down
8 changes: 4 additions & 4 deletions recipes/docker/text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ docker build -t fwai/cookbook:my .
```
After the image built finishes, the container can be instantiated in interactive model with the following command:
```
docker run --privileged -it --gpus '"device=0,1,2,3,4,5,6,7"' -p 8899:8899 \
--mount type=bind,source="$HOME",target="/workspace" \
--mount type=bind,source="/fw/huggingface",target="/root/.cache/huggingface" \
--mount type=bind,source="/fw",target="/fw" \
docker run --privileged -it --gpus all -p 8888:8888 \
--mount type=bind,source="/workspace",target="/workspace" \
--mount type=bind,source="$HOME/.cache/huggingface",target="/root/.cache/huggingface" \
--mount type=bind,source="$HOME/.ssh",target="/root/.ssh" \
--mount type=bind,source="/mnt/text",target="/mnt/text" \
--ipc=host --net=host --cap-add SYS_NICE \
fwai/cookbook:my /bin/bash
Expand Down

0 comments on commit 746d1ff

Please sign in to comment.