Prefix Cache Aware Scheduling [1/n] (#10128)
Signed-off-by: rickyx <rickyx@anyscale.com>
This commit is contained in:
@@ -579,6 +579,9 @@ class Sequence:
|
||||
return 1
|
||||
return self.data.get_num_uncomputed_tokens()
|
||||
|
||||
def get_num_computed_tokens(self) -> int:
|
||||
return self.data.get_num_computed_tokens()
|
||||
|
||||
def is_prefill(self) -> bool:
|
||||
return self.data.stage == SequenceStage.PREFILL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user