Download llama.cpp/.devops/llama-cli-intel.Dockerfile from Mat17892/iris: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/Mat17892/iris/resolve/main/llama.cpp/.devops/llama-cli-intel.Dockerfile
- Command line
-
hf download hf://spaces/Mat17892/iris/llama.cpp/.devops/llama-cli-intel.Dockerfile
-
curl -L -o llama-cli-intel.Dockerfile https://huggingface.co/spaces/Mat17892/iris/resolve/main/llama.cpp/.devops/llama-cli-intel.Dockerfile
760 Bytes
| ARG ONEAPI_VERSION=2025.0.0-0-devel-ubuntu22.04 | |
| FROM intel/oneapi-basekit:$ONEAPI_VERSION AS build | |
| ARG GGML_SYCL_F16=OFF | |
| RUN apt-get update && \ | |
| apt-get install -y git | |
| WORKDIR /app | |
| COPY . . | |
| RUN if [ "${GGML_SYCL_F16}" = "ON" ]; then \ | |
| echo "GGML_SYCL_F16 is set" && \ | |
| export OPT_SYCL_F16="-DGGML_SYCL_F16=ON"; \ | |
| fi && \ | |
| echo "Building with static libs" && \ | |
| cmake -B build -DGGML_NATIVE=OFF -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx \ | |
| ${OPT_SYCL_F16} -DBUILD_SHARED_LIBS=OFF && \ | |
| cmake --build build --config Release --target llama-cli | |
| FROM intel/oneapi-basekit:$ONEAPI_VERSION AS runtime | |
| COPY --from=build /app/build/bin/llama-cli /llama-cli | |
| ENV LC_ALL=C.utf8 | |
| ENTRYPOINT [ "/llama-cli" ] | |