{"cells":[{"metadata":{},"cell_type":"markdown","source":"This competition offers both AWS and GCP credits. Although AWS have deep-learning-ready system, it is sometimes buggy. And GCP just have plain ubuntu system.\nSo, I made this simple guide to setup an instance. \n\nThis is a simple guide that you can actually copy and paste to your instance command line. "},{"metadata":{},"cell_type":"markdown","source":"# Part 1"},{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"sudo apt-get install gnupg-curl\nwget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.1.243-1_amd64.deb\nsudo dpkg -i cuda-repo-ubuntu1604_10.1.243-1_amd64.deb\nsudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub\nsudo apt-get update\nwget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb\nsudo apt install ./nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb\nsudo apt-get update\nsudo mkdir /usr/lib/nvidia\nsudo apt-get install --no-install-recommends nvidia-418","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"# Reboot"},{"metadata":{"_uuid":"d629ff2d2480ee46fbb7e2d37f6b5fab8052498a","_cell_guid":"79c7e3d0-c299-4dcb-8224-4455121ee9b0","trusted":true},"cell_type":"code","source":"sudo reboot","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"# Check Sucessful"},{"metadata":{"trusted":true},"cell_type":"code","source":"nvidia-smi","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"# Part 2"},{"metadata":{"trusted":true},"cell_type":"code","source":"sudo apt-get install --no-install-recommends \\\n    cuda-10-0 \\\n    libcudnn7=7.6.4.38-1+cuda10.1  \\\n    libcudnn7-dev=7.6.4.38-1+cuda10.1\nsudo apt-get install -y --no-install-recommends libnvinfer5=6.0.1-1+cuda10.1 \\\n    libnvinfer-dev=6.0.1-1+cuda10.1","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"# Install tensorflow,keras,pytorch"},{"metadata":{"trusted":true},"cell_type":"code","source":"sudo apt-get install python3-pip\npip3 install tensorflow\npip3 install keras\npip3 install opencv","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"Thanks for looking. If it helped you, please give an upvote. Thanks!"}],"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat":4,"nbformat_minor":1}