Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/scripts/spawn_modal_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def _append_summary(function_call_id: str, context: RunContext) -> None:
handle.write("## Pipeline Launched\n\n")
handle.write("| Field | Value |\n")
handle.write("|-------|-------|\n")
handle.write(f"| GPU | `{os.environ['GPU']}` |\n")
handle.write(f"| Regional GPU | `{os.environ['GPU']}` |\n")
handle.write(
f"| National GPU | `{_env('NATIONAL_GPU', os.environ['GPU'])}` |\n"
)
handle.write(
"| Epochs | "
f"`{os.environ['EPOCHS']}` / "
Expand Down Expand Up @@ -58,6 +61,7 @@ def main() -> None:
kwargs = {
"branch": os.environ.get("PIPELINE_BRANCH", "main"),
"gpu": os.environ["GPU"],
"national_gpu": _env("NATIONAL_GPU", os.environ["GPU"]),
"epochs": int(os.environ["EPOCHS"]),
"national_epochs": int(os.environ["NATIONAL_EPOCHS"]),
"num_workers": int(os.environ["NUM_WORKERS"]),
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "GPU type for regional calibration"
default: "T4"
type: string
national_gpu:
description: "GPU type for national calibration"
default: "T4"
type: string
epochs:
description: "Epochs for regional calibration"
default: "1000"
Expand Down Expand Up @@ -89,6 +93,7 @@ jobs:
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
PIPELINE_BRANCH: main
GPU: ${{ inputs.gpu || 'T4' }}
NATIONAL_GPU: ${{ inputs.national_gpu || 'T4' }}
EPOCHS: ${{ inputs.epochs || '1000' }}
NATIONAL_EPOCHS: ${{ inputs.national_epochs || '1000' }}
NUM_WORKERS: ${{ inputs.num_workers || '50' }}
Expand Down
1 change: 1 addition & 0 deletions changelog.d/944.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Expose the national calibration GPU in the publication pipeline workflow.