apps/route: AI trip planner on MapView — tool broker + local/cloud agent dispatch, nav session + simulated drive, layers/theme state, DDG image search, trip history, tilt-shift DOF layer (linear circle-of-confusion: level = log2 of radius, constant growth rate, tilt raises only the ceiling; tilt-shift on by default). Platform: Cx geo location API (macOS/iOS/Android/web) + permission plumbing, memory watchdog, headless build cfg. Map: nav layer M0 API, landcover drape, bridge dz. Geodata: 250m dual-radar compositor (radar_volume) + KNMI sync. Docs for the route/glass/blur/shiny work. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
30 lines
1 KiB
Bash
Executable file
30 lines
1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
DEFAULT_MODEL="local/models/gemma-4-E4B-it-UD-Q5_K_XL.gguf"
|
|
DEFAULT_PROMPT="What model are you?"
|
|
DEFAULT_LOG_PATH="/tmp/llama_compare_escalated.log"
|
|
|
|
MODEL_PATH="${1:-$DEFAULT_MODEL}"
|
|
if [ "$#" -gt 0 ]; then
|
|
shift
|
|
fi
|
|
PROMPT="${*:-$DEFAULT_PROMPT}"
|
|
LOG_PATH="${LLAMA_COMPARE_LOG_PATH:-$DEFAULT_LOG_PATH}"
|
|
|
|
tools/llama_metal.sh compare "$MODEL_PATH" "$PROMPT" >"$LOG_PATH" 2>&1 || {
|
|
status=$?
|
|
printf 'llama-compare failed (exit %s)\n' "$status"
|
|
printf 'log: %s\n' "$LOG_PATH"
|
|
tail -n 80 "$LOG_PATH" || true
|
|
exit "$status"
|
|
}
|
|
|
|
printf 'llama-compare succeeded\n'
|
|
printf 'log: %s\n' "$LOG_PATH"
|
|
rg -n \
|
|
"compare.max_abs_diff|compare.cosine_similarity|gemma_upstream.result_norm_max_abs_diff|gemma_upstream.result_output_max_abs_diff|gemma_probe.result_output_vs_hybrid_max_abs_diff|gemma_probe.result_output_vs_upstream_max_abs_diff|gemma_upstream.layer_stack.max_diff_max_abs_diff" \
|
|
"$LOG_PATH" || true
|