mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-06 05:33:50 +01:00
Fix temperature_last having no effect in llama.cpp server sampler order
This commit is contained in:
parent
11dc6fdfce
commit
8a3d866401
|
|
@ -119,9 +119,9 @@ class LlamaServer:
|
|||
penalty_found = True
|
||||
|
||||
# Move temperature to the end if temperature_last is true and temperature exists in the list
|
||||
if state["temperature_last"] and "temperature" in samplers:
|
||||
samplers.remove("temperature")
|
||||
samplers.append("temperature")
|
||||
if state["temperature_last"] and "temperature" in filtered_samplers:
|
||||
filtered_samplers.remove("temperature")
|
||||
filtered_samplers.append("temperature")
|
||||
|
||||
payload["samplers"] = filtered_samplers
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue