transformers
774dc274 - Do not erase a cache_position passed explicitly to generate(), if there is one (#37986)

Commit
224 days ago
Do not erase a cache_position passed explicitly to generate(), if there is one (#37986) Do not erase a cache_position initialization passed explicitly to generate(), if there is one. But: Let initialization replace cache_position if it's set to None. I assume that if the value is explicitly passed but None, we should initialize anyway.
Author
Parents
Loading