mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
fix typos (#3840)
* fix typos * ci --------- Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
This commit is contained in:
@@ -364,7 +364,7 @@ class Sampler(nn.Layer):
|
||||
)
|
||||
if sampling_metadata.enable_early_stop:
|
||||
# will set the stop batch in stop_flags
|
||||
assert sampling_metadata.stop_flags is not None, "need stop_flags for eary stop"
|
||||
assert sampling_metadata.stop_flags is not None, "need stop_flags for early stop"
|
||||
self.early_stopper.process(probs, next_tokens, sampling_metadata.stop_flags)
|
||||
|
||||
sampler_output = SamplerOutput(
|
||||
|
Reference in New Issue
Block a user