Skip to content

Commit 47bb241

Browse files
committed
speculative : fix batch sizes at initialization
ggml-ci
1 parent cda0e4b commit 47bb241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/speculative/speculative.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ int main(int argc, char ** argv) {
190190
drafts[s].smpl = common_sampler_init(model_dft, params.sparams);
191191
}
192192

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);
193+
llama_batch batch_dft = llama_batch_init(llama_n_ctx(ctx_dft), 0, 1);
194+
llama_batch batch_tgt = llama_batch_init(llama_n_ctx(ctx_tgt), 0, n_seq_dft);
195195

196196
const auto t_dec_start = ggml_time_us();
197197

0 commit comments

Comments
 (0)