diff options
author | MaggotHATE <clay1326@gmail.com> | 2023-12-05 15:05:51 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 12:05:51 +0200 |
commit | 52c8bc3cf312e1caf02d37bfb9d9d865cbe33594 (patch) | |
tree | a07536ee0a9be355f7b624f96119f443b5934817 /examples | |
parent | e4b76bbe316ee50fb17d9ac29e654c0edf830eba (diff) |
sampling : custom samplers order (#4285)
* Samplers sequence order w parameter
* Cleaned commented code
* Fixed formatting
* Rewrote with unordered_map
* Revert and rewrite, too many problems and safeguards would be needed
* Fixed code style
* Code style fixes according to review
* More readable samplers input string, fixed help
* Style fix in sampler_queue
* Formatting fixes
* Fixing whitespaces
Diffstat (limited to 'examples')
-rw-r--r-- | examples/main/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp index c5cdfbf2..c096f110 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -437,6 +437,7 @@ int main(int argc, char ** argv) { } } LOG_TEE("sampling: \n%s\n", llama_sampling_print(sparams).c_str()); + LOG_TEE("sampling order: \n%s\n", llama_sampling_order_print(sparams).c_str()); LOG_TEE("generate: n_ctx = %d, n_batch = %d, n_predict = %d, n_keep = %d\n", n_ctx, params.n_batch, params.n_predict, params.n_keep); LOG_TEE("\n\n"); |