-
Notifications
You must be signed in to change notification settings - Fork 299
The past_key_value in MPLUG doesn't seem to work. #94
Copy link
Copy link
Open
Description
I change the code like this, and it didn't work.
kv_cache = None
prev_tokens = set()
max_length = int(max_length)
for step in range(max_length):
dec_feat_seq = self.model(alive_seq,
encoder_hidden_states = src_features,
encoder_attention_mask = attention_mask,
past_key_values = None,
use_cache = False,
return_dict = True,
reduction = 'none')
kv_cache = dec_feat_seq.past_key_values
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels