File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ def prefill_metadata(self) -> Optional["XFormersMetadata"]:
199
199
# Compute some attn_metadata fields which default to None
200
200
query_start_loc = (None if self .query_start_loc is None else
201
201
self .query_start_loc [:self .num_prefills + 1 ])
202
+ seq_start_loc = (None if self .seq_start_loc is None else
203
+ self .seq_start_loc [:self .num_prefills + 1 ])
202
204
slot_mapping = (None if self .slot_mapping is None else
203
205
self .slot_mapping [:self .num_prefill_tokens ])
204
206
seq_lens = (None if self .seq_lens is None else
@@ -225,6 +227,7 @@ def prefill_metadata(self) -> Optional["XFormersMetadata"]:
225
227
max_prefill_seq_len = self .max_prefill_seq_len ,
226
228
max_decode_seq_len = 0 ,
227
229
query_start_loc = query_start_loc ,
230
+ seq_start_loc = seq_start_loc ,
228
231
context_lens_tensor = context_lens_tensor ,
229
232
block_tables = block_tables ,
230
233
use_cuda_graph = False ,
You can’t perform that action at this time.
0 commit comments