For long prompts, the prefill stage, in which we create a beam state corresponding to an input byte sequence in preparation for conditional generation, can be quite slow.
We should think about faster alternatives which do not involve processing the input byte sequence byte-by-byte, but rather use a modified version of the token healing heuristic to initialize the beam (modified so that it doesn't suffer from the degenerate cases we have identified with this heuristic).
Tagging @chanr0
For long prompts, the
prefillstage, in which we create a beam state corresponding to an input byte sequence in preparation for conditional generation, can be quite slow.We should think about faster alternatives which do not involve processing the input byte sequence byte-by-byte, but rather use a modified version of the token healing heuristic to initialize the beam (modified so that it doesn't suffer from the degenerate cases we have identified with this heuristic).
Tagging @chanr0