We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0a07c1 commit 0b30188Copy full SHA for 0b30188
tools/main/main.cpp
@@ -312,9 +312,12 @@ int main(int argc, char ** argv) {
312
std::vector<common_chat_msg> chat_msgs;
313
314
// load the model and apply lora adapter, if any
315
- // callback_data cb_data;
316
- // params.cb_eval = ggml_debug;
317
- // params.cb_eval_user_data = &cb_data;
+ if (params.n_predict > 0 && params.n_predict < 50) {
+ // enable debug prints if we print small number of tokens
+ callback_data cb_data;
318
+ params.cb_eval = ggml_debug;
319
+ params.cb_eval_user_data = &cb_data;
320
+ }
321
LOG_INF("%s: load the model and apply lora adapter, if any\n", __func__);
322
common_init_result llama_init = common_init_from_params(params);
323
0 commit comments