Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,11 @@ def make_random_decode_batch():
(
x_ex, # hidden_states
mask_ex, # attention_mask
None, # position_ids (unused)
(past_k_ex, past_v_ex), # past_key_value
False, # output_attentions
True, # use_cache
None, # cache_position (unused)
(cos_ex, sin_ex), # position_embeddings
),
{
"past_key_value": (past_k_ex, past_v_ex),
"position_embeddings": (cos_ex, sin_ex),
},
)
cm.save(save_path)

Expand Down
Loading