You can run the mnist_int8.ipynb to finish this hands-on test.
Before opening the notebook, you need to start a docker and do some port mapping as following.
- Run
docker run --rm -it --gpus '"device=0"' -v /your_path:/workspace/hostdir -p xxxx:8888 nvcr.io/nvidia/tensorrt:21.09-py3./your_pathis the dir you want to mount to docker,xxxxis the server port you will use to visit the notebook, and8888is the jupyter notebook port within the docker. - In docker, please run
pip install jupyter && jupyter notebook --ip=0.0.0.0 --NotebookApp.token='' --no-browser --port=8888 --allow-root - Tap Win+R and run
ssh -N -f -L localhost:xxxx:localhost:xxxx -p 22 [email protected].xxxxis the port you used in step 1,user_IDis you ID to access to the server, andx.x.x.xis the server IP address. - In your host browser, please input
http://localhost:8889/
Now you can open the mnist_int8.ipynb file. Please run every cell of this notebook.
Then, please finish the questions and TODO tasks in this notebook.