# Huggingface test on an AZURE instance

**URL:** <https://community.cloudbank.org/t/huggingface-test-on-an-azure-instance/180>\
**Category:** Azure\
**Created:** [June 25, 2024, 10:28pm UTC](https://community.cloudbank.org/t/huggingface-test-on-an-azure-instance/180 "2024-06-25T22:28:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dchoi](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@dchoi](https://community.cloudbank.org/u/dchoi)\
**Post date:** [June 25, 2024, 10:28pm UTC](https://community.cloudbank.org/t/huggingface-test-on-an-azure-instance/180/1 "2024-06-25T22:28:39Z")

</div>

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.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/6c2103b08195c8cad999081a5f1a026cd6291692.png)

\*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.

 ![Screenshot from 2024-06-25 15-37-23](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/bb6dc4740286aee8301e0c893fbdfe9afb4e2b51.png)

- 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.

 ![Screenshot from 2024-06-25 15-44-42](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/3a744bf5e04231bc4401eae8fbcf0260aeb897ee.png)

**ssh [azureuser@74.249.42.246](mailto: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:

- The test code is shown bellow to measure the sentiment of an input sentence and its output is also shown.

 ![Screenshot from 2024-06-25 15-59-19](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/8626e49d55675d6b79b7ba3ba8dba3c6d57ff8fe.png)
