Skip to content

Commit 1146007

Browse files
committed
compress: fix sampling problem introduced by b0f2736
1 parent e02c45c commit 1146007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/compress/compress.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,8 @@ int main(int argc, char **argv)
488488
params.sparams.min_p = 0;
489489
params.sparams.top_p = 1;
490490
params.sparams.top_k = -1;
491-
params.sparams.temp = 0;
491+
// Avoid temp=0 because greedy sampling breaks stuff
492+
params.sparams.temp = 1.;
492493

493494
gpt_init();
494495

0 commit comments

Comments
 (0)