10000 GitHub - jsburckhardt/gradio-aks
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jsburckhardt/gradio-aks

Repository files navigation

gradio-aks

gradio-aks is a repository designed to demonstrate how to utilize Azure OpenAI with AD credentials. This guide encompasses creating a Docker container and subsequently deploying it into Azure Kubernetes Service (AKS).

Azure Credentials

For a detailed walkthrough on Azure Managed Identities with Workload Identity Federation, refer to the following resources:

Features

  • Run the application locally in the devcontainer
  • Creation of Docker containers tailored for Azure OpenAI with AD credentials.
  • Assistance in deploying the Docker container to AKS.

Pre-requisites

  • Resource group with Azure OpenAI
  • Azure OpeanAI deployments (depends the deployement you want to use): gpt-35-turbo, gpt-4 -- a helper script can be found under infra/pre-requisites.sh

Running the Application Locally

  • Remember that we are using Azure.Credentials for connecting with Azure OpenAI. That means unless you have the required permissions to talk with OpenAI it won't work till you obtain them.

  • Let's use az cli. Login first:

    az login
  • Assign the role to yourself

    export RG=<rg with ai resource>
    export user=$(az ad signed-in-user show --query "userPrincipalName" -o tsv)
    export resourceId=$(az group show -g $RG --query "id" -o tsv)
    az role assignment create --role "Cognitive Services User" --assignee $user --scope $resourceId
  • run the application

    make gradio

AKS Creation and Configuration

  • To create and configurate the cluster follow: infra
  • To release the application build it and then update the container in (or use mine): manifest. Remember to update the variables

Contribute

Please submit issues and pull requests for any bugs you find or enhancements you propose.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  
0