summaryrefslogtreecommitdiff
path: root/common/sampling.h
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-05-22 20:04:20 +0300
committerGitHub <noreply@github.com>2024-05-22 20:04:20 +0300
commit6ff13987ad1a9519bee13dd98b6a21cd98979aab (patch)
treee085c9fbac76f57dbbef6233b42eb981352e9925 /common/sampling.h
parent38c03478a37e460ecd3a21155b338a83bfed7f90 (diff)
common : normalize naming style (#7462)
* common : normalize naming style ggml-ci * common : match declaration / definition order * zig : try to fix build
Diffstat (limited to 'common/sampling.h')
-rw-r--r--common/sampling.h5
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