mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-18 23:49:46 +00:00
Fix warnings (#1864)
This commit is contained in:
parent
9999b8950d
commit
06d39dff73
4 changed files with 5 additions and 5 deletions
|
|
@ -187,7 +187,7 @@ extern "C"
|
|||
}
|
||||
else if(file_format==FileFormat::GGUF_GENERIC)
|
||||
{
|
||||
printf("\n---\nIdentified as GGUF model.\nAttempting to Load...\n---\n", file_format);
|
||||
printf("\n---\nIdentified as GGUF model.\nAttempting to Load...\n---\n");
|
||||
}
|
||||
else if(file_format==FileFormat::GGML || file_format==FileFormat::GGHF || file_format==FileFormat::GGJT || file_format==FileFormat::GGJT_2 || file_format==FileFormat::GGJT_3)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3754,7 +3754,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
|
|||
if (debugmode==1 && !is_quiet)
|
||||
{
|
||||
std::string outstr = "";
|
||||
printf("\n\n[Debug: Dump %d Raw Input Tokens]\n",embd_inp.size());
|
||||
printf("\n\n[Debug: Dump %zu Raw Input Tokens]\n",embd_inp.size());
|
||||
outstr += get_tok_vec_str(embd_inp);
|
||||
printf("%s\n", RemoveBell(outstr).c_str());
|
||||
}
|
||||
|
|
@ -3988,7 +3988,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
|
|||
int32_t decode_status2 = llama_decode(llama_ctx_v4, smallbatch.batch);
|
||||
if(debugmode==1 && !is_quiet)
|
||||
{
|
||||
printf("Retry chunk: %d at %d... status: %s\n",chunk.size(),temp_past,(decode_status2==0?"ok":"fail"));
|
||||
printf("Retry chunk: %zu at %d... status: %s\n",chunk.size(),temp_past,(decode_status2==0?"ok":"fail"));
|
||||
}
|
||||
evalres = (evalres && (decode_status2==0));
|
||||
temp_past += chunk.size();
|
||||
|
|
|
|||
|
|
@ -916,7 +916,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
|
|||
|
||||
if(!sd_is_quiet && sddebugmode==1)
|
||||
{
|
||||
printf("\nImageGen References: RefImg=%d Wan=%d Photomaker=%d\n",reference_imgs.size(),wan_imgs.size(),photomaker_imgs.size());
|
||||
printf("\nImageGen References: RefImg=%zu Wan=%zu Photomaker=%zu\n",reference_imgs.size(),wan_imgs.size(),photomaker_imgs.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5264,7 +5264,7 @@ bool clip_model_quantize(const char * fname_inp, const char * fname_out, const i
|
|||
const int64_t blck_size = ggml_blck_size(type);
|
||||
if(d==0 && cur->ne[d] % blck_size != 0)
|
||||
{
|
||||
printf("\nSkipping %s because %d is not divisible by %d\n",name.c_str(),cur->ne[d],blck_size);
|
||||
printf("\nSkipping %s because %" PRId64 " is not divisible by %ld\n",name.c_str(),cur->ne[d],blck_size);
|
||||
quantize = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue