Avoid scattered assignment of extend_input_len and fill_len by merging them into Req.extend_range (#27610)
This commit is contained in:
@@ -96,9 +96,10 @@ class TestForwardSplitPrefill(CustomTestCase):
|
||||
sampling_params=sampling_params,
|
||||
)
|
||||
req.full_untruncated_fill_ids = req.origin_input_ids
|
||||
req.fill_len = len(req.full_untruncated_fill_ids)
|
||||
req.logprob_start_len = -1
|
||||
req.set_extend_input_len(req.fill_len - len(req.prefix_indices))
|
||||
req.set_extend_range(
|
||||
len(req.prefix_indices), len(req.full_untruncated_fill_ids)
|
||||
)
|
||||
reqs.append(req)
|
||||
|
||||
# Create dummy tree_cache for tests (no prefix caching, just allocation)
|
||||
|
||||
Reference in New Issue
Block a user