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 67d1849 commit 90ab8a1Copy full SHA for 90ab8a1
examples/speculative/speculative.cpp
@@ -195,8 +195,8 @@ int main(int argc, char ** argv) {
195
drafts[s].smpl = common_sampler_init(model_dft, params.sparams);
196
}
197
198
- llama_batch batch_dft = llama_batch_init(llama_n_ctx(ctx_dft), 0, 1);
199
- llama_batch batch_tgt = llama_batch_init(llama_n_ctx(ctx_tgt), 0, n_seq_dft);
+ llama_batch batch_dft = llama_batch_init(llama_n_batch(ctx_dft), 0, 1);
+ llama_batch batch_tgt = llama_batch_init(llama_n_batch(ctx_tgt), 0, n_seq_dft);
200
201
const auto t_dec_start = ggml_time_us();
202
0 commit comments