- I create a new repo under one Github account of a member of our team.
- I have decided to use collab which is located https://colab.research.google.com/drive/1qLwhm5FAinETMUOtTnDyaDX2m8jD-q4F?authuser=1#scrollTo=tbaN8k2Dw9bv. Where I install NNI usung these lines of code:
! pip install nni # install nni
! wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip # download ngrok and unzip it
! unzip ngrok-stable-linux-amd64.zip
! mkdir -p nni_repo
! git clone https://github.com/microsoft/nni.git nni_repo/nni # clone NNI's offical repo to get examples
- Now we must create a ngrok account. After creating the account you verify your email and then click the Your Authtoken shown on the left underneath Setup & Installation
- You copy your authtoken and the paste it with this code
! ./ngrok authtoken YOUR_AUTH_TOKEN
! nnictl create --config nni_repo/nni/examples/trials/mnist-pytorch/config.yml --port 5000 &
get_ipython().system_raw('./ngrok http 5000 &')
! curl -s http://localhost:4040/api/tunnels # don't change the port number 4040
- After running all the code you will see a url like http://xxxx.ngrok.io, after the last line of code and this will show the NNI's Web UI
- I create a new repo under one Github account of a member of our team.
- I install[https://python-poetry.org/docs/#installing-with-the-official-installer] and setup a new poetry porject with
poetry innit -n
- Next we do
poetry shell
to be inside of the enviorment - Now we install poetry and setup the enviorment and use
poetry add
to install the dependencies - Here I add NNI using the method in step 4 and then run
nni hello
this will download thenni_hello_hpo
and send a command message statingPlease run "python nni_hello_hpo/main.py" to try it out.
- Finally you run that line and you will be prompted to two local links and those will be your NNI's Web UI