The ROCm HIP runtime (libamdhip64) reads the TEMP environment variable as its JIT kernel-cache temp directory. Commitdb3eb01added TEMP=1.0 to the env files as a sampling default; the serve scripts export it via set -a. HIP then used the path "1.0" for its cache, failed, and segfaulted with a NULL-refcount unref (offset 0x446153 in libamdhip64) during model tensor upload (ggml_backend_cuda_buffer_set_tensor). This crashed frank-default- large on every restart from Aug 13 16:22 onward; the earlierc984a3e"fix" (KV/batch changes) was unrelated. Rename the sampling variable TEMP -> TEMPERATURE in both env files and serve scripts. llama-server still receives --temp from the renamed var, so sampling defaults are unchanged. The HIP runtime no longer sees a bogus TEMP value. Affects frank-default-large (dankclaw) and frank-default-small (dankserver).
45 lines
1.8 KiB
Bash
45 lines
1.8 KiB
Bash
# Tunables for frank-default-small (HauhauCS Q6_K_P, ngram-mod spec, dankserver)
|
||
# Runtime: llama-server b10108; RTX 3090 24GB; Ryzen 7 7700X; 62GB RAM.
|
||
MODEL_DIR=/home/dank/models
|
||
ALIAS=frank-default-small
|
||
HOST=0.0.0.0
|
||
PORT=7770
|
||
# 4 parallel slots x 200000 ctx each = 800000 total context pool.
|
||
# (Increased from 3×200k to add a 4th parallel stream.)
|
||
CTX_SIZE=800000
|
||
PARALLEL=4
|
||
# Spec: ngram-mod. n_min=48, n_max=64, n_match=24 (defaults). 6 expert
|
||
# layers back on GPU; 34 on CPU. Batch 8192 / ubatch 2048.
|
||
SPEC_TYPE=ngram-mod
|
||
NGRAM_MOD_N_MIN=48
|
||
NGRAM_MOD_N_MAX=64
|
||
NGRAM_MOD_N_MATCH=24
|
||
# Expert offload: 34 of 40 layers keep MoE weights on CPU; remaining
|
||
# 6 layers have their expert weights resident on GPU for faster routing.
|
||
N_CPU_MOE=34
|
||
N_GPU_LAYERS=all
|
||
# KV cache on GPU, K quantized to q8_0, V stays f16 (user-locked decision).
|
||
CACHE_TYPE_K=q8_0
|
||
CACHE_TYPE_V=f16
|
||
# Store SWA checkpoints in RAM to hold peak GPU memory down for the
|
||
# larger batch/ubatch (leaves headroom for ctx-checkpoints operation).
|
||
CTX_CHECKPOINTS=4
|
||
# Larger batches / ubatch for big prefill workloads.
|
||
BATCH_SIZE=8192
|
||
UBATCH_SIZE=2048
|
||
# Load the model into RAM rather than lazy-mapping it. The MoE experts live on
|
||
# CPU, so eager RAM load avoids page faults during decode (uses ~31GB RAM).
|
||
NO_MMAP=1
|
||
# Compute threads lowered to 7 so other processes on the box keep a core.
|
||
# Sampling settings — per HauhauCS Qwen3.6-35B-A3B model card.
|
||
# Thinking-general: temp=1.0, top_p=0.95, top_k=20, min_p=0.
|
||
# Clients may override per-request; these are the server-side defaults.
|
||
# WARNING: do not name this variable TEMP. The ROCm HIP runtime reads the
|
||
# TEMP environment variable (JIT kernel-cache dir); TEMP=1.0 made the HIP
|
||
# runtime SEGV (NULL unref) during model load on Aug 13 2026.
|
||
TEMPERATURE=1.0
|
||
TOP_K=20
|
||
TOP_P=0.95
|
||
MIN_P=0.0
|
||
THREADS=7
|
||
THREADS_HTTP=8 |