File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1101,8 +1101,11 @@ common_init_result::common_init_result(common_params & params) :
11011101 pimpl->samplers_seq_config [i] = { i, common_sampler_get (pimpl->samplers [i].get ()) };
11021102 }
11031103
1104- cparams.samplers = pimpl->samplers_seq_config .data ();
1105- cparams.n_samplers = pimpl->samplers_seq_config .size ();
1104+ // TODO: temporarily gated behind a flag
1105+ if (params.sampling .backend_sampling ) {
1106+ cparams.samplers = pimpl->samplers_seq_config .data ();
1107+ cparams.n_samplers = pimpl->samplers_seq_config .size ();
1108+ }
11061109
11071110 llama_context * lctx = llama_init_from_model (model, cparams);
11081111 if (lctx == NULL ) {
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ int main(int argc, char ** argv) {
8181 sampler_configs.push_back ({ i, smpl });
8282 }
8383
84+ // TODO: temporarily gated behind a flag
8485 if (params.sampling .backend_sampling ) {
8586 ctx_params.samplers = sampler_configs.data ();
8687 ctx_params.n_samplers = sampler_configs.size ();
You can’t perform that action at this time.
0 commit comments