MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_model_load_from_splits

Function llama_model_load_from_splits

smallthinker/src/llama.cpp:252–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252struct 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
267void llama_model_save_to_file(const struct llama_model * model, const char * path_model) {
268 llama_model_saver ms(*model);

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45

Tested by

no test coverage detected