Skip to content

Commit 1027a91

Browse files
Update generative-proof-of-concept-CPU-preprocessing-in-memory.py
Lower top_p. Often there is only 1 word to sample from.
1 parent 4254962 commit 1027a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generative-proof-of-concept-CPU-preprocessing-in-memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ def complete_text(text):
10701070
max_new_tokens=20,
10711071
temperature=0.6,
10721072
top_k=40,
1073-
top_p=0.95,
1073+
top_p=0.90,
10741074
repetition_penalty=1.2,
10751075
# presence_penalty=1.2,
10761076
# frequency_penalty=1.3

0 commit comments

Comments
 (0)