This commit is contained in:
Nick
2019-10-29 08:58:36 -06:00
parent 32369ad55a
commit 4c2e4532d6
+1
View File
@@ -212,6 +212,7 @@ while True:
# disallow some tokens
prompt_logits[_token][word2idx['<unk>']] = -1e8
prompt_logits[_token][word2idx['\n']] = -1e8
# sometimes, when generating from reddit,
# it tries to generate the Score (reddit Karma) immediately after generating the Title: