mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-12 12:04:39 +08:00
update
This commit is contained in:
@@ -227,6 +227,8 @@ class CTRLGenerator():
|
||||
|
||||
if forbid_newline:
|
||||
prompt_logits[_token][self.word2idx['\n']] = -1e8
|
||||
else:
|
||||
prompt_logits[_token][self.word2idx['\n']] *= 0.75
|
||||
|
||||
# Set whitelist
|
||||
if "word_whitelist" in options and token_num in options["word_whitelist"].keys():
|
||||
|
||||
Reference in New Issue
Block a user