Spaces:
Runtime error
Runtime error
Download llama-cpp-python/docker/open_llama/start_server.sh from aelitta/BioMistral_gradio: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/docker/open_llama/start_server.sh
- Command line
-
hf download hf://spaces/aelitta/BioMistral_gradio/llama-cpp-python/docker/open_llama/start_server.sh
-
curl -L -o start_server.sh https://huggingface.co/spaces/aelitta/BioMistral_gradio/resolve/main/llama-cpp-python/docker/open_llama/start_server.sh
338 Bytes
| # For mlock support | |
| ulimit -l unlimited | |
| if [ "$IMAGE" = "python:3-slim-bullseye" ]; then | |
| python3 -B -m llama_cpp.server --model /app/model.bin | |
| else | |
| # You may have to reduce --n_gpu_layers=1000 to 20 or less if you don't have enough VRAM | |
| python3 -B -m llama_cpp.server --model /app/model.bin --n_gpu_layers=1000 | |
| fi | |