Skip to content

Commit 971592f

Browse files
committed
Fix printf
1 parent 0f71589 commit 971592f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

model.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ bool ModelLoader::init_from_gguf_file(const std::string& file_path, const std::s
827827
size_t offset = data_offset + gguf_get_tensor_offset(ctx_gguf_, i);
828828

829829
if(i==0 && starts_with(name,prefix)){
830-
LOG_WARN("Tensors have built-in %s prefix.\n", prefix);
830+
LOG_WARN("Tensors have built-in %s prefix.\n", prefix.c_str());
831831
if(prefix == "model.diffusion_model."){
832832
// the user probably used `--diffusion-model` instead of `-m`
833833
LOG_WARN("Try using `-m`or `--model` instead of `--diffusion-model`\n");
@@ -964,7 +964,7 @@ bool ModelLoader::init_from_safetensors_file(const std::string& file_path, const
964964
}
965965

966966
if(i++==0 && starts_with(name,prefix)){
967-
LOG_WARN("Tensors have built-in %s prefix.\n", prefix);
967+
LOG_WARN("Tensors have built-in %s prefix.\n", prefix.c_str());
968968
if(prefix == "model.diffusion_model."){
969969
// the user probably used `--diffusion-model` instead of `-m`
970970
LOG_WARN("Try using `-m`or `--model` instead of `--diffusion-model`\n");
@@ -1351,7 +1351,7 @@ bool ModelLoader::init_from_ckpt_file(const std::string& file_path, const std::s
13511351
std::string name = zip_entry_name(zip);
13521352
size_t pos = name.find("data.pkl");
13531353
if(i==0 && starts_with(name,prefix)){
1354-
LOG_WARN("Tensors have built-in %s prefix.\n", prefix);
1354+
LOG_WARN("Tensors have built-in %s prefix.\n", prefix.c_str());
13551355
if(prefix == "model.diffusion_model."){
13561356
// the user probably used `--diffusion-model` instead of `-m`
13571357
LOG_WARN("Try using `-m`or `--model` instead of `--diffusion-model`\n");

0 commit comments

Comments
 (0)