mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-02 14:50:13 +01:00
Fix temperature_last when temperature not in sampler priority (#6439)
This commit is contained in:
parent
9d8b1c5fd9
commit
03a2e70054
|
|
@ -571,11 +571,10 @@ def get_logits_processor_patch(self, **kwargs):
|
|||
if generation_config.temperature_last:
|
||||
for param_name in ['temperature', 'dynamic_temperature', 'quadratic_sampling']:
|
||||
if param_name in sampler_priority:
|
||||
if param_name in sampler_priority:
|
||||
index = sampler_priority.index(param_name)
|
||||
sampler_priority.append(sampler_priority.pop(index))
|
||||
else:
|
||||
sampler_priority.append(param_name)
|
||||
index = sampler_priority.index(param_name)
|
||||
sampler_priority.append(sampler_priority.pop(index))
|
||||
else:
|
||||
sampler_priority.append(param_name)
|
||||
|
||||
class_name_to_nickname = {
|
||||
'DynamicTemperatureLogitsWarper': 'dynamic_temperature',
|
||||
|
|
|
|||
Loading…
Reference in a new issue