Spaces:
Runtime error
Runtime error
Download llama-cpp-python/vendor/llama.cpp/.devops/main-vulkan.Dockerfile from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 696 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/.devops/main-vulkan.Dockerfile
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/vendor/llama.cpp/.devops/main-vulkan.Dockerfile
-
curl -L -o main-vulkan.Dockerfile https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/vendor/llama.cpp/.devops/main-vulkan.Dockerfile
696 Bytes
| ARG UBUNTU_VERSION=jammy | |
| FROM ubuntu:$UBUNTU_VERSION as build | |
| # Install build tools | |
| RUN apt update && apt install -y git build-essential cmake wget | |
| # Install Vulkan SDK | |
| RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \ | |
| wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list && \ | |
| apt update -y && \ | |
| apt-get install -y vulkan-sdk | |
| # Build it | |
| WORKDIR /app | |
| COPY . . | |
| RUN cmake -B build -DLLAMA_VULKAN=1 && \ | |
| cmake --build build --config Release --target main | |
| # Clean up | |
| WORKDIR / | |
| RUN cp /app/build/bin/main /main && \ | |
| rm -rf /app | |
| ENV LC_ALL=C.utf8 | |
| ENTRYPOINT [ "/main" ] | |