mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-11 11:30:20 +08:00
fix reasoning_max_tokens (#4277)
This commit is contained in:
@@ -163,8 +163,6 @@ class SamplingParams:
|
|||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
if self.seed is None:
|
if self.seed is None:
|
||||||
self.seed = random.randint(0, 922337203685477580)
|
self.seed = random.randint(0, 922337203685477580)
|
||||||
if self.max_tokens is not None and self.reasoning_max_tokens is None:
|
|
||||||
self.reasoning_max_tokens = max(int(self.max_tokens * 0.8), 1)
|
|
||||||
self._verify_args()
|
self._verify_args()
|
||||||
|
|
||||||
def _verify_args(self) -> None:
|
def _verify_args(self) -> None:
|
||||||
|
Reference in New Issue
Block a user