Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.19 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.19 KB

Step 1. Install docker

Review the instructions for installation docker here and configure Docker to use a proxy server as here.

Step 2. Install nvidia-docker

Skip this step if you don't have GPU.

Review the instructions for installation docker here.

Step 3. Build image

In the project folder run in terminal:

sudo docker image build --network=host <PATH_TO_DIR_WITH_DOCKERFILE>

Use --network to duplicate the network settings of your localhost into context build.

Step 4. Run container

Run in terminal:

sudo docker run \
-it \
--name=<CONTAINER_NAME> \
--runtime=nvidia \
--network=host \
--shm-size=1g \
--ulimit memlock=-1 \
--mount type=bind,source=<PATH_TO_DATASETS_ON_HOST>,target=<PATH_TO_DATSETS_IN_CONTAINER> \
--mount type=bind,source=<PATH_TO_NNCF_HOME_ON_HOST>,target=/home/nncf \
<IMAGE_ID>

You should not use --runtime=nvidia if you want to use --cpu-only mode.

Use --shm-size to increase the size of the shared memory directory.

Now you have a working container and you can run examples.