[Worker] E2-identity and rank-tagged e2-toggles startup lines
Each worker logs its launch identity and, after warm-up and capture, one e2-toggles line with the effective toggle state read back from the C++ extensions through two new tensor-free query ops. Both extensions must be rebuilt. Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
@@ -740,6 +740,12 @@ 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).
|
||||
from vllm.v1.worker.e2_identity import log_launch_identity
|
||||
|
||||
log_launch_identity(self.model_runner, self.vllm_config)
|
||||
|
||||
if has_ec_transfer():
|
||||
get_ec_transfer().start_worker_services()
|
||||
|
||||
@@ -1093,6 +1099,13 @@ class Worker(WorkerBase):
|
||||
with self._get_cudagraph_capture_context():
|
||||
cuda_graph_memory_bytes = self.model_runner.capture_model()
|
||||
|
||||
# Log-only: this rank's determinism toggles, once, now that the warmup
|
||||
# and capture above have launched persistent_topk and Marlin MoE, so
|
||||
# their C++ statics are filled (v1/worker/e2_toggles.py). Never raises.
|
||||
from vllm.v1.worker import e2_toggles
|
||||
|
||||
e2_toggles.arm()
|
||||
|
||||
# Compare actual vs estimated CUDA graph memory (if we did profiling)
|
||||
if (
|
||||
hasattr(self, "cudagraph_memory_estimate")
|
||||
|
||||
Reference in New Issue
Block a user