diff --git a/examples/baby-llama/baby-llama.cpp b/examples/baby-llama/baby-llama.cpp index 5573c154b..d38cf048e 100644 --- a/examples/baby-llama/baby-llama.cpp +++ b/examples/baby-llama/baby-llama.cpp @@ -149,7 +149,7 @@ struct llama_hparams_lora { uint32_t n_lora = 64; bool operator!=(const llama_hparams & other) const { - return memcmp(this, &other, sizeof(llama_hparams)); + return memcmp(this, &other, sizeof(llama_hparams)) != 0; } };