few-dress-69520
03/05/2026, 12:36 PMclass UseImageFromFlowConfig(StepMutator):
def mutate(self, mutable_step):
mutable_step.add_decorator(
kubernetes,
deco_kwargs={
"image": str(mutable_step.flow.flow_config.image)
}
)
When I try to apply this to a step and try to run the flow, I get
File "<path>/.venv/lib/python3.11/site-packages/metaflow/plugins/kubernetes/kubernetes_decorator.py", line 382, in step_init
if self.attributes["gpu_vendor"].lower() not in ("amd", "nvidia"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'
i.e. here . This tells me that the init method of the decorator is not executed, because otherwise it should have picked up a default value. I could of course add "gpu_vendor" to deco_kwargs to make it work, but surely that's not the desired solution, since I will probably end up adding a bunch of arguments to make this work. Can you tell me, how I can approach this?dry-beach-38304
03/05/2026, 4:04 PMfew-dress-69520
03/06/2026, 6:20 AM