mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
kcpp image handling fix
This commit is contained in:
+1
-1
@@ -5431,7 +5431,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
|
||||
}
|
||||
}
|
||||
}
|
||||
if(triggerff && kcpp_data->use_contextshift && (file_format == FileFormat::GGUF_GENERIC))
|
||||
if(triggerff && kcpp_data->use_contextshift && (file_format == FileFormat::GGUF_GENERIC) && !media_data_changed)
|
||||
{
|
||||
DoContextShifting(llama_ctx_v4, draft_ctx, current_context_tokens, embd_inp, inputs.max_length, nctx, false);
|
||||
triggersc = false;
|
||||
|
||||
+2
-2
@@ -8731,8 +8731,6 @@ def show_gui():
|
||||
# refresh
|
||||
runopts_var.trace_add("write", changerunmode)
|
||||
changerunmode(1,1,1)
|
||||
global runmode_untouched
|
||||
runmode_untouched = True
|
||||
togglerope(1,1,1)
|
||||
toggleflashattn(1,1,1)
|
||||
togglectxshift(1,1,1)
|
||||
@@ -8743,6 +8741,8 @@ def show_gui():
|
||||
toggleadmin(1,1,1)
|
||||
updatejinjathinktoggle(1,1,1)
|
||||
togglerpcmode(1,1,1)
|
||||
global runmode_untouched
|
||||
runmode_untouched = True
|
||||
|
||||
# launch
|
||||
def guilaunch():
|
||||
|
||||
Reference in New Issue
Block a user