diff options
Diffstat (limited to 'common/sampling.h')
-rw-r--r-- | common/sampling.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/sampling.h b/common/sampling.h index 655732ad..eeaa53b8 100644 --- a/common/sampling.h +++ b/common/sampling.h @@ -116,6 +116,11 @@ std::string llama_sampling_print(const llama_sampling_params & params); // Print sampling order into a string std::string llama_sampling_order_print(const llama_sampling_params & params); +std::string llama_sampling_type_to_str(llama_sampler_type sampler_type); + +std::vector<llama_sampler_type> llama_sampling_types_from_names(const std::vector<std::string> & names, bool allow_alt_names); +std::vector<llama_sampler_type> llama_sampling_types_from_chars(const std::string & names_string); + // this is a common sampling function used across the examples for convenience // it can serve as a starting point for implementing your own sampling function // Note: When using multiple sequences, it is the caller's responsibility to call |