[ad_1]
Open to anybody with an concept
Microsoft for Startups Founders Hub brings folks, data and advantages collectively to assist founders at each stage remedy startup challenges. Join in minutes with no funding required.
As a startup in Founders Hub, you may get began with $2,500 of OpenAI credit to start experimenting with highly effective AI fashions on day one. As you put together to roll out your answer into manufacturing, your out there Azure credit (as much as $150K) can then be utilized in the direction of Azure OpenAI Service.
We’re usually requested methods to weigh the variations between these two choices. This publish goals to make clear the important thing advantages of transitioning to Azure OpenAI Service.
With Azure OpenAI Service, you continue to get entry to the identical outstanding OpenAI fashions like GPT-3, DALL-E 2, and Codex by easy API calls. However now these capabilities are enhanced by Microsoft Azure’s enterprise-grade safety, compliance, assist, availability, and accountable AI practices.
Whereas OpenAI supplies uncooked entry to fashions, Azure OpenAI Service empowers you to construct on high of them in smarter methods:
Pre-trained options permit immediate deployment so you may concentrate on customization relatively than implementation
Auto-scaling infrastructure permits fast prototyping and seamless transition to manufacturing
Greater efficiency handles extra requests per second and delivers quicker response occasions
Higher scalability adjusts up or right down to your wants, so that you solely pay for what you employ
Enhanced safety is backed by Azure’s safe cloud platform with encryption, compliance, and privateness
Greater reliability ensures 99.9% uptime to reduce disruption
Sturdy assist supplies documentation and technical consultants to help you
By making the leap from OpenAI to Azure OpenAI Service, startups can speed up innovation, scale back danger, and get essentially the most worth from their AI investments.
Easy methods to transition to Azure OpenAI Service?—Part 1: Get Entry to Azure OpenAI
Switching from OpenAI to Azure OpenAI is simple and easy. Listed below are the steps it is advisable comply with:Create an Azure account: In the event you don’t have an Azure account but, you may create one free of charge [here](https://azure.microsoft.com/en-us/free/). You possibly can be part of the Microsoft for Startups program (Founder’s Hub) and get free credit score to make use of for any Azure service.
Request entry to Azure OpenAI: After getting an Azure account, you may request entry to Azure OpenAI [here](https://azure.microsoft.com/en-us/companies/openai/). You will want to offer some details about your self and your use case for GPT-3. Additionally, you will must conform to the phrases and situations of the service.
Look forward to approval: After you submit your request, you’ll obtain an electronic mail affirmation. You’ll then have to attend for Microsoft to evaluation your request and grant you entry to Azure OpenAI. This may occasionally take just a few days or even weeks, relying on the demand and availability of the service.
Create an Azure OpenAI useful resource: When you obtain an electronic mail notification that your request has been accepted, you may create an Azure OpenAI useful resource [here](https://portal.azure.com/#create/Microsoft.OpenAIService). You will want to decide on a subscription, a useful resource group, a area, a pricing tier, and a useful resource identify. Additionally, you will must allow the GPT-3 endpoint that you just wish to use (beta or manufacturing).
Get your API key: After you create your Azure OpenAI useful resource, you may get your API key right here. You will want this key to authenticate your requests to the GPT-3 endpoint, directions right here.
Part 2: Deploy GPT Mannequin on Azure OpenAI Studio
Examine the conditions for making a useful resource and deploying a mannequin utilizing Azure OpenAI. (Entry granted to Azure OpenAI within the desired Azure subscription)
Create a useful resource utilizing the Azure portal or different strategies
Deploy a mannequin utilizing Azure OpenAI Studio and choose a mannequin from the out there choices
Alter the superior choices on your deployment resembling content material filter and tokens per minute fee restrict
Examine the standing of your deployment and watch for it to succeed
Create a system immediate
Add your knowledge utilizing Azure OpenAI Studio:
Navigate to Azure OpenAI Studio and sign-in with credentials which have entry to your Azure OpenAI useful resource.
Choose the Chat playground tile.
On the Assistant setup tile, choose Add your knowledge (preview) > + Add an information supply.
Within the panel that seems, choose Add information beneath Choose knowledge supply. Choose Add information. Azure OpenAI wants each a storage useful resource and a search useful resource to entry and index your knowledge.
For paperwork and datasets with lengthy textual content, it is suggested to make use of the out there knowledge preparation script.
For Azure OpenAI to entry your storage account, you will want to activate Cross-origin useful resource sharing (CORS). If CORS isn’t already turned on for the Azure Blob storage useful resource, choose Activate CORS.
Choose your Azure Cognitive Search useful resource, and choose the acknowledgment that connecting it can incur utilization in your account. Then choose Subsequent.
On the Add information pane, choose Browse for a file and choose the information you wish to add. Then choose Add information. Then choose Subsequent.
Overview the small print you entered, and choose Save and Shut.
The mannequin will use data out of your knowledge to assemble the response.
Part 3: Migrated and Refined Current OpenAI Endpoint to Azure OpenAI
OpenAI makes use of the mannequin key phrase argument to specify what mannequin to make use of. Azure OpenAI has the idea of deployments and makes use of the deployment_id key phrase argument to explain which mannequin deployment to make use of.
Right here is an instance code snippet:
Azure Openaiimport openaiopenai.api_key = “sk-…”openai.group = “…”
Azure OpenAI.import openaiopenai.api_type = “azure”openai.api_key = “…”openai.api_base = “https://example-endpoint.openai.azure.com”openai.api_version = “2023-05-15” # topic to vary
You need to use Azure Lively Listing authentication for Azure OpenAI.import openaifrom azure.identification import DefaultAzureCredentialcredential = DefaultAzureCredential()token = credential.get_token(“https://cognitiveservices.azure.com/.default”)openai.api_type = “azuread”openai.api_key = token.tokenopenai.api_base = “https://example-endpoint.openai.azure.com”openai.api_version = “2023-05-15” # topic to vary
You possibly can be taught extra right here. Lastly, it is advisable check your code and ensure all the pieces works as anticipated. You need to use the identical strategies and parameters as earlier than, and it is best to get the identical outcomes from the Azure OpenAI service as from the OpenAI service. Nevertheless, you would possibly discover some enhancements in efficiency, reliability, safety, and scalability, in addition to entry to extra options and companies from Azure.
That’s it! You will have efficiently migrated from OpenAI to Azure OpenAI, and now you can take pleasure in the perfect of each worlds.
In abstract, migrating from OpenAI to Azure OpenAI gives an array of compelling advantages, empowering your AI purposes with larger efficiency, scalability, safety, reliability, and assist. By leveraging the highly effective GPT-4 mannequin and the in depth suite of AI instruments and companies supplied by Azure, you may unlock a brand new realm of prospects on your startup.
Microsoft for Startups Founders Hub members obtain Azure cloud credit that can be utilized towards Azure OpenAI Service or OpenAI to assist construct their product. Join now.
[ad_2]
Source link