gentle-tomato-480
03/20/2024, 11:07 AMGPUAccelerator
like in:
@task(container_image=image_spec, requests=Resources(cpu="1", mem="2G"), accelerator=GPUAccelerator("nvidia-l4"), limits=Resources(cpu="4", mem="7G", gpu="1"))
It will set
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: <http://k8s.amazonaws.com/accelerator|k8s.amazonaws.com/accelerator>
operator: In
values:
- nvidia-l4
in the podspec of the task, (even when you're not on AWS...)gentle-tomato-480
03/20/2024, 11:13 AMgpu-device-node-label
in the values to configure this correctlyaverage-finland-92144
03/22/2024, 4:18 PMgentle-tomato-480
03/22/2024, 4:27 PMgpu-device-node-label
and gpu-partition-size-node-label
such as here https://github.com/flyteorg/flyte/blob/b6f35add1227c930e9208103235d89fe4b864b8e/charts/flyte-binary/gke-starter.yaml#L82-L83 to make it work fully on other platforms than AWS.