mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 22:55:22 +00:00
Fix temperature_last having no effect in llama.cpp server sampler order
This commit is contained in:
parent
11dc6fdfce
commit
8a3d866401
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue