Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/scripts/gen-build-info-cpp.cmake from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 943 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/scripts/gen-build-info-cpp.cmake
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/scripts/gen-build-info-cpp.cmake
-
curl -L -o gen-build-info-cpp.cmake https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/scripts/gen-build-info-cpp.cmake
943 Bytes
| include(${CMAKE_CURRENT_SOURCE_DIR}/scripts/build-info.cmake) | |
| set(TEMPLATE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/common/build-info.cpp.in") | |
| set(OUTPUT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/common/build-info.cpp") | |
| # Only write the build info if it changed | |
| if(EXISTS ${OUTPUT_FILE}) | |
| file(READ ${OUTPUT_FILE} CONTENTS) | |
| string(REGEX MATCH "LLAMA_COMMIT = \"([^\"]*)\";" _ ${CONTENTS}) | |
| set(OLD_COMMIT ${CMAKE_MATCH_1}) | |
| string(REGEX MATCH "LLAMA_COMPILER = \"([^\"]*)\";" _ ${CONTENTS}) | |
| set(OLD_COMPILER ${CMAKE_MATCH_1}) | |
| string(REGEX MATCH "LLAMA_BUILD_TARGET = \"([^\"]*)\";" _ ${CONTENTS}) | |
| set(OLD_TARGET ${CMAKE_MATCH_1}) | |
| if ( | |
| NOT OLD_COMMIT STREQUAL BUILD_COMMIT OR | |
| NOT OLD_COMPILER STREQUAL BUILD_COMPILER OR | |
| NOT OLD_TARGET STREQUAL BUILD_TARGET | |
| ) | |
| configure_file(${TEMPLATE_FILE} ${OUTPUT_FILE}) | |
| endif() | |
| else() | |
| configure_file(${TEMPLATE_FILE} ${OUTPUT_FILE}) | |
| endif() | |