Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/.devops/main-intel.Dockerfile from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 653 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/.devops/main-intel.Dockerfile
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/.devops/main-intel.Dockerfile
-
curl -L -o main-intel.Dockerfile https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/.devops/main-intel.Dockerfile
653 Bytes
| ARG ONEAPI_VERSION=2024.0.1-devel-ubuntu22.04 | |
| FROM intel/oneapi-basekit:$ONEAPI_VERSION as build | |
| ARG LLAMA_SYCL_F16=OFF | |
| RUN apt-get update && \ | |
| apt-get install -y git | |
| WORKDIR /app | |
| COPY . . | |
| RUN if [ "${LLAMA_SYCL_F16}" = "ON" ]; then \ | |
| echo "LLAMA_SYCL_F16 is set" && \ | |
| export OPT_SYCL_F16="-DLLAMA_SYCL_F16=ON"; \ | |
| fi && \ | |
| cmake -B build -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ${OPT_SYCL_F16} && \ | |
| cmake --build build --config Release --target main | |
| FROM intel/oneapi-basekit:$ONEAPI_VERSION as runtime | |
| COPY --from=build /app/build/bin/main /main | |
| ENV LC_ALL=C.utf8 | |
| ENTRYPOINT [ "/main" ] | |