Spaces:
Sleeping
Sleeping
Dmitry Beresnev commited on
Commit ·
0e913e4
1
Parent(s): 1a4efad
change compilation flags
Browse files15 unmodified lines16171819202122232425264 unmodified lines3132333435363715 unmodified lines# Clone and build llama.cpp with SSL support for HuggingFace HubWORKDIR /buildARG CACHEBUST=6RUN git clone https://github.com/ggerganov/llama.cpp.git && \cd llama.cpp && \cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \-DCMAKE_C_FLAGS_RELEASE="-O3 -DNDEBUG" \-DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG" \-DGGML_NATIVE=OFF \-DGGML_AVX2=ON \-DGGML_AVX=ON \4 unmodified lines-DGGML_BLAS_VENDOR=OpenBLAS \-DLLAMA_CURL=ON \-DLLAMA_OPENSSL=ON && \cmake --build build --config Release --target llama-server -j"$(nproc)" && \echo "=== Binary dependencies ===" && \ldd build/bin/llama-server || true15 unmodified lines161718192021222324252627284 unmodified lines3334353637383915 unmodified lines# Clone and build llama.cpp with SSL support for HuggingFace HubWORKDIR /buildARG CACHEBUST=6ARG LLAMA_CPP_REF=masterARG BUILD_JOBS=2RUN git clone --depth 1 --branch ${LLAMA_CPP_REF} https://github.com/ggerganov/llama.cpp.git && \cd llama.cpp && \cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \-DCMAKE_C_FLAGS_RELEASE="-O2 -DNDEBUG" \-DCMAKE_CXX_FLAGS_RELEASE="-O2 -DNDEBUG" \-DGGML_NATIVE=OFF \-DGGML_AVX2=ON \-DGGML_AVX=ON \4 unmodified lines-DGGML_BLAS_VENDOR=OpenBLAS \-DLLAMA_CURL=ON \-DLLAMA_OPENSSL=ON && \cmake --build build --config Release --target llama-server -j"${BUILD_JOBS}" && \echo "=== Binary dependencies ===" && \ldd build/bin/llama-server || true
Dockerfile+6-4