File size: 606 Bytes
ae8c826
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
set -euo pipefail

if [[ $# -lt 1 ]]; then
  echo "usage: $0 /path/to/binary [extra agentre.py args...]" >&2
  exit 2
fi

TARGET="$1"
shift

MODEL="${XREF9B_GGUF:-$PWD/xref-9b-q4_k_m.gguf}"
LLAMA_CLI="${XREF9B_LLAMA_CLI:-llama-completion}"

python3 agentre.py chat "$TARGET"   --model "$MODEL"   --llama-cli "$LLAMA_CLI"   --ctx-size "${XREF9B_CTX_SIZE:-65536}"   --gpu-layers "${XREF9B_GPU_LAYERS:-99}"   --max-turns "${XREF9B_MAX_TURNS:-8}"   --max-tool-calls "${XREF9B_MAX_TOOL_CALLS:-16}"   --max-tokens "${XREF9B_MAX_TOKENS:-1600}"   --obs-limit "${XREF9B_OBS_LIMIT:-8000}"   "$@"