Description
🚀 The feature, motivation and pitch
As far as I can tell (and I may be wrong about this), the only thing that dictates parent-child relations in the step graph is direct chaining of outputs to inputs via "ref". But it would be nice to have a way to manually enforce that a step (S2) executes after another (S1), even if S1 is not an ancestor of S2 in the graph determined by "ref" relations. Is there a way to do this?
Alternatives
A naïve solution to this would be to (e.g.) have the run
method of S2 take the outputs of S1 as an argument and simply not use that argument. But this seems inelegant.
Additional context
My personal use case motivating this is a set of LM prompting experiments in which one of the steps in the experiment simply prints a set of randomly sampled, dynamically constructed prompts. I would like to see what these prompts look like before model inference runs (as a separate step) in order to be confident the inputs are correct, but currently the prompts print only after the inference step. And the printing step and the model inference step are siblings in the step graph.
I am using the latest tango release (v0.14.0).
Activity