File tree 2 files changed +0
-3
lines changed 2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,6 @@ int main(int argc, char ** argv) {
211
211
int guidance_offset = 0 ;
212
212
int original_prompt_len = 0 ;
213
213
if (ctx_guidance) {
214
- params.cfg_negative_prompt .insert (0 , 1 , ' ' );
215
214
guidance_inp = ::llama_tokenize (ctx_guidance, params.cfg_negative_prompt , add_bos);
216
215
217
216
std::vector<llama_token> original_inp = ::llama_tokenize (ctx, params.prompt , add_bos);
Original file line number Diff line number Diff line change @@ -286,7 +286,6 @@ struct llama_server_context
286
286
std::vector<llama_token> p;
287
287
if (first)
288
288
{
289
- s.insert (0 , 1 , ' ' ); // add a space if it's the first
290
289
p = ::llama_tokenize (ctx, s, add_bos);
291
290
first = false ;
292
291
}
@@ -309,7 +308,6 @@ struct llama_server_context
309
308
else
310
309
{
311
310
auto s = json_prompt.template get <std::string>();
312
- s.insert (0 , 1 , ' ' ); // always add a first space
313
311
prompt_tokens = ::llama_tokenize (ctx, s, add_bos);
314
312
}
315
313
You can’t perform that action at this time.
0 commit comments