Skip to main content

Workshop Setup

This section provides information on how to get yourself set up to run this lab on your own time. We won't go through this section live, but it's provided for your reference.

You can run this lab using either OpenAI (at https://platform.openai.com) or Azure OpenAI Service (at https://oai.azure.com/portal). Both services provide access to the same models used in this workshop.

To use either service, you will need to have an account and available credits to use the service.

If you're using OpenAI

Other than having a valid account and available credit, no further setup is needed.

During the lab, we will mostly use the OpenAI Playground, using both the "Complete" and "Chat" modes.

If you're using Azure OpenAI Service

To use Azure OpenAI Playgound during the lab, follow the instructions below to set up resources for models that use the Completions and Chat interfaces.

Unlike with OpenAI, with Azure OpenAI Service you will create private instances of the OpenAI models that will run within your selected Azure tenant under your susbcription. You will manage the instances as Azure resources along with your other Azure resources.

Create an Azure OpenAI Service resource in Azure Portal

  1. Open the Microsoft Azure Portal at https://portal.azure.com and sign into your Azure Subscription. Make sure you are viewing the Home page of the Azure portal by clicking the hamburger menu in the top-left and selecting "Home".

  2. Click "+ Create a Resource"

  3. In the search box, type "openai" and select "Azure OpenAI"

  4. Click the "Azure OpenAI" pane, and then click "Create". (Leave the "Plan" field as "Azure OpenAI".)

NOTE: If you see the message in red, "Azure OpenAI Service is currently available to customers via an application form. The selected subscription has not been enabled for use of the service and does not have quota for any pricing tiers.", you need to apply for access to the service and wait for approval to continue. Click here to request access to Azure OpenAI service.

  1. Choose a unique set of characters to make your resource group and domain name unique. You might choose something like openai-19800101 with your birthday to make it easy to remember. From now on, we'll use openai-lab-build, but remember to substitute your selection.

  2. Complete the "Basics" tab as follows

  • Subscription: leave unchanged
  • Resource Group: Click "create new" and enter openai-lab-build
  • Region: Select West Europe
  • Name: Enter openai-lab-build
  • Pricing Tier: Select Standard S0
  1. Click Next. On the next page "Network", click Next. On the next page "Tags" also click Next. On the final tab "Create Azure OpenAI", click "Create".

  2. Deployment may take up to 5 minutes. Once the deployment is complete, proceed to the next step.

While you're waiting for the deployment to complete...

  1. Review the Code of conduct for Azure OpenAI Service.

  2. Review the information on Data, privacy and security for Azure OpenAI Service.

  3. Browse the Azure OpenAI Service Frequently Asked Questions.

Create model deployments

Once your Azure OpenAI deployment is complete:

  1. From the Azure Portal Home page, click the Resource you just created, openai-lab-build. (If you don't see your resource, click on "All Resources".)

  2. From the Overview tab, click the button "Explore" to launch the Azure OpenAI Studio.

  3. You will see the message "No deployment detected". Click the "Deployments" link under "Management" in the left navigation.

  4. Click "+ Create New Deployment". Complete the "Deploy Model" form as follows, then click "Create"

  • Model Name: Select text-davinci-003
  • Deployment Name: Enter text-davinci-003
  1. Once more, click "+ Create New Deployment". Complete the "Deploy Model" form as follows, then click "Create"
  • Model Name: Select gpt-35-turbo
  • Deployment Name: Enter gpt-35-turbo