Ignore past_key_values during GPT-Neo inference (#13521)

This commit is contained in:
Alex Hedges 2021-09-13 03:06:07 -04:00 committed by GitHub
parent 07c2607d4d
commit 68b0baeedc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ class GPTNeoConfig(PretrainedConfig):
>>> configuration = model.config
"""
model_type = "gpt_neo"
keys_to_ignore_at_inference = ["past_key_values"]
attribute_map = {"num_attention_heads": "num_heads", "num_hidden_layers": "num_layers"}
def __init__(