mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-09-13 10:19:08 +02:00
sampling : refactor init to use llama_sampling_params
This commit is contained in:
@@ -128,7 +128,7 @@ bool eval_string(struct MyModel * mymodel,const char* str){
|
||||
llama_token sampling_id(struct MyModel* mymodel) {
|
||||
llama_context* ctx = mymodel->ctx;
|
||||
gpt_params params = mymodel->params;
|
||||
llama_sampling_params & sparams = params.sampling_params;
|
||||
llama_sampling_params & sparams = params.sparams;
|
||||
// int n_ctx = llama_n_ctx(ctx);
|
||||
|
||||
// out of user input, sample next token
|
||||
|
||||
Reference in New Issue
Block a user