File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1075,12 +1075,12 @@ static const char * llama_sampler_xtc_name(const struct llama_sampler * /*smpl*/
10751075static  void  llama_sample_xtc_apply (struct  llama_sampler  * smpl, llama_token_data_array * cur_p) {
10761076    const  auto  * ctx = (llama_sampler_xtc *) smpl->ctx ;
10771077
1078-     if  (ctx->probability  <= 0 .0f   
1079-         || ctx->threshold  <= 0 .0f   
1080-         || ctx->threshold  >= 1 .0f   
1081-         || ctx->threshold_max  <= 0 .0f   
1082-         || ctx->threshold_max  <= ctx->threshold   
1083-         || cur_p->size  <= 2   
1078+     if  (ctx->probability  <= 0 .0f 
1079+         || ctx->threshold  <= 0 .0f 
1080+         || ctx->threshold  >= 1 .0f 
1081+         || ctx->threshold_max  <= 0 .0f 
1082+         || ctx->threshold_max  <= ctx->threshold 
1083+         || cur_p->size  <= 2 
10841084        || ctx->min_keep  <= 2 ) {
10851085        return ;
10861086    }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments