Remove unused `cur_len` in generation_utils.py (#18874)
Remove unused `cur_len` in generation_utils.py (#18874)

* remove unused cur_len in generation_utils.py

* linting
huggingface/transformers,huggingface/transformers,huggingface/transformers,huggingface/transformers