Download common/build-info.cpp.in from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 922 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/common/build-info.cpp.in
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github@9f63da05cd17e144eb118af61a784286378961ba/common/build-info.cpp.in
-
curl -L -o build-info.cpp.in https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/9f63da05cd17e144eb118af61a784286378961ba/common/build-info.cpp.in
922 Bytes
| int LLAMA_BUILD_NUMBER = @LLAMA_BUILD_NUMBER@; | |
| char const * LLAMA_COMMIT = "@LLAMA_BUILD_COMMIT@"; | |
| char const * LLAMA_COMPILER = "@BUILD_COMPILER@"; | |
| char const * LLAMA_BUILD_TARGET = "@BUILD_TARGET@"; | |
| int llama_build_number(void) { | |
| return LLAMA_BUILD_NUMBER; | |
| } | |
| const char * llama_commit(void) { | |
| return LLAMA_COMMIT; | |
| } | |
| const char * llama_compiler(void) { | |
| return LLAMA_COMPILER; | |
| } | |
| const char * llama_build_target(void) { | |
| return LLAMA_BUILD_TARGET; | |
| } | |
| const char * llama_build_info(void) { | |
| static std::string s = "b" + std::to_string(LLAMA_BUILD_NUMBER) + "-" + LLAMA_COMMIT; | |
| return s.c_str(); | |
| } | |
| void llama_print_build_info(void) { | |
| fprintf(stderr, "%s: build = %d (%s)\n", __func__, llama_build_number(), llama_commit()); | |
| fprintf(stderr, "%s: built with %s for %s\n", __func__, llama_compiler(), llama_build_target()); | |
| } | |