millions-table-8574
01/29/2024, 4:13 AMwith_overrides
to specify mem, cpu and gpu. we want to use this estimation to target a diff nodegroup w better GPUsmillions-table-8574
01/29/2024, 8:20 AMdef task():
...
@task(pod_template=with_gpu)
def task_wrapper_gpu():
task()
@task(pod_template=with_big_gpu)
def task_wrapper_big_gpu():
task()
then in our dynamic workflow, we select the task based on the runtime params:
@dynamic
def wf():
resource = sizing()
if resource == "big":
t = task_wrapper_big_gpu
else:
t = task_wrapper_gpu()
out = t()
hallowed-mouse-14616
01/29/2024, 3:47 PMhallowed-mouse-14616
01/29/2024, 3:49 PM