Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/examples/sycl/build.sh from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/examples/sycl/build.sh
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/examples/sycl/build.sh
-
curl -L -o build.sh https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/examples/sycl/build.sh
585 Bytes
| # MIT license | |
| # Copyright (C) 2024 Intel Corporation | |
| # SPDX-License-Identifier: MIT | |
| mkdir -p build | |
| cd build | |
| source /opt/intel/oneapi/setvars.sh | |
| #for FP16 | |
| #cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DLLAMA_SYCL_F16=ON # faster for long-prompt inference | |
| #for FP32 | |
| cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx | |
| #build example/main | |
| #cmake --build . --config Release --target main | |
| #build example/llama-bench | |
| #cmake --build . --config Release --target llama-bench | |
| #build all binary | |
| cmake --build . --config Release -j -v | |