Download scripts/start_llama_server.sh from ibrahimdinc/inkling-2-mini-decide: direct link, hf CLI and curl.
- Browser
- Download file 860 Bytes
-
https://huggingface.co/ibrahimdinc/inkling-2-mini-decide/resolve/main/scripts/start_llama_server.sh
- Command line
-
hf download hf://ibrahimdinc/inkling-2-mini-decide/scripts/start_llama_server.sh
-
curl -L -o start_llama_server.sh https://huggingface.co/ibrahimdinc/inkling-2-mini-decide/resolve/main/scripts/start_llama_server.sh
860 Bytes
| # Starts llama-server for Inkling 2 Mini on an 8 GB NVIDIA GPU (tested with llama.cpp b12613). Listens on 127.0.0.1 only. | |
| # LLAMA_SERVER=/path/to/llama-server MODEL=models/Inkling-2-Mini-UD-Q4_K_XL.gguf [MMPROJ=models/mmproj-F16.gguf] ./scripts/start_llama_server.sh | |
| # See start_llama_server.ps1 for notes on the flags. | |
| set -euo pipefail | |
| : "${LLAMA_SERVER:?set LLAMA_SERVER}" "${MODEL:?set MODEL}" | |
| GPU_LOOP_LAYERS="${GPU_LOOP_LAYERS:-6|7|8|9|10}" | |
| args=(-m "$MODEL" --host 127.0.0.1 --port "${PORT:-8080}" | |
| -ngl 99 -np 1 -c "${CTX:-16384}" -ub "${UBATCH:-256}" -fa on --fit off --no-op-offload | |
| --jinja -t "${THREADS:-8}" -tb "${BATCH_THREADS:-16}" --load-mode none | |
| -ot "blk\.(${GPU_LOOP_LAYERS})\.ffn_.*_exps.*=CUDA0,ffn_.*_exps.*=CPU") | |
| [ -n "${MMPROJ:-}" ] && args+=(--mmproj "$MMPROJ") | |
| exec "$LLAMA_SERVER" "${args[@]}" | |