inkling-2-mini-decide / scripts /start_llama_server.sh
ibrahimdinc's picture
Initial release: Inkling 2 Mini decision layer, calibration and JevBench evaluation
ce2a505
Raw History Blame Contribute Delete
860 Bytes
#!/usr/bin/env bash
# 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[@]}"