[PD] Update prefill.py (#7190)
This commit is contained in:
@@ -33,8 +33,8 @@ from torch.distributed import ProcessGroup
|
||||
|
||||
from sglang.srt.disaggregation.base import BaseKVManager, BaseKVReceiver, KVArgs, KVPoll
|
||||
from sglang.srt.disaggregation.utils import (
|
||||
FAKE_BOOTSTRAP_HOST,
|
||||
DisaggregationMode,
|
||||
FakeBootstrapHost,
|
||||
KVClassType,
|
||||
MetadataBuffers,
|
||||
ReqToMetadataIdxAllocator,
|
||||
@@ -207,7 +207,7 @@ class DecodePreallocQueue:
|
||||
|
||||
def add(self, req: Req) -> None:
|
||||
"""Add a request to the pending queue."""
|
||||
if req.bootstrap_host == FakeBootstrapHost:
|
||||
if req.bootstrap_host == FAKE_BOOTSTRAP_HOST:
|
||||
# Fake transfer for warmup reqs
|
||||
kv_receiver_class = get_kv_class(TransferBackend.FAKE, KVClassType.RECEIVER)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user