-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* NAP does not support A100 yet * Removes memory GPUInfo.Memory since it's no longer needed * Rename GPUTypeNvidiaTeslaT4 to GPUTypeNvidiaT4 and `nvidia-tesla-t4` to `nvidia-t4` Potential issues: Changing the example to a100 might cause issues due to frequent stockouts of A100. Let's switch back example to L4 if needed.
- Loading branch information
Showing
4 changed files
with
167 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ spec: | |
save_steps: 5 | ||
resources: | ||
gpu: | ||
count: 4 | ||
type: nvidia-l4 | ||
count: 1 | ||
type: nvidia-a100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
locals { | ||
a100_locations = { | ||
"asia-northeast1" = ["asia-northeast1-a", "asia-northeast1-c"] | ||
"asia-northeast3" = ["asia-northeast3-a", "asia-northeast3-b"] | ||
"asia-southeast1" = ["asia-southeast1-b", "asia-southeast1-c"] | ||
"europe-west4" = ["europe-west4-a", "europe-west4-b"] | ||
"me-west1" = ["me-west1-b", "me-west1-c"] | ||
"us-central1" = ["us-central1-a", "us-central1-b", "us-central1-c", "us-central1-f"] | ||
"us-east1" = ["us-east1-b"] | ||
"us-west1" = ["us-west1-b"] | ||
"us-west3" = ["us-west3-b"] | ||
"us-west4" = ["us-west4-b"] | ||
} | ||
} | ||
|
||
resource "google_container_node_pool" "a2-highgpu-1g" { | ||
name = "a2-highgpu-1g" | ||
count = var.attach_gpu_nodepools ? 1 : 0 | ||
|
||
cluster = google_container_cluster.main.id | ||
initial_node_count = 0 | ||
node_locations = local.a100_locations[var.region] | ||
|
||
autoscaling { | ||
min_node_count = 0 | ||
max_node_count = 3 | ||
location_policy = "ANY" | ||
} | ||
management { | ||
auto_repair = true | ||
auto_upgrade = true | ||
} | ||
|
||
node_config { | ||
spot = true | ||
machine_type = "a2-highgpu-1g" | ||
ephemeral_storage_local_ssd_config { | ||
local_ssd_count = 1 | ||
} | ||
gcfs_config { | ||
enabled = true | ||
} | ||
} | ||
lifecycle { | ||
ignore_changes = [ | ||
initial_node_count | ||
] | ||
} | ||
} | ||
|
||
|
||
resource "google_container_node_pool" "a2-highgpu-2g" { | ||
name = "a2-highgpu-2g" | ||
count = var.attach_gpu_nodepools ? 1 : 0 | ||
|
||
cluster = google_container_cluster.main.id | ||
initial_node_count = 0 | ||
node_locations = local.a100_locations[var.region] | ||
|
||
autoscaling { | ||
min_node_count = 0 | ||
max_node_count = 3 | ||
location_policy = "ANY" | ||
} | ||
management { | ||
auto_repair = true | ||
auto_upgrade = true | ||
} | ||
|
||
node_config { | ||
spot = true | ||
machine_type = "a2-highgpu-2g" | ||
ephemeral_storage_local_ssd_config { | ||
local_ssd_count = 1 | ||
} | ||
gcfs_config { | ||
enabled = true | ||
} | ||
} | ||
lifecycle { | ||
ignore_changes = [ | ||
initial_node_count | ||
] | ||
} | ||
} | ||
|
||
resource "google_container_node_pool" "a2-highgpu-4g" { | ||
name = "a2-highgpu-4g" | ||
count = var.attach_gpu_nodepools ? 1 : 0 | ||
|
||
cluster = google_container_cluster.main.id | ||
initial_node_count = 0 | ||
node_locations = local.a100_locations[var.region] | ||
|
||
autoscaling { | ||
min_node_count = 0 | ||
max_node_count = 3 | ||
location_policy = "ANY" | ||
} | ||
management { | ||
auto_repair = true | ||
auto_upgrade = true | ||
} | ||
|
||
node_config { | ||
spot = true | ||
machine_type = "a2-highgpu-4g" | ||
ephemeral_storage_local_ssd_config { | ||
local_ssd_count = 1 | ||
} | ||
gcfs_config { | ||
enabled = true | ||
} | ||
} | ||
lifecycle { | ||
ignore_changes = [ | ||
initial_node_count | ||
] | ||
} | ||
} | ||
|
||
resource "google_container_node_pool" "a2-highgpu-8g" { | ||
name = "a2-highgpu-8g" | ||
count = var.attach_gpu_nodepools ? 1 : 0 | ||
|
||
cluster = google_container_cluster.main.id | ||
initial_node_count = 0 | ||
node_locations = local.a100_locations[var.region] | ||
|
||
autoscaling { | ||
min_node_count = 0 | ||
max_node_count = 3 | ||
location_policy = "ANY" | ||
} | ||
management { | ||
auto_repair = true | ||
auto_upgrade = true | ||
} | ||
|
||
node_config { | ||
spot = true | ||
machine_type = "a2-highgpu-8g" | ||
ephemeral_storage_local_ssd_config { | ||
local_ssd_count = 1 | ||
} | ||
gcfs_config { | ||
enabled = true | ||
} | ||
} | ||
lifecycle { | ||
ignore_changes = [ | ||
initial_node_count | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters