Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenAI Priority Load Balancer for Azure OpenAI #1626

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

simonkurtz-MSFT
Copy link

@simonkurtz-MSFT simonkurtz-MSFT commented May 17, 2024

This PR is only intended to showcase how the OpenAI Prioritized Load Balancer integrates.

This PR should NOT be merged.

@simonkurtz-MSFT
Copy link
Author

Hi @pamelafox & @kristapratico,

This is how the OpenAI Priority Load Balancer integrates. Nevermind the hard-coded backend and the location of the backends list in this PR. I don't intend to ask for a merge, but this was the best way to give you an idea of the setup.

If you have two AOAI instances with the same model, you can plug them both in and should see load-balancing.

@simonkurtz-MSFT
Copy link
Author

I brought up two AOAI instances and related assets and configured both instances as backends in app.py. Then I started to have a conversation.

image

image

Both backends are responding. It's important to note that this is not a uniform distribution because available backends are randomized (have to do so as part of multi-process workloads).

image

At no point did the conversation break down or showed any kind of error through the chat bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant