Skip to content

Commit 427d0f5

Browse files
authored
[XPU] use int32 MAX_INFER_SEED (not support "%" int64) (#7646)
1 parent 4f72347 commit 427d0f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastdeploy/worker/xpu_model_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ def _init_share_inputs(self, max_num_seqs: int):
912912
"""Initialize all share buffers for model inputs.
913913
Note: In the future, we may abandon share buffers.
914914
"""
915-
self.MAX_INFER_SEED = 9223372036854775806
915+
self.MAX_INFER_SEED = 2147483646
916916
self.share_inputs = {}
917917

918918
self.share_inputs["pre_ids"] = paddle.full(

0 commit comments

Comments
 (0)