-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Documentation] Information about Trial meta injection in template #1280
Comments
Issue-Label Bot is automatically applying the labels:
Please mark this comment with 👍 or 👎 to give our bot feedback! |
Hi @andreyvelich . After the merge of the new trial template, is there still a mechanism to get the trial name? For reference, the gotemplate way of referencing it was https://github.com/kubeflow/katib/pull/1202/files#diff-82dc48b655cb8b5eff0c7fe15d75607bL47, but all v1beta1 examples don't have that field anymore. Is there a way of referencing that variable? The use case here is when running a trial I create intermediate files in a directory that has the same name as the trial that are useful to analyze after the full experiment is run. |
Hi @terrykong, yes it is possible. @sperlingxx implemented it in #1259. You can get data from We need to document it. |
Cool, looking forward to the documentation. Thanks for pointing out the relevant PR. So I was a little impatient and went ahead and tried to do it myself. Following https://github.com/kubeflow/katib/blob/master/pkg/controller.v1beta1/experiment/manifest/generator_test.go I got it to work, but I'm curious if this design was intended. To make things work I need to specify all the metadata variables I want in the trialParameters, e.g.,
And I noticed that this works if in my container's command I specify the metadata variables like so:
But what I'm curious about is why directly referencing the variable from the
|
Actually apologies, there was already quite a bit of discussion about this in #1259. I jumped the gun early before reading. I understand the reasoning now. It's not too much of an issue to lay out all the metadata params a user plans on using, I was merely curious~ |
/priority p1 |
This has been done in: kubeflow/website#2332. |
/kind feature
After this PR: #1259, user can use Trial metadata in Trial parameters.
We should explain how to use substitution in template for metadata parameters.
The text was updated successfully, but these errors were encountered: