Skip to content

Commit

Permalink
Fixing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggotHATE committed Dec 5, 2023
1 parent a6c3278 commit 0b87ef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ std::string parse_samplers_input(std::string input) {
std::string name = input.substr(0,separator);
input = input.substr(separator+1);
separator = input.find(';');

if (samplers_symbols.find(name) != samplers_symbols.end()) {
output += samplers_symbols[name];
}
Expand Down
2 changes: 1 addition & 1 deletion common/sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void sampler_queue(
const float tfs_z = params.tfs_z;
const float typical_p = params.typical_p;
const std::string & samplers_sequence = params.samplers_sequence;

for (auto s : samplers_sequence) {
switch (s){
case 'k': llama_sample_top_k (ctx_main, &cur_p, top_k, min_keep); break;
Expand Down

0 comments on commit 0b87ef4

Please sign in to comment.