This commit is contained in:
Nick
2019-10-30 10:58:16 -06:00
parent a95b754825
commit b97de0808c
+2
View File
@@ -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():