dungquixote42
6695c6c945
Implement Adaptive-P Sampler (#1100)
* initial implementation of adaptive-p sampler
* explicitly mark candidates unsorted + cleanup qualifiers
* cosmetic update
* reorg prototypes
* lockstep with mainline
* add _impl for _init + reorg
* add LLAMA_API to prototypes
* update sharpness to 10
* lockstep: rng seed
* delete llama_sampling member in llama_sampler_adaptive_p
* fix LLAMA_API return type
* lockstep: rng seed cont
* actually correct implementation
* lockstep: sorting behavior
* const -> constexpr for known constants
* add missing space
* fix softmax usage in adaptive p sampler
* cosmetic changes
* implement do-not-sort version of softmax
* simpify rng seed, add static to constexpr
* refactor: remove iface + use shared rng + use actually original probabilities
* adaptive-p: add dedicated rng back in
* fix initial max_logit + add float vector to adaptive p sampler context + stochastic sampling
* adaptive-p: fuse first softmax with transformation
* adaptive-p: implement binary search selection
* adaptive-p: update comment
2026-01-10 07:58:53 +02:00
..
2024-08-12 15:14:32 +02:00
2024-07-27 07:55:01 +02:00
2025-01-12 13:19:14 +02:00
2024-07-27 07:55:01 +02:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2025-11-07 07:11:23 +02:00
2024-07-27 07:55:01 +02:00
2024-08-12 15:14:32 +02:00
2024-08-12 15:14:32 +02:00
2025-07-02 08:49:42 +02:00
2025-11-30 18:45:38 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2025-05-23 08:07:42 +03:00
2024-06-21 08:38:22 +03:00
2025-05-13 17:53:38 +03:00
2025-09-01 08:38:49 +03:00
2024-06-13 00:41:52 +01:00
2025-12-11 08:05:33 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2025-06-19 10:24:53 +03:00
2025-06-19 10:24:53 +03:00
2025-06-19 10:24:53 +03:00
2025-09-27 08:45:29 +02:00
2024-07-27 07:55:01 +02:00
2025-11-29 07:27:15 +01:00
2025-09-01 08:38:49 +03:00
2024-07-27 07:55:01 +02:00
2025-11-07 16:41:24 +02:00
2025-11-05 10:44:32 +02:00
2025-08-19 18:09:49 +03:00
2024-08-12 15:14:32 +02:00
2025-12-15 08:27:20 +01:00
2024-08-12 15:14:32 +02:00
2026-01-10 07:58:53 +02:00
2024-08-12 15:14:32 +02:00
2025-10-27 18:13:28 +02:00
2025-11-04 14:39:30 +02:00
2024-08-12 15:14:32 +02:00
2024-08-12 15:14:32 +02:00
2024-06-13 00:41:52 +01:00
2023-03-29 20:21:09 +03:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2024-06-13 00:41:52 +01:00
2025-09-27 08:45:29 +02:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2025-11-30 18:45:38 +01:00
2024-01-23 08:51:27 +02:00
2023-08-30 09:50:55 +03:00
2024-06-13 00:41:52 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2024-06-13 00:41:52 +01:00
2024-07-27 07:55:01 +02:00
2024-07-27 07:55:01 +02:00
2024-06-13 00:41:52 +01:00
2024-04-12 19:43:38 +01:00