Comment by aaquibahm
10 hours ago
why not mask attention and do it all in one forward pass ? tokens belonging to a question can just see that question and the main prompt
10 hours ago
why not mask attention and do it all in one forward pass ? tokens belonging to a question can just see that question and the main prompt
Ohh this is really cool.
So one could pack all of common state, every question, every answer in the same prefill, using attention mask to only let them attend to their logical parent.
Then additionally do position encoding for token based on their logical position rather than physical.
Then the diffusion step also applies an attention mask to prevent bidirectional attention between answers.
I think you're right. Better. I will have to think through if it would be faster or slower. If understand what you're getting at with this.. broken analogy...
What I described was -- we have a bunch of orders to the kitchen, all of which have the same "base" meal but different topics.
> Cook the "base" meal once, divide servings onto multiple plates, then add different toppings to each plate.
vs what you suggest:
> Put the base meal and every topping through the kitchen together, but use some kind of dividers so the toppings never mix up together.
Except.. ok, that analogy is confusing lol.