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

script "./scripts/quota_check_params.sh" does not work as defined #321

Open
nitya opened this issue Mar 26, 2025 · 1 comment
Open

script "./scripts/quota_check_params.sh" does not work as defined #321

nitya opened this issue Mar 26, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@nitya
Copy link
Member

nitya commented Mar 26, 2025

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Launch Codespaces
  2. chmod a+x ./scripts/quota* - to make them executable
  3. Run ./scripts/quota_check_params.sh gpt-4o-mini:20,text-embedding-ada-002:80 eastus from commandline

Expected behavior

A simple line indicating if that reqion (eastus) has required quota for those model/capacity pairings.

Screenshots

In lieu of screenshot here is a snippet of the console output (identifiers replaced with XXXXXXXXX). Note that:

  1. script seems to run for ALL regions despite specifying the region.
  2. it is NOT looking for the embeddings model (though it identified both in log)
  3. It has two entries for target region eastus (I assume it was supposed to use the second one for the embedding model but it repeated the first model check twice instead)
  4. It continues on looking into other regions (despite being given only 1 target)
./scripts/quota_check_params.sh gpt-4o-mini:20,text-embedding-ada-002:80 eastus
🔄 Using Models: gpt-4o-mini text-embedding-ada-002 with respective Capacities: 20 80
🔄 Fetching available Azure subscriptions...
✅ Using the only available subscription: XXXXXXXXX
🎯 Active Subscription: Result
------------------------------------
XX-XXXX
XXXXXXXXX
✅ Retrieved Azure regions. Checking availability...
----------------------------------------
🔍 Checking region: eastus
🔍 Checking model: gpt-4o-mini with required capacity: 20
✅ Model: OpenAI.Standard.gpt-4o-mini | Used: 0 | Limit: 8 | Available: 8
❌ ERROR: 'OpenAI.Standard.gpt-4o-mini' in eastus has insufficient quota. Required: 20, Available: 8
➡️  To request a quota increase, visit: https://aka.ms/oai/stuquotarequest
----------------------------------------
🔍 Checking region: eastus
🔍 Checking model: gpt-4o-mini with required capacity: 20
✅ Model: OpenAI.Standard.gpt-4o-mini | Used: 0 | Limit: 8 | Available: 8
❌ ERROR: 'OpenAI.Standard.gpt-4o-mini' in eastus has insufficient quota. Required: 20, Available: 8
➡️  To request a quota increase, visit: https://aka.ms/oai/stuquotarequest
----------------------------------------
🔍 Checking region: uksouth
🔍 Checking model: gpt-4o-mini with required capacity: 20
⚠️ WARNING: No quota information found for model: OpenAI.Standard.gpt-4o-mini in uksouth. Skipping.
----------------------------------------
🔍 Checking region: eastus2
🔍 Checking model: gpt-4o-mini with required capacity: 20
✅ Model: OpenAI.Standard.gpt-4o-mini | Used: 0 | Limit: 8 | Available: 8
❌ ERROR: 'OpenAI.Standard.gpt-4o-mini' in eastus2 has insufficient quota. Required: 20, Available: 8
➡️  To request a quota increase, visit: https://aka.ms/oai/stuquotarequest

Configuration: Please provide the following

Provided above. This was during quota-check so other aspects not yet applicable.

@nitya nitya added the bug Something isn't working label Mar 26, 2025
@Vinay-Microsoft
Copy link
Contributor

Thanks @nitya for reporting this, we will look into this and keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants