MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / exist_prefill

Method exist_prefill

fastdeploy/worker/gpu_model_runner.py:290–296  ·  view source on GitHub ↗

check whether prefill stage exist

(self)

Source from the content-addressed store, hash-verified

288 logger.exception("Exception in async output loop: %s", e)
289
290 def exist_prefill(self):
291 """
292 check whether prefill stage exist
293 """
294 if envs.ENABLE_V1_KVCACHE_SCHEDULER:
295 return self.exist_prefill_flag
296 return (self.share_inputs["seq_lens_encoder"] > 0).any().cpu().numpy().item()
297
298 @property
299 def is_sleeping(self):

Callers 5

only_decodeMethod · 0.95
_prepare_inputsMethod · 0.95
_postprocessMethod · 0.95

Calls 1

numpyMethod · 0.80

Tested by

no test coverage detected