fit-params : print signed int for -ngl param

This commit is contained in:
Georgi Gerganov 2026-01-14 19:59:23 +02:00
parent 516a4ca9b5
commit 60864997fe
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -36,7 +36,7 @@ int main(int argc, char ** argv) {
LOG_INF("%s: printing fitted CLI arguments to stdout...\n", __func__);
common_log_flush(common_log_main());
printf("-c %" PRIu32 " -ngl %" PRIu32, cparams.n_ctx, mparams.n_gpu_layers);
printf("-c %" PRIu32 " -ngl %" PRId32, cparams.n_ctx, mparams.n_gpu_layers);
size_t nd = llama_max_devices();
while (nd > 1 && mparams.tensor_split[nd - 1] == 0.0f) {