fleet redo 2026-08-17: retire PP+NPU, new topology

- Move all previous scripts to old/scripts/ (retired PP/NPU-era)
- frank-default-large: llama.cpp FastMTP on dankserver (HauhauCS
  Qwen3.8-27B IQ4_XS + FastMTP 32K draft + ngram-mod, K q8_0/V f16,
  128K ctx, batch 2048/ubatch 1024, port 7770)
- frank-default-small: vLLM ROCm on dankclaw (Avesed Qwen3.6-35B-A3B
  INT8 W8A8, full 262144 ctx, no KV quant, 4 seqs, batch 16384,
  ngram spec, port 52625)
- retarget deploy.sh (dankserver/dankclaw, inline sudo, no helpers)
- docs: deployment + index + AGENTS.md + README for new topology,
  superseded banners on retired docs, add frank-redo-2026-08-17 runbook
This commit is contained in:
Frank committed 2026-08-17 15:23:46 -07:00
1 parent 136ee080c9
commit d9af7f1d19
45 files changed
+961 -469

No files matched your search

+38 -31
View File
@@ -1,33 +1,40 @@
# Tunables for frank-default-small (FastFlowLM NPU endpoint, dankclaw)
# Runtime: FLM 1.0.1 on the XDNA2 NPU (50 TOPS). Model choice, measured
# results, and the NPU memory budget are in docs/FastFlowLM NPU Inference.md.
# The NPU allocates from the unified pool shared with frank-default-large
# (the PP head). Keep the resident footprint small enough that the head
# keeps its headroom.
# Tunables for frank-default-small (vLLM, dankclaw, Strix Halo gfx1151).
#
# 2026-08-17: qwythos:9b (Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated,
# Qwen3.5-9B hybrid linear-attention base, Q4NX, 7.76 GB) chosen after the
# user's model swap (was qwen3.6-moe:35b-a3b, which stays installed for
# rollback). FLM upgraded 0.9.45 -> 1.0.1: the pack declares flm_version
# 1.0.0 and 0.9.45 refused to serve it.
# Runtime: vLLM (ROCm) in /home/dank/vllm-venv serving
# Avesed/Qwen3.6-35B-A3B-INT8-W8A8 (compressed-tensors INT8 W8A8, MoE 35B
# total / 3B active, Qwen3.5-MoE hybrid: 30 of 40 layers are GatedDeltaNet
# linear attention). Alias frank-default-small, port 52625.
#
# The ROCm vLLM install was created with:
# uv venv --python /usr/bin/python3.12 /home/dank/vllm-venv
# uv pip install --python /home/dank/vllm-venv vllm --torch-backend=auto
# The --torch-backend=auto resolver pulls the AMD ROCm wheels (torch +
# amd-torch-device-gfx1151 + vllm rocm variant) from the AMD index.
FLM_MODEL=qwythos:9b
FLM_HOST=0.0.0.0
FLM_PORT=52625
# Power mode: turbo. Smoke decode ~5-7 t/s on the 9B dense at 262k ctx
# (not benchmarked; see docs/FastFlowLM NPU Inference.md).
FLM_PMODE=turbo
# Load the ASR model (Whisper-V3-Turbo-NPU2) alongside the LLM. Exposes
# /v1/audio/transcriptions. Adds ~1 GiB to the resident footprint.
FLM_ASR=1
# Maximum context length. Qwythos-9B native max is 262144 (Qwen3.5-9B
# hybrid: 8 of 32 layers are full attention, so the KV cache stays small).
# Verified 2026-08-17: loads at -c 262144 with turbo+asr on FLM 1.0.1;
# KV occupancy 0.007% at 19 tokens.
FLM_CTX_LEN=262144
# Custom-model resolution: the qwythos:9b tag and its xclbin symlinks live
# in the user config, not the system registry. Without these, flm treats
# the tag as unknown and silently serves llama3.2:1b (see the unknown-tag
# fallback in docs/FastFlowLM NPU Inference.md).
FLM_CONFIG_PATH=/home/dank/.config/flm/model_list.json
FLM_XCLBIN_PATH=/home/dank/.config/flm
VLLM_BIN=/home/dank/vllm-venv/bin/vllm
MODEL=Avesed/Qwen3.6-35B-A3B-INT8-W8A8
ALIAS=frank-default-small
BIND_ADDR=0.0.0.0
LISTEN_PORT=52625
# Full native context. The KV cache stays unquantized (auto = model dtype,
# bf16). Worst-case KV at 262144 x 4 sequences is ~10.7 GiB; weights are
# ~35 GiB; total fits the Strix Halo unified pool with room to spare.
MAX_MODEL_LEN=262144
KV_CACHE_DTYPE=auto
# Concurrency and batching (user request).
MAX_NUM_SEQS=4
MAX_NUM_BATCHED_TOKENS=16384
# vLLM has no separate ubatch knob. The scheduler issues one batch per step
# with up to max-num-batched-tokens tokens; the KV cache is preallocated at
# max-model-len. Set gpu-memory-utilization below 1.0 so the unified pool
# keeps headroom for the host.
GPU_MEMORY_UTILIZATION=0.92
# ngram speculative decoding (vLLM ngram proposer).
# prompt_lookup_max = ngram window; num_speculative_tokens = draft depth.
NGRAM_LOOKUP_MAX=5
NGRAM_LOOKUP_MIN=1
NUM_SPEC_TOKENS=5