We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda0e4b commit 47bb241Copy full SHA for 47bb241
examples/speculative/speculative.cpp
@@ -190,8 +190,8 @@ int main(int argc, char ** argv) {
190
drafts[s].smpl = common_sampler_init(model_dft, params.sparams);
191
}
192
193
- llama_batch batch_dft = llama_batch_init(params.n_ctx, 0, 1);
194
- llama_batch batch_tgt = llama_batch_init(params.n_ctx, 0, n_seq_dft);
+ llama_batch batch_dft = llama_batch_init(llama_n_ctx(ctx_dft), 0, 1);
+ llama_batch batch_tgt = llama_batch_init(llama_n_ctx(ctx_tgt), 0, n_seq_dft);
195
196
const auto t_dec_start = ggml_time_us();
197
0 commit comments