We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a500911 commit 4c201cdCopy full SHA for 4c201cd
ChatTTS/model/gpt.py
@@ -190,7 +190,9 @@ def _prepare_generation_inputs(
190
try:
191
max_cache_length = past_key_values.get_max_cache_shape()
192
except:
193
- max_cache_length = past_key_values.get_max_length() # deprecated in transformers 4.48
+ max_cache_length = (
194
+ past_key_values.get_max_length()
195
+ ) # deprecated in transformers 4.48
196
cache_length = (
197
past_length
198
if max_cache_length is None
0 commit comments