@@ -134,19 +134,20 @@ void sampler_queue(
134134 llama_token_data_array & cur_p,
135135 size_t & min_keep) {
136136
137- const float temp = params.temp ;
138- const float smoothing_factor = params.smoothing_factor ;
139- const float smoothing_curve = params.smoothing_curve ;
140- const float dynatemp_range = params.dynatemp_range ;
141- const int32_t top_k = params.top_k ;
142- const float top_p = params.top_p ;
143- const float min_p = params.min_p ;
144- const float tfs_z = params.tfs_z ;
145- const float typical_p = params.typical_p ;
146- const float p_step = params.p_step ;
147- const float xtc_probability = params.xtc_probability ;
148- const float xtc_threshold = params.xtc_threshold ;
149- const std::string samplers_sequence = params.samplers_sequence ;
137+ const float temp = params.temp ;
138+ const float smoothing_factor = params.smoothing_factor ;
139+ const float smoothing_curve = params.smoothing_curve ;
140+ const float dynatemp_range = params.dynatemp_range ;
141+ const int32_t top_k = params.top_k ;
142+ const float top_p = params.top_p ;
143+ const float min_p = params.min_p ;
144+ const float tfs_z = params.tfs_z ;
145+ const float typical_p = params.typical_p ;
146+ const float p_step = params.p_step ;
147+ const float xtc_probability = params.xtc_probability ;
148+ const float xtc_threshold = params.xtc_threshold ;
149+ const float xtc_probability_once = params.xtc_probability_once ;
150+ const std::string samplers_sequence = params.samplers_sequence ;
150151
151152 for (auto s : samplers_sequence){
152153 switch (s){
@@ -156,7 +157,7 @@ void sampler_queue(
156157 case ' p' : llama_sample_top_p (ctx_main, &cur_p, top_p, min_keep); break ;
157158 case ' m' : llama_sample_min_p_addon (ctx_main, &cur_p, min_p, min_keep); break ;
158159 case ' s' : llama_sample_p_step_addon (ctx_main, &cur_p, p_step, min_keep); break ;
159- case ' x' : llama_sample_xtc_addon (ctx_main, &cur_p, xtc_probability, xtc_threshold, min_keep); break ;
160+ case ' x' : llama_sample_xtc_addon (ctx_main, &cur_p, xtc_probability, xtc_threshold, xtc_probability_once, min_keep); break ;
160161 case ' t' : {
161162 if (dynatemp_range>0 )
162163 {
0 commit comments