mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-01-12 16:15:21 +01:00
Fix Z algorithm in basic phrase bias script
This commit is contained in:
parent
90c5cebb6d
commit
c94f875608
@ -183,8 +183,8 @@ function userscript.genmod()
|
|||||||
max_overlap[i] = 0
|
max_overlap[i] = 0
|
||||||
local s = {}
|
local s = {}
|
||||||
local z = {[0] = 0}
|
local z = {[0] = 0}
|
||||||
local l = 1
|
local l = 0
|
||||||
local r = 1
|
local r = 0
|
||||||
local n_s = math.min(n_tokens, bias_entry.n_tokens)
|
local n_s = math.min(n_tokens, bias_entry.n_tokens)
|
||||||
local j = 0
|
local j = 0
|
||||||
for k = 1, n_s do
|
for k = 1, n_s do
|
||||||
|
Loading…
Reference in New Issue
Block a user