remove arg test_file

This commit is contained in:
Lizonghang 2024-11-27 21:34:45 +04:00
parent 0a91ad3edc
commit 9cd22177d0
2 changed files with 2 additions and 3 deletions

View file

@ -896,7 +896,7 @@ struct llama_init_result llama_init_from_gpt_params(gpt_params & params) {
device_info dev_info;
dev_info.rank = params.rank;
llama_profile_device(&dev_info, model, ml, params.model.c_str(), params.cpuparams.n_threads);
llama_profile_device(&dev_info, model, ml, params.cpuparams.n_threads);
// create llama context
struct llama_context_params cparams = llama_context_params_from_gpt_params(params);

View file

@ -413,8 +413,7 @@ extern "C" {
LLAMA_API void llama_profile_device(
struct device_info * dev_info,
struct llama_model * model,
struct llama_model_loader * ml,
const char * test_file,
struct llama_model_loader * ml,
int n_threads);
LLAMA_API ggml_backend_buffer_type_t llama_dev_buffer_type(struct llama_model * model, int device);