mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-14 06:49:54 +00:00
b8a7a5a90f
* readme: cmake . -B build && cmake --build build * build: fix typo Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com> * build: drop implicit . from cmake config command * build: remove another superfluous . * build: update MinGW cmake commands * Update README-sycl.md Co-authored-by: Neo Zhang Jianyu <jianyu.zhang@intel.com> * build: reinstate --config Release as not the default w/ some generators + document how to build Debug * build: revert more --config Release * build: nit / remove -H from cmake example * build: reword debug instructions around single/multi config split --------- Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com> Co-authored-by: Neo Zhang Jianyu <jianyu.zhang@intel.com>
30 lines
767 B
Docker
30 lines
767 B
Docker
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 libcurl4-openssl-dev
|
|
|
|
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 -DLLAMA_CURL=ON ${OPT_SYCL_F16} && \
|
|
cmake --build build --config Release --target server
|
|
|
|
FROM intel/oneapi-basekit:$ONEAPI_VERSION as runtime
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y libcurl4-openssl-dev
|
|
|
|
COPY --from=build /app/build/bin/server /server
|
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
ENTRYPOINT [ "/server" ]
|