Skip to content

Commit

Permalink
llama : fix order of parameters (ggerganov#8706)
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and arthw committed Jul 27, 2024
1 parent 3395a68 commit a1cf044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2906,7 +2906,7 @@ static size_t llama_get_device_memory(const llama_model & model, int device) {
#elif defined(GGML_USE_CANN)
size_t total;
size_t free;
ggml_backend_cann_get_device_memory(device, &total, &free);
ggml_backend_cann_get_device_memory(device, &free, &total);
return free;
#else
return 1;
Expand Down

0 comments on commit a1cf044

Please sign in to comment.