From 4537853e2c1760a00bd278fb97f26f4c4fb149cb Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 3 Nov 2023 08:13:50 -0700 Subject: [PATCH] Change min_p default to 1.0 --- modules/sampler_hijack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sampler_hijack.py b/modules/sampler_hijack.py index 6fd08079..2fda401c 100644 --- a/modules/sampler_hijack.py +++ b/modules/sampler_hijack.py @@ -252,8 +252,8 @@ def get_logits_processor_patch(self, **kwargs): def generation_config_init_patch(self, **kwargs): self.__init___old(**kwargs) + self.min_p = kwargs.pop("min_p", 1.0) self.tfs = kwargs.pop("tfs", 1.0) - self.min_p = kwargs.pop("min_p", 0.0) self.top_a = kwargs.pop("top_a", 0.0) self.mirostat_mode = kwargs.pop("mirostat_mode", 0) self.mirostat_eta = kwargs.pop("mirostat_eta", 0.1)