Counting Nodes in a Draft Tree
Medusa builds its draft as the Cartesian product of each head's top- predictions. With the first head contributing its top 2 and the second head its top 3, the tree carries candidate continuations, and the target model verifies the whole tree in one forward pass using an attention mask built from the tree's shape.
How many draft tokens enter that forward pass, and what does the mask enforce?
Sign in to answer questions and track your progress
Sign In