Skip to content

Commit 313cd72

Browse files
Update quota_check.md
1 parent 2ddc3bc commit 313cd72

1 file changed

Lines changed: 39 additions & 6 deletions

File tree

docs/quota_check.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,38 @@
33
Before deploying the accelerator, **ensure sufficient quota availability** for the required model.
44
Use one of the following scripts based on your needs:
55

6-
- **`quota_check_params.sh`** → If you **know the model and capacity** required.
7-
- **`quota_check_all_regions.sh`** → If you **want to check available capacity across all regions** for supported models.
6+
- **`quota_check_params.sh`** → If you **know the model and capacity** required.
87

8+
## Usage Scenarios:
9+
- No parameters passed → Default models and capacities will be checked in default regions.
10+
- Only model(s) provided → The script will check for those models in the default regions.
11+
- Only region(s) provided → The script will check default models in the specified regions.
12+
- Both models and regions provided → The script will check those models in the specified regions.
13+
14+
## **Input Formats**
15+
✔️ Run without parameters to check default models & regions:
16+
```
17+
./quota_check_params.sh
18+
```
19+
✔️ Model name and required capacity in the format:
20+
```
21+
./quota_check_params.sh gpt-4o:30
22+
```
23+
✔️ Multiple models can be passed, separated by commas:
24+
```
25+
./quota_check_params.sh gpt-4o:30,text-embedding-ada-002:80
26+
```
27+
✔️ Specify region(s) (comma-separated):
28+
```
29+
./quota_check_params.sh gpt-4o:30 eastus,westus2
30+
```
31+
✔️ Check default models in specific regions:
32+
```
33+
./quota_check_params.sh "" eastus,westus2
34+
```
35+
36+
#### **Sample Output**
37+
The final table lists regions with available quota for both GPT and text embedding models. You can select any of these regions for deployment.
938
---
1039
## **If using Azure Portal and Cloud Shell**
1140

@@ -30,8 +59,12 @@ Use one of the following scripts based on your needs:
3059
```
3160

3261
## **If using VS Code or Codespaces**
33-
34-
1. Run the appropriate script based on your requirement:
62+
1. Open the terminal in VS Code or Codespaces.
63+
2. Navigate to the `scripts` folder where the script files are located:
64+
```sh
65+
cd scripts
66+
```
67+
3. Run the appropriate script based on your requirement:
3568

3669
**To check quota for a specific model and capacity:**
3770

@@ -44,13 +77,13 @@ Use one of the following scripts based on your needs:
4477
```sh
4578
./quota_check_all_regions.sh
4679
```
47-
2. If you see the error `_bash: az: command not found_`, install Azure CLI:
80+
4. If you see the error `_bash: az: command not found_`, install Azure CLI:
4881

4982
```sh
5083
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
5184
az login
5285
```
53-
3. Rerun the script after installing Azure CLI.
86+
5. Rerun the script after installing Azure CLI.
5487

5588
**Parameters**
5689
- `<model_name:capacity>`: The name and required capacity for each model, in the format model_name:capacity (**e.g., gpt-4o-mini:30,text-embedding-ada-002:20**).

0 commit comments

Comments
 (0)