Fix `cache_position` initialisation for generation with `use_cache=False` (#30485)
* Fix cache_position init for generation * Update src/transformers/generation/utils.py Co-authored-by:Arthur <48595927+ArthurZucker@users.noreply.github.com> * Fix cache position update --------- Co-authored-by:
Arthur <48595927+ArthurZucker@users.noreply.github.com>
Showing
Please register or sign in to comment