Skip to content

Commit c6562cc

Browse files
committed
Fixed sampler order
1 parent 2987bc6 commit c6562cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,8 @@ def apply_func(token_data_array: llama_cpp.llama_token_data_array_p):
760760
sampler.add_top_p(top_p, min_keep)
761761
sampler.add_min_p(min_p, min_keep)
762762
sampler.add_temp(temp)
763-
sampler.add_dist(self._seed)
764763
sampler.add_xtc(xtc_probability, xtc_threshold, min_keep, self._seed)
764+
sampler.add_dist(self._seed)
765765
return sampler
766766

767767
def sample(

0 commit comments

Comments
 (0)