mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
Update src/transformers/generation/configuration_utils.py
This commit is contained in:
parent
a5f7900b5c
commit
eaa2e2d169
@ -649,7 +649,7 @@ class GenerationConfig(PushToHubMixin):
|
|||||||
if self.do_sample is False:
|
if self.do_sample is False:
|
||||||
greedy_wrong_parameter_msg = (
|
greedy_wrong_parameter_msg = (
|
||||||
"`do_sample` is set to `False`, so sampling-based generation is disabled. "
|
"`do_sample` is set to `False`, so sampling-based generation is disabled. "
|
||||||
"The parameter `{flag_name}={flag_value}` will be ignored, as it only applies to sampling-based generation. "
|
"The parameter `{flag_name}` is set to `{flag_value}`, but will be ignored as it only applies to sampling-based generation. "
|
||||||
"Consider enabling `do_sample` or removing `{flag_name}`."
|
"Consider enabling `do_sample` or removing `{flag_name}`."
|
||||||
)
|
)
|
||||||
if self.temperature is not None and self.temperature != 1.0:
|
if self.temperature is not None and self.temperature != 1.0:
|
||||||
|
Loading…
Reference in New Issue
Block a user