Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make use of prefilled cache in beam_search when `predict_batch_with_a…
…ux.prompt_with_targets` is set to True Without this change, the targets that are actually prompts will still be decoded AR style in order to build the cache, the logits are thrown away. With this change, and setting `EncoderDecoder.predict_batch_with_aux.prompt_with_target` to `True` we instead skip over the given prompts all together, speeding up the decode. PiperOrigin-RevId: 559256044
- Loading branch information