| 250 | } |
| 251 | |
| 252 | struct llama_model * llama_model_load_from_splits( |
| 253 | const char ** paths, |
| 254 | size_t n_paths, |
| 255 | struct llama_model_params params) { |
| 256 | std::vector<std::string> splits; |
| 257 | if (n_paths == 0) { |
| 258 | LLAMA_LOG_ERROR("%s: list of splits is empty\n", __func__); |
| 259 | return nullptr; |
| 260 | } |
| 261 | for (size_t i = 0; i < n_paths; ++i) { |
| 262 | splits.push_back(paths[i]); |
| 263 | } |
| 264 | return llama_model_load_from_file_impl(splits.front(), splits, params); |
| 265 | } |
| 266 | |
| 267 | void llama_model_save_to_file(const struct llama_model * model, const char * path_model) { |
| 268 | llama_model_saver ms(*model); |
nothing calls this directly
no test coverage detected