]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : refactor sampling_info to use buffer_view template (#19368)
authorDaniel Bevenius <redacted>
Wed, 11 Feb 2026 04:38:13 +0000 (05:38 +0100)
committerGitHub <redacted>
Wed, 11 Feb 2026 04:38:13 +0000 (05:38 +0100)
commit2cce9fddb7064da34bf69a8539cebd8032713011
treeda290609c00062599d23e6b8b6b62b5b4c6fcb8e
parent612db61886e0fd523f89a0f93be0ef19d450b7d7
llama : refactor sampling_info to use buffer_view template (#19368)

* llama : refactor sampling_info to use buffer_view template

This commit updates the sampling_info struct in llama-context to use a
buffer_view template for the logits, probs, sampled tokens, and
candidates buffers.

The motivation for this is to simplify the code, improve type safety
and readability.
src/llama-context.cpp
src/llama-context.h
src/llama-impl.h