Open mrdrprofuroboros opened 1 month ago
@mrdrprofuroboros You are right! Right now arguments of GradComponents get traced and usually it is the value to be registered as a parameter such as an int or a dict. Generator
's prompt_kwargs is already a special case where the value of the key is registered. Right now I dont see real use case where we would want such deep parameter registration.
Would you tell me more about your use case and if it is a must to support recursive parameter? This relates to the prompt_template. And then we can decide if we need to support recursive parameter registration
Is your feature request related to a problem? Please describe. I want to use a dict of Parameters that are inserted into the Prompt at runtime, e.g.
but right now they are not
setattr
themDescribe the solution you'd like I want to be able to register some sort of a dict in a component that would register such dynamic parameters and allow to pick them from this dict at Prompt rendering time. Something similar to nn.Embedding in pytorch maybe
Describe alternatives you've considered Right now I have to
and then manually put those that will be used in the Prompt to the top level of the
prompt_kwargs
so they make it to the graphAdditional context .