-
Notifications
You must be signed in to change notification settings - Fork 48
Refactor out common modules in terraform/gcp_old #207
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
Open
pv97
wants to merge
5
commits into
vllm-project:main
Choose a base branch
from
pv97:module-refactor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b7d1944
Refactor out common modules in terraform/gcp_old
pv97 66f9422
Rename variables, clean up unsused modules
pv97 49ecf01
rename module variables
pv97 a3f499d
Merge branch 'main' into module-refactor
pv97 215a6a5
Merge branch 'main' into module-refactor
pv97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,13 @@ | ||
| variable "project_id" { | ||
| default = "cloud-tpu-inference-test" | ||
| } | ||
|
|
||
| variable "buildkite_benchmark_agent_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for benchmark agent token" | ||
| } | ||
|
|
||
| variable "huggingface_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for huggingface token" | ||
| } |
This file contains hidden or 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 hidden or 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,12 @@ | ||
| variable "project_id" { | ||
| default = "cloud-tpu-inference-test" | ||
| } | ||
|
|
||
| variable "instance_count" { | ||
| default = 8 | ||
| } | ||
|
|
||
| variable "buildkite_ci_agent_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for ci agent token" | ||
| } |
8 changes: 4 additions & 4 deletions
8
...p_old/tpu-inference/modules/ci_v5/main.tf → terraform/gcp_old/modules/ci_v5/main.tf
This file contains hidden or 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 hidden or 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,13 @@ | ||
| variable "project_id" { | ||
| default = "vllm-405802" | ||
| } | ||
|
|
||
| variable "buildkite_ci_agent_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for ci agent token" | ||
| } | ||
|
|
||
| variable "huggingface_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for huggingface token" | ||
| } |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| variable "project_id" { | ||
| default = "cloud-tpu-inference-test" | ||
| } | ||
|
|
||
| variable "buildkite_ci_agent_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for ci agent token" | ||
| } | ||
|
|
||
| variable "huggingface_token_name" { | ||
| type = string | ||
| description = "google_secret_manager_secret name for huggingface token" | ||
| } | ||
|
|
||
| variable "ci_v6_instance_count" { | ||
| type = number | ||
| description = "number of instances to spawn for ci_v6" | ||
| } | ||
|
|
||
| variable "ci_v6_disk_size" { | ||
| type = number | ||
| description = "disk size for ci_v6" | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,35 +1,20 @@ | ||
| # module "benchmark" { | ||
| # source = "./modules/benchmark" | ||
| # providers = { | ||
| # google-beta.us-east1-d = google-beta.us-east1-d | ||
| # } | ||
|
|
||
| # buildkite_agent_token_benchmark_cluster = var.buildkite_agent_token_benchmark_cluster | ||
| # huggingface_token = var.huggingface_token | ||
| # } | ||
|
|
||
| module "ci_v6" { | ||
| source = "./modules/ci_v6" | ||
| source = "../modules/ci_v6" | ||
| providers = { | ||
| google-beta.us-east5-b = google-beta.us-east5-b | ||
| } | ||
| project_id = var.project_id | ||
| buildkite_ci_agent_token_name = var.buildkite_ci_agent_token_name | ||
| huggingface_token_name = var.huggingface_token_name | ||
| ci_v6_instance_count = var.ci_v6_instance_count | ||
| ci_v6_disk_size = var.ci_v6_disk_size | ||
| } | ||
|
|
||
| module "ci_cpu" { | ||
| source = "./modules/ci_cpu" | ||
| source = "../modules/ci_cpu" | ||
| providers = { | ||
| google-beta.us-east5-b = google-beta.us-east5-b | ||
| } | ||
| project_id = var.project_id | ||
| project_id = var.project_id | ||
| buildkite_ci_agent_token_name = var.buildkite_ci_agent_token_name | ||
| } | ||
|
|
||
| # module "ci_v5" { | ||
| # source = "./modules/ci_v5" | ||
| # providers = { | ||
| # google-beta.us-south1-a = google-beta.us-south1-a | ||
| # } | ||
|
|
||
| # buildkite_agent_token_ci_cluster = var.buildkite_agent_token_ci_cluster | ||
| # huggingface_token = var.huggingface_token | ||
| # } | ||
3 changes: 0 additions & 3 deletions
3
terraform/gcp_old/tpu-inference/modules/benchmark/variables.tf
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,23 @@ | ||
| variable "project_id" { | ||
| default = "cloud-tpu-inference-test" | ||
| } | ||
|
|
||
| variable "buildkite_benchmark_agent_token_name" { | ||
| default = "bm-agent-hf-token" | ||
| } | ||
|
|
||
| variable "buildkite_ci_agent_token_name" { | ||
| default = "tpu_commons_buildkite_agent_token" | ||
| } | ||
|
|
||
| variable "huggingface_token_name" { | ||
| default = "tpu_commons_buildkite_hf_token" | ||
| } | ||
|
|
||
| variable "ci_v6_instance_count" { | ||
| default = 24 | ||
| } | ||
|
|
||
| variable "ci_v6_disk_size" { | ||
| default = 2048 | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,24 +1,32 @@ | ||
| module "benchmark" { | ||
| source = "./modules/benchmark" | ||
| source = "../modules/benchmark" | ||
| providers = { | ||
| google-beta.us-east1-d = google-beta.us-east1-d | ||
| } | ||
|
|
||
| project_id = var.project_id | ||
| buildkite_benchmark_agent_token_name = var.buildkite_benchmark_agent_token_name | ||
| huggingface_token_name = var.huggingface_token_name | ||
| } | ||
| module "ci_v6" { | ||
| source = "./modules/ci_v6" | ||
| source = "../modules/ci_v6" | ||
| providers = { | ||
| google-beta.us-east5-b = google-beta.us-east5-b | ||
| } | ||
| project_id = var.project_id | ||
| buildkite_ci_agent_token_name = var.buildkite_ci_agent_token_name | ||
| huggingface_token_name = var.huggingface_token_name | ||
| ci_v6_instance_count = var.ci_v6_instance_count | ||
| ci_v6_disk_size = var.ci_v6_disk_size | ||
| } | ||
|
|
||
| module "ci_v5" { | ||
| source = "./modules/ci_v5" | ||
| source = "../modules/ci_v5" | ||
| providers = { | ||
| google-beta.us-south1-a = google-beta.us-south1-a | ||
| } | ||
|
|
||
| project_id = var.project_id | ||
| buildkite_ci_agent_token_name = var.buildkite_ci_agent_token_name | ||
| huggingface_token_name = var.huggingface_token_name | ||
| } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.