mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 11:06:15 +08:00
[V1] Fix detokenizer ports (#10224)
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
parent
25144ceed0
commit
f9dadfbee3
@ -48,11 +48,13 @@ class Detokenizer:
|
||||
# For example, it does not terminate properly. We need to improve this.
|
||||
self.push_port = get_open_port()
|
||||
self.pull_port = get_open_port()
|
||||
# NOTE: The push port of the engine process should be the same as the
|
||||
# pull port of the detokenizer process. Vice versa.
|
||||
self.detokenizer = DetokenizerProc(tokenizer_name=tokenizer_name,
|
||||
tokenizer_mode=tokenizer_mode,
|
||||
trust_remote_code=trust_remote_code,
|
||||
push_port=self.push_port,
|
||||
pull_port=self.pull_port)
|
||||
push_port=self.pull_port,
|
||||
pull_port=self.push_port)
|
||||
self.detokenizer.start()
|
||||
|
||||
self.zmq_context = zmq.Context()
|
||||
@ -95,8 +97,8 @@ class DetokenizerProc(multiprocessing.Process):
|
||||
self.tokenizer_name = tokenizer_name
|
||||
self.tokenizer_mode = tokenizer_mode
|
||||
self.trust_remote_code = trust_remote_code
|
||||
# NOTE: The pull_port of the detokenizer should be the same as the
|
||||
# push_port of the engine. Vice versa.
|
||||
# NOTE: The pull_port of the detokenizer process should be the same as
|
||||
# the push_port of the engine process. Vice versa.
|
||||
self.pull_port = pull_port
|
||||
self.push_port = push_port
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user