| 1101 | }; |
| 1102 | |
| 1103 | struct llama_sampler * llama_sampler_init_temp_ext(float temp, float delta, float exponent) { |
| 1104 | return llama_sampler_init( |
| 1105 | /* .iface = */ &llama_sampler_temp_ext_i, |
| 1106 | /* .ctx = */ new llama_sampler_temp_ext { |
| 1107 | /* .temp = */ temp, |
| 1108 | /* .delta = */ delta, |
| 1109 | /* .exponent = */ exponent, |
| 1110 | } |
| 1111 | ); |
| 1112 | } |
| 1113 | |
| 1114 | // xtc |
| 1115 |