From 557d867278d8d02b3757eac37479d8fff8ee7b46 Mon Sep 17 00:00:00 2001 From: KerfuffleV2 Date: Thu, 9 Nov 2023 00:10:14 -0700 Subject: [PATCH] Minor cleanups. --- examples/simple-inference/simple-inference.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/simple-inference/simple-inference.cpp b/examples/simple-inference/simple-inference.cpp index 857341719..961792214 100644 --- a/examples/simple-inference/simple-inference.cpp +++ b/examples/simple-inference/simple-inference.cpp @@ -409,11 +409,8 @@ bool gen_ctx::init_batches() { #ifndef LLAMA_NO_SEQREP_SAMPLER seqrep_rewind_slot & rw_slot = bs.rewind_state.get_rewind_slot(0); rw_slot.ctx_sampling = llama_sampling_init(params.sparams); - // llama_sampling_cp(bs.ctx_sampling, rw_slot.ctx_sampling); - // bs.rewind_state.set_logits_slot(ctx, 0, (prompt_size - 1) % params.n_batch); #endif ctxs_seq.push_back(bs); - // if (i > 0) llama_kv_cache_seq_cp(ctx, 0, i, 0, prompt_size); } if (!ctxs_seq.empty()) { focused_sequence = ctxs_seq.size() - 1;