llama.cpp splits -c across -np slots; to give each of the 2 slots the full 262144 native context, set CTX_SIZE=524288. KV ~32 GiB; fits the 96 GiB unified pool. Update env default, serve-script fallback, and the deployment doc line.
75 lines
3.2 KiB
Bash
75 lines
3.2 KiB
Bash
# Tunables for frank-default-large (CIRU llama.cpp, dankclaw, Strix Halo
|
|
# gfx1151).
|
|
#
|
|
# Runtime: the PromptForge llama-server built from ciru-ai/ROCmFPX tag
|
|
# qwen3.8-activefpx-promptforge-v2.3 serving
|
|
# jcbtc/Qwen3.8-27B-CIRU-ActiveFPX-PromptForge (v2). ActiveFPX compact
|
|
# GGUF with PromptForge companions for CIRU DualView prompt acceleration and
|
|
# native depth-4 MTP. Alias frank-default-large, port 52625.
|
|
#
|
|
# This runtime replaced the retired vLLM service that previously occupied
|
|
# this slot. See docs/ciru-activefpx-promptforge.md.
|
|
#
|
|
# WARNING: do not name any variable TEMP, HOST, or GPU_MAX_HEAP_SIZE. The ROCm
|
|
# HIP runtime reads those bare env vars (see the 2026-08-13 TEMP incident).
|
|
# llama.cpp reads --host/--port/--temp as CLI flags, never as env vars.
|
|
|
|
# CIRU llama-server binary (ROCmFPX v2.3 build, see docs/ciru runtime page).
|
|
# Built against the private TheRock ROCm 7.15 SDK kept in the retired
|
|
# ling3-ciru venv. ROCm 7.15 is required for the advertised Strix Halo
|
|
# performance; the system ROCm 7.2.4 selects slower/fallback kernels.
|
|
LLAMA_BIN=/home/dank/ciru-qwen38/ROCmFPX/build-promptforge/bin/llama-server
|
|
|
|
# Model files. The three-file payload (v2 GGUF + FFN + GDN) enables CIRU
|
|
# DualView prompt acceleration; omit the two .pfs files to run the GGUF alone
|
|
# and save ~19.7 GiB of memory at the cost of prompt throughput.
|
|
MODEL_DIR=/home/dank/models/CIRU-Qwen3.8-27B-ActiveFPX
|
|
MODEL_FILE=Qwen3.8-27B-CIRU-ActiveFPX-PromptForge-v2.gguf
|
|
FFN_PFS=Qwen3.8-27B-CIRU-ActiveFPX-PromptForge-FFN.pfs
|
|
GDN_PFS=Qwen3.8-27B-CIRU-ActiveFPX-PromptForge-GDN.pfs
|
|
|
|
# ROCm 7.15 SDK paths (inside the retired ling3-ciru venv). The serve script
|
|
# exports ROCM_PATH and LD_LIBRARY_PATH from these so the 7.15 libraries
|
|
# precede any system ROCm 7.2.4.
|
|
ROCM_DEVEL=/home/dank/ling3-ciru/Ling-3.0-Flash-CIRU-int4-Strix-native/.venv/lib/python3.12/site-packages/_rocm_sdk_devel
|
|
ROCM_LIB=/home/dank/ling3-ciru/Ling-3.0-Flash-CIRU-int4-Strix-native/.venv/lib/python3.12/site-packages/_rocm_sdk_libraries
|
|
ROCM_CORE=/home/dank/ling3-ciru/Ling-3.0-Flash-CIRU-int4-Strix-native/.venv/lib/python3.12/site-packages/_rocm_sdk_core
|
|
|
|
ALIAS=frank-default-large
|
|
BIND_ADDR=0.0.0.0
|
|
LISTEN_PORT=52625
|
|
|
|
# Serving: full native 256K context PER SLOT (n_ctx_train = 262144), 2
|
|
# slots. -c is the TOTAL context; llama.cpp splits it across the -np slots,
|
|
# so to give each slot the full 262144 we set CTX_SIZE = 2 x 262144 =
|
|
# 524288. f16 KV, context checkpoints, prompt cache, native MTP depth-4.
|
|
# The Strix Halo is unified memory; the addressable pool is 96 GiB (VRAM is
|
|
# a pointer). KV at 524288 x 64 KiB/cell is ~32 GiB; total sits inside the
|
|
# 96 GiB pool.
|
|
CTX_SIZE=524288
|
|
PARALLEL=2
|
|
BATCH_SIZE=2048
|
|
UBATCH_SIZE=2048
|
|
CACHE_TYPE_K=f16
|
|
CACHE_TYPE_V=f16
|
|
CTX_CHECKPOINTS=32
|
|
CACHE_RAM=8192
|
|
|
|
# Native MTP draft (depth-4, greedy, ROCm-safe CPU argmax fast path).
|
|
SPEC_DRAFT_N_MAX=4
|
|
SPEC_DRAFT_N_MIN=0
|
|
SPEC_DRAFT_P_MIN=0.0
|
|
SPEC_DRAFT_P_SPLIT=0.10
|
|
|
|
# Sampling (model card defaults).
|
|
TEMPERATURE=0.7
|
|
TOP_P=0.95
|
|
|
|
# Thinking enabled (user request, 2026-08-18). deepseek format moves the
|
|
# <think> reasoning into message.reasoning_content (OpenAI-compatible);
|
|
# none would leave the thought tags unparsed in content.
|
|
REASONING=on
|
|
REASONING_FORMAT=deepseek
|
|
|
|
VERBOSITY=4
|