sampling : remove version from sampler chain

This commit removes the version field from the sampler chain and instead
used the sampler pointer itself for change detection.
This commit is contained in:
Daniel Bevenius
2025-11-19 06:59:03 +01:00
parent 26be108be8
commit 0da7e7dccc
5 changed files with 2 additions and 21 deletions

View File

@@ -477,7 +477,7 @@ bool llm_graph_input_sampling::can_reuse(const llm_graph_params & params) {
}
for (const auto & [seq_id, sampler] : params.samplers) {
if (sampler_versions[seq_id] != llama_sampler_chain_get_version(sampler)) {
if (samplers[seq_id] != sampler) {
return false;
}
}