stale-cartoon-78113
12/20/2022, 3:39 PMstraight-shampoo-11124
12/20/2022, 5:05 PM@batch or @kubernetes?stale-cartoon-78113
12/20/2022, 5:06 PM--with kubernetes and @ressourcesquare-wire-39606
12/20/2022, 5:36 PMuser
12/20/2022, 5:39 PM$ python3 myflow.py run --with kubernetes:gpu=1,gpu_vendor=nvidia
gpu is the count of gpus and gpu_vendor has to be either nvidia or amd
Internally, metaflow takes these options and adds them to the resources section in the Kubernetes pod yaml.
Do you know if Kubernetes offers a way to specify the memory for the GPU in it's pod spec?stale-cartoon-78113
12/20/2022, 9:10 PMuser
12/20/2022, 9:11 PMabundant-solstice-40600
12/25/2022, 3:52 PMuser
12/29/2022, 3:12 AMnvidia vs amd), you can use the appropriate gpu_vendor option as mentioned earlier in the thread.
• If the gpus are connected to nodes with specific labels, you could also use the node_selector option. And FWIW, if you want the nodes to be automatically labelled, there are some projects like this (which you'd have to run on your own).
If these don't seem to fit the specific needs, let me know and we can brainstorm about other options.stale-cartoon-78113
01/03/2023, 3:04 PM