File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lightllm/server/httpserver Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 55import uvloop
66import rpyc
77import time
8+ import copy
89import hashlib
910import datetime
1011import websockets
@@ -199,6 +200,10 @@ async def generate(
199200 assert False , "dead code path"
200201
201202 try :
203+ old_multimodal_params = None
204+ if self .nnodes > 1 and self .node_rank == 0 and self .args .dp == 1 :
205+ old_multimodal_params = copy .deepcopy (multimodal_params )
206+
202207 if self .pd_mode .is_P_or_NORMAL ():
203208 multimodal_params .verify_and_preload ()
204209
@@ -245,7 +250,7 @@ async def generate(
245250 self .req_id_to_out_inf [group_request_id ] = req_status
246251
247252 await self .transfer_to_next_module_or_node (
248- prompt , sampling_params , multimodal_params , req_status .group_req_objs
253+ prompt , sampling_params , old_multimodal_params , req_status .group_req_objs
249254 )
250255
251256 results_generator = self ._wait_to_token_package (
You can’t perform that action at this time.
0 commit comments