Skip to content

Commit a046958

Browse files
authored
Expose national GPU in data pipeline workflow (#944)
* Expose national GPU in data pipeline workflow * Add changelog for national GPU workflow input
1 parent e9cf984 commit a046958

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/scripts/spawn_modal_pipeline.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def _append_summary(function_call_id: str, context: RunContext) -> None:
2828
handle.write("## Pipeline Launched\n\n")
2929
handle.write("| Field | Value |\n")
3030
handle.write("|-------|-------|\n")
31-
handle.write(f"| GPU | `{os.environ['GPU']}` |\n")
31+
handle.write(f"| Regional GPU | `{os.environ['GPU']}` |\n")
32+
handle.write(
33+
f"| National GPU | `{_env('NATIONAL_GPU', os.environ['GPU'])}` |\n"
34+
)
3235
handle.write(
3336
"| Epochs | "
3437
f"`{os.environ['EPOCHS']}` / "
@@ -58,6 +61,7 @@ def main() -> None:
5861
kwargs = {
5962
"branch": os.environ.get("PIPELINE_BRANCH", "main"),
6063
"gpu": os.environ["GPU"],
64+
"national_gpu": _env("NATIONAL_GPU", os.environ["GPU"]),
6165
"epochs": int(os.environ["EPOCHS"]),
6266
"national_epochs": int(os.environ["NATIONAL_EPOCHS"]),
6367
"num_workers": int(os.environ["NUM_WORKERS"]),

.github/workflows/pipeline.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: "GPU type for regional calibration"
88
default: "T4"
99
type: string
10+
national_gpu:
11+
description: "GPU type for national calibration"
12+
default: "T4"
13+
type: string
1014
epochs:
1115
description: "Epochs for regional calibration"
1216
default: "1000"
@@ -89,6 +93,7 @@ jobs:
8993
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
9094
PIPELINE_BRANCH: main
9195
GPU: ${{ inputs.gpu || 'T4' }}
96+
NATIONAL_GPU: ${{ inputs.national_gpu || 'T4' }}
9297
EPOCHS: ${{ inputs.epochs || '1000' }}
9398
NATIONAL_EPOCHS: ${{ inputs.national_epochs || '1000' }}
9499
NUM_WORKERS: ${{ inputs.num_workers || '50' }}

changelog.d/944.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Expose the national calibration GPU in the publication pipeline workflow.

0 commit comments

Comments
 (0)