add power law to the new `samplers` vector

This commit is contained in:
ddh0 2025-12-14 22:32:27 -06:00
parent 4e28eb2ffe
commit 1c58e9a96a
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ struct common_sampler * common_sampler_init(const struct llama_model * model, co
break; break;
case COMMON_SAMPLER_TYPE_POWER_LAW: case COMMON_SAMPLER_TYPE_POWER_LAW:
has_distribution_sampler = true; has_distribution_sampler = true;
samplers.push_back(llama_sampler_init_power_law (params.power_law_target, params.power_law_decay, params.seed));
break; break;
default: default:
GGML_ASSERT(false && "unknown sampler type"); GGML_ASSERT(false && "unknown sampler type");