Showing a selection of AZURE VM instance and trying a test case with huggingface library.
- search and select an instance with transformers module from AZURE marketplace.
*click the instance and fill out for VM name for the instance creation. It will also show the price information and shows a popup message to download a ssh-key to access the instance.
- After few minutes, the created VM link is shown. Select “Go to resource” button to find the public ip of the VM. ssh to the VM with the private key previously downloaded ssh-key.
ssh azureuser@74.249.42.246 -i ~/myaz_key.pem
-
Logged into the VM, I still had to install the torch module for my test case:
pip3 install torch
-
The test code is shown bellow to measure the sentiment of an input sentence and its output is also shown.