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

Function llama_split_path

smallthinker/src/llama.cpp:313–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311//
312
313int llama_split_path(char * split_path, size_t maxlen, const char * path_prefix, int split_no, int split_count) {
314 static const char * const SPLIT_PATH_FORMAT = "%s-%05d-of-%05d.gguf";
315 if (snprintf(split_path, maxlen, SPLIT_PATH_FORMAT, path_prefix, split_no + 1, split_count)) {
316 return strlen(split_path);
317 }
318 return 0;
319}
320
321int llama_split_prefix(char * split_prefix, size_t maxlen, const char * split_path, int split_no, int split_count) {
322 std::string str_split_path(split_path);

Callers 5

writeMethod · 0.85
gguf_mergeFunction · 0.85
llama_get_list_splitsFunction · 0.85
common_download_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected