Description
What you would like to be added?
We can access metadata from the trialSpec in the template as documented here.
I would like to obtain the experiment name (which is generated by K8S for me) and so I would like to have something similar to trialSpec.Name
but for experimentSpec.Name
.
With my limited understanding of go, it seems like the relevant code is here.
For now I can work around this by making an assumption on how the trial name is generated from the experiment name, but it would be nice to not have to make that assumption.
As a related question, can we make katib provide certain env vars by default (KATIB_EXPERIMENT_NAME
, KATIB_TRIAL_NAME
, and KATIB_NAMESPACE
for example) to the trial programs? This would eliminate the need for the additional experiment spec configuration.
Why is this needed?
I let K8S generate the experiment name. In order to obtain the experiment name, I currently have to query the experiment name from the trial name at run time in my trial program or make assumptions on how the trial name is generated from the experiment name which I would rather not.
My use case is having consistent naming between katib experiments and trials and MLflow experiments and runs. I want to set the MLFlow experiment and run names based on the katib experiment and trial names.
Love this feature?
Give it a 👍 We prioritize the features with most 👍