chore(format): run black on dev (#901)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-02-18 15:19:25 +09:00
committed by GitHub
parent a500911234
commit 4c201cd56d
+3 -1
View File
@@ -190,7 +190,9 @@ class GPT(nn.Module):
try:
max_cache_length = past_key_values.get_max_cache_shape()
except:
max_cache_length = past_key_values.get_max_length() # deprecated in transformers 4.48
max_cache_length = (
past_key_values.get_max_length()
) # deprecated in transformers 4.48
cache_length = (
past_length
if max_cache_length is None