Skip to content

Commit

Permalink
common : fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 6, 2023
1 parent da5eaef commit caa9249
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,15 @@ std::string llama_sampling_order_print(const llama_sampling_params & params) {
default : break;
}
}
} else result += "-> mirostat ";
} else {
result += "-> mirostat ";
}

return result;
}

// no reasons to expose this function in header
void sampler_queue(
static void sampler_queue(
struct llama_context * ctx_main,
const llama_sampling_params & params,
llama_token_data_array & cur_p,
Expand Down

0 comments on commit caa9249

Please sign in to comment.