Skip to content

Commit a771412

Browse files
authored
fix input_penalty token_id async update bug. (#1022)
1 parent f4193c6 commit a771412

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightllm/common/req_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def init_req_sampling_params(self, req):
159159
token_id_counter(
160160
prompt_ids=prompt_ids, out_token_id_counter=self.req_to_out_token_id_counter[req.req_idx]
161161
)
162+
torch.cuda.current_stream().synchronize()
162163

163164
return
164165

0 commit comments

Comments
 (0)