[Guards] Draft identity and draft PLE guard report the drafter's own state
Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
@@ -740,8 +740,9 @@ class Worker(WorkerBase):
|
||||
model_runner = cast("GPUModelRunnerV2", self.model_runner)
|
||||
model_runner._setup_ple_offload(self.parallel_config._ple_offload_ipc_path)
|
||||
|
||||
# Log-only: this rank's PLE / capture identity for target and drafter,
|
||||
# read after the offload placeholders are armed (v1/worker/e2_identity.py).
|
||||
# Log-only: this rank's PLE / capture identity for the target, read
|
||||
# after the offload placeholders are armed (v1/worker/e2_identity.py).
|
||||
# The drafter's line follows initialize_kv_cache (initialize_from_config).
|
||||
from vllm.v1.worker.e2_identity import log_launch_identity
|
||||
|
||||
log_launch_identity(self.model_runner, self.vllm_config)
|
||||
@@ -1034,6 +1035,12 @@ class Worker(WorkerBase):
|
||||
kv_cache_allocation_context=mem_pool_context,
|
||||
)
|
||||
|
||||
# Log-only: the drafter's identity line, now that initialize_kv_cache
|
||||
# has resolved its cudagraph managers (v1/worker/e2_identity.py).
|
||||
from vllm.v1.worker.e2_identity import log_draft_identity
|
||||
|
||||
log_draft_identity(self.model_runner)
|
||||
|
||||
# Build KV-zero metadata outside the CuMem pool so the bookkeeping
|
||||
# GPU tensors (seg_addrs, block-id buffers) use the standard PyTorch
|
||||
# allocator and are not discarded during sleep/wake cycles.
|
||||
|
||||
Reference in New Issue
Block a user